Interface LockRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<LockRuleRequest.Builder,,LockRuleRequest> RbinRequest.Builder,SdkBuilder<LockRuleRequest.Builder,,LockRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
LockRuleRequest
public static interface LockRuleRequest.Builder
extends RbinRequest.Builder, SdkPojo, CopyableBuilder<LockRuleRequest.Builder,LockRuleRequest>
-
Method Summary
Modifier and TypeMethodDescriptionidentifier(String identifier) The unique ID of the retention rule.default LockRuleRequest.BuilderlockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration) Information about the retention rule lock configuration.lockConfiguration(LockConfiguration lockConfiguration) Information about the retention rule lock configuration.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rbin.model.RbinRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
identifier
The unique ID of the retention rule.
- Parameters:
identifier- The unique ID of the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lockConfiguration
Information about the retention rule lock configuration.
- Parameters:
lockConfiguration- Information about the retention rule lock configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lockConfiguration
default LockRuleRequest.Builder lockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration) Information about the retention rule lock configuration.
This is a convenience method that creates an instance of theLockConfiguration.Builderavoiding the need to create one manually viaLockConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolockConfiguration(LockConfiguration).- Parameters:
lockConfiguration- a consumer that will call methods onLockConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
LockRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
LockRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-