Interface LifecyclePolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LifecyclePolicy.Builder,
,LifecyclePolicy> SdkBuilder<LifecyclePolicy.Builder,
,LifecyclePolicy> SdkPojo
- Enclosing class:
LifecyclePolicy
-
Method Summary
Modifier and TypeMethodDescriptiondateCreated
(Instant dateCreated) The local date and time when the lifecycle policy was created.dateModified
(Instant dateModified) The local date and time when the lifecycle policy was last modified.defaultPolicy
(Boolean defaultPolicy) [Default policies only] The type of default policy.description
(String description) The description of the lifecycle policy.executionRoleArn
(String executionRoleArn) The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.The Amazon Resource Name (ARN) of the policy.default LifecyclePolicy.Builder
policyDetails
(Consumer<PolicyDetails.Builder> policyDetails) The configuration of the lifecycle policypolicyDetails
(PolicyDetails policyDetails) The configuration of the lifecycle policyThe identifier of the lifecycle policy.The activation state of the lifecycle policy.state
(GettablePolicyStateValues state) The activation state of the lifecycle policy.statusMessage
(String statusMessage) The description of the status.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 Details
-
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
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
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:
-
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:
-
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
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
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
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
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
The configuration of the lifecycle policy
This is a convenience method that creates an instance of thePolicyDetails.Builder
avoiding the need to create one manually viaPolicyDetails.builder()
.When the
Consumer
completes,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:
-
tags
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
defaultPolicy
[Default policies only] The type of default policy. Values include:
-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
- Parameters:
defaultPolicy
- [Default policies only] The type of default policy. Values include:-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-