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.
|
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.
|
copy
applyMutation, build
LifecyclePolicy.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
,
GettablePolicyStateValues
LifecyclePolicy.Builder state(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
state
- The activation state of the lifecycle policy.GettablePolicyStateValues
,
GettablePolicyStateValues
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 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.Builder
policyDetails(PolicyDetails)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.