public static interface LifecyclePolicy.Builder extends SdkPojo, CopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>
| Modifier and Type | Method and Description |
|---|---|
LifecyclePolicy.Builder |
dateCreated(Instant dateCreated)
The local date and time when the lifecycle policy was created.
|
LifecyclePolicy.Builder |
dateModified(Instant dateModified)
The local date and time when the lifecycle policy was last modified.
|
LifecyclePolicy.Builder |
description(String description)
The description of the lifecycle policy.
|
LifecyclePolicy.Builder |
executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
LifecyclePolicy.Builder |
policyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
|
default LifecyclePolicy.Builder |
policyDetails(Consumer<PolicyDetails.Builder> policyDetails)
The configuration of the lifecycle policy
|
LifecyclePolicy.Builder |
policyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
|
LifecyclePolicy.Builder |
policyId(String policyId)
The identifier of the lifecycle policy.
|
LifecyclePolicy.Builder |
state(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
|
LifecyclePolicy.Builder |
state(String state)
The activation state of the lifecycle policy.
|
LifecyclePolicy.Builder |
statusMessage(String statusMessage)
The description of the status.
|
LifecyclePolicy.Builder |
tags(Map<String,String> tags)
The tags.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLifecyclePolicy.Builder policyId(String policyId)
The identifier of the lifecycle policy.
policyId - The identifier of the lifecycle policy.LifecyclePolicy.Builder description(String description)
The description of the lifecycle policy.
description - The description of the lifecycle policy.LifecyclePolicy.Builder state(String state)
The activation state of the lifecycle policy.
state - The activation state of the lifecycle policy.GettablePolicyStateValues,
GettablePolicyStateValuesLifecyclePolicy.Builder state(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
state - The activation state of the lifecycle policy.GettablePolicyStateValues,
GettablePolicyStateValuesLifecyclePolicy.Builder statusMessage(String statusMessage)
The description of the status.
statusMessage - The description of the status.LifecyclePolicy.Builder executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
executionRoleArn - The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle
policy.LifecyclePolicy.Builder dateCreated(Instant dateCreated)
The local date and time when the lifecycle policy was created.
dateCreated - The local date and time when the lifecycle policy was created.LifecyclePolicy.Builder dateModified(Instant dateModified)
The local date and time when the lifecycle policy was last modified.
dateModified - The local date and time when the lifecycle policy was last modified.LifecyclePolicy.Builder policyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
policyDetails - The configuration of the lifecycle policydefault LifecyclePolicy.Builder policyDetails(Consumer<PolicyDetails.Builder> 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 via PolicyDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to policyDetails(PolicyDetails).
policyDetails - a consumer that will call methods on PolicyDetails.BuilderpolicyDetails(PolicyDetails)LifecyclePolicy.Builder tags(Map<String,String> tags)
The tags.
tags - The tags.LifecyclePolicy.Builder policyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
policyArn - The Amazon Resource Name (ARN) of the policy.Copyright © 2023. All rights reserved.