Interface LifecyclePolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>,SdkBuilder<LifecyclePolicy.Builder,LifecyclePolicy>,SdkPojo
- Enclosing class:
- LifecyclePolicy
public static interface LifecyclePolicy.Builder extends SdkPojo, CopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LifecyclePolicy.BuilderdateCreated(Instant dateCreated)The local date and time when the lifecycle policy was created.LifecyclePolicy.BuilderdateModified(Instant dateModified)The local date and time when the lifecycle policy was last modified.LifecyclePolicy.Builderdescription(String description)The description of the lifecycle policy.LifecyclePolicy.BuilderexecutionRoleArn(String executionRoleArn)The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.LifecyclePolicy.BuilderpolicyArn(String policyArn)The Amazon Resource Name (ARN) of the policy.default LifecyclePolicy.BuilderpolicyDetails(Consumer<PolicyDetails.Builder> policyDetails)The configuration of the lifecycle policyLifecyclePolicy.BuilderpolicyDetails(PolicyDetails policyDetails)The configuration of the lifecycle policyLifecyclePolicy.BuilderpolicyId(String policyId)The identifier of the lifecycle policy.LifecyclePolicy.Builderstate(String state)The activation state of the lifecycle policy.LifecyclePolicy.Builderstate(GettablePolicyStateValues state)The activation state of the lifecycle policy.LifecyclePolicy.BuilderstatusMessage(String statusMessage)The description of the status.LifecyclePolicy.Buildertags(Map<String,String> tags)The tags.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
policyId
LifecyclePolicy.Builder policyId(String policyId)
The identifier of the lifecycle policy.
- Parameters:
policyId- The identifier of the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
LifecyclePolicy.Builder description(String description)
The description of the lifecycle policy.
- Parameters:
description- The description of the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
LifecyclePolicy.Builder state(String state)
The activation state of the lifecycle policy.
- Parameters:
state- The activation state of the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GettablePolicyStateValues,GettablePolicyStateValues
-
state
LifecyclePolicy.Builder state(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
- Parameters:
state- The activation state of the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GettablePolicyStateValues,GettablePolicyStateValues
-
statusMessage
LifecyclePolicy.Builder statusMessage(String statusMessage)
The description of the status.
- Parameters:
statusMessage- The description of the status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
LifecyclePolicy.Builder executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateCreated
LifecyclePolicy.Builder dateCreated(Instant dateCreated)
The local date and time when the lifecycle policy was created.
- Parameters:
dateCreated- The local date and time when the lifecycle policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateModified
LifecyclePolicy.Builder dateModified(Instant dateModified)
The local date and time when the lifecycle policy was last modified.
- Parameters:
dateModified- The local date and time when the lifecycle policy was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
LifecyclePolicy.Builder policyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
- Parameters:
policyDetails- The configuration of the lifecycle policy- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
default LifecyclePolicy.Builder policyDetails(Consumer<PolicyDetails.Builder> policyDetails)
The configuration of the lifecycle policy
This is a convenience method that creates an instance of thePolicyDetails.Builderavoiding the need to create one manually viaPolicyDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyDetails(PolicyDetails).- Parameters:
policyDetails- a consumer that will call methods onPolicyDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
policyDetails(PolicyDetails)
-
tags
LifecyclePolicy.Builder tags(Map<String,String> tags)
The tags.
- Parameters:
tags- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
LifecyclePolicy.Builder policyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-