Interface UpdateLifecyclePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateLifecyclePolicyRequest.Builder,
,UpdateLifecyclePolicyRequest> DlmRequest.Builder
,SdkBuilder<UpdateLifecyclePolicyRequest.Builder,
,UpdateLifecyclePolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateLifecyclePolicyRequest
public static interface UpdateLifecyclePolicyRequest.Builder
extends DlmRequest.Builder, SdkPojo, CopyableBuilder<UpdateLifecyclePolicyRequest.Builder,UpdateLifecyclePolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A 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.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyDetails
(Consumer<PolicyDetails.Builder> policyDetails) The configuration of the lifecycle policy.policyDetails
(PolicyDetails policyDetails) The configuration of the lifecycle policy.The identifier of the lifecycle policy.The desired activation state of the lifecycle policy after creation.state
(SettablePolicyStateValues state) The desired activation state of the lifecycle policy after creation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.dlm.model.DlmRequest.Builder
build
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.
-
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.
-
state
The desired activation state of the lifecycle policy after creation.
- Parameters:
state
- The desired activation state of the lifecycle policy after creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The desired activation state of the lifecycle policy after creation.
- Parameters:
state
- The desired activation state of the lifecycle policy after creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the lifecycle policy.
- Parameters:
description
- A description 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. You cannot update the policy type or the resource type.
- Parameters:
policyDetails
- The configuration of the lifecycle policy. You cannot update the policy type or the resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
default UpdateLifecyclePolicyRequest.Builder policyDetails(Consumer<PolicyDetails.Builder> policyDetails) The configuration of the lifecycle policy. You cannot update the policy type or the resource type.
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:
-
overrideConfiguration
UpdateLifecyclePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateLifecyclePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-