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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateLifecyclePolicyRequest.Builderdescription(String description)A description of the lifecycle policy.CreateLifecyclePolicyRequest.BuilderexecutionRoleArn(String executionRoleArn)The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.CreateLifecyclePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateLifecyclePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateLifecyclePolicyRequest.BuilderpolicyDetails(Consumer<PolicyDetails.Builder> policyDetails)The configuration details of the lifecycle policy.CreateLifecyclePolicyRequest.BuilderpolicyDetails(PolicyDetails policyDetails)The configuration details of the lifecycle policy.CreateLifecyclePolicyRequest.Builderstate(String state)The desired activation state of the lifecycle policy after creation.CreateLifecyclePolicyRequest.Builderstate(SettablePolicyStateValues state)The desired activation state of the lifecycle policy after creation.CreateLifecyclePolicyRequest.Buildertags(Map<String,String> tags)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 Detail
-
executionRoleArn
CreateLifecyclePolicyRequest.Builder executionRoleArn(String 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
CreateLifecyclePolicyRequest.Builder description(String 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
CreateLifecyclePolicyRequest.Builder state(String 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:
SettablePolicyStateValues,SettablePolicyStateValues
-
state
CreateLifecyclePolicyRequest.Builder state(SettablePolicyStateValues 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:
SettablePolicyStateValues,SettablePolicyStateValues
-
policyDetails
CreateLifecyclePolicyRequest.Builder policyDetails(PolicyDetails 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.Builderavoiding the need to create one manually viaPolicyDetails.builder().When the
Consumercompletes,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:
policyDetails(PolicyDetails)
-
tags
CreateLifecyclePolicyRequest.Builder tags(Map<String,String> 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateLifecyclePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-