Interface CreateLifecyclePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLifecyclePolicyRequest.Builder,
,CreateLifecyclePolicyRequest> DlmRequest.Builder
,SdkBuilder<CreateLifecyclePolicyRequest.Builder,
,CreateLifecyclePolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLifecyclePolicyRequest
public static interface CreateLifecyclePolicyRequest.Builder
extends DlmRequest.Builder, SdkPojo, CopyableBuilder<CreateLifecyclePolicyRequest.Builder,CreateLifecyclePolicyRequest>
-
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 details of the lifecycle policy.policyDetails
(PolicyDetails policyDetails) The configuration details 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.The tags to apply to the lifecycle policy during 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
-
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.
-
description
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
- Parameters:
description
- A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.- 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:
-
policyDetails
The configuration details of the lifecycle policy.
- Parameters:
policyDetails
- The configuration details of the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
default CreateLifecyclePolicyRequest.Builder policyDetails(Consumer<PolicyDetails.Builder> policyDetails) The configuration details 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 to apply to the lifecycle policy during creation.
- Parameters:
tags
- The tags to apply to the lifecycle policy during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateLifecyclePolicyRequest.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
CreateLifecyclePolicyRequest.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.
-