Interface LockRuleResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<LockRuleResponse.Builder,LockRuleResponse>,RbinResponse.Builder,SdkBuilder<LockRuleResponse.Builder,LockRuleResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- LockRuleResponse
public static interface LockRuleResponse.Builder extends RbinResponse.Builder, SdkPojo, CopyableBuilder<LockRuleResponse.Builder,LockRuleResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LockRuleResponse.Builderdescription(String description)The retention rule description.LockRuleResponse.Builderidentifier(String identifier)The unique ID of the retention rule.default LockRuleResponse.BuilderlockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration)Information about the retention rule lock configuration.LockRuleResponse.BuilderlockConfiguration(LockConfiguration lockConfiguration)Information about the retention rule lock configuration.LockRuleResponse.BuilderlockState(String lockState)The lock state for the retention rule.LockRuleResponse.BuilderlockState(LockState lockState)The lock state for the retention rule.LockRuleResponse.BuilderresourceTags(Collection<ResourceTag> resourceTags)Information about the resource tags used to identify resources that are retained by the retention rule.LockRuleResponse.BuilderresourceTags(Consumer<ResourceTag.Builder>... resourceTags)Information about the resource tags used to identify resources that are retained by the retention rule.LockRuleResponse.BuilderresourceTags(ResourceTag... resourceTags)Information about the resource tags used to identify resources that are retained by the retention rule.LockRuleResponse.BuilderresourceType(String resourceType)The resource type retained by the retention rule.LockRuleResponse.BuilderresourceType(ResourceType resourceType)The resource type retained by the retention rule.default LockRuleResponse.BuilderretentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)Sets the value of the RetentionPeriod property for this object.LockRuleResponse.BuilderretentionPeriod(RetentionPeriod retentionPeriod)Sets the value of the RetentionPeriod property for this object.LockRuleResponse.Builderstatus(String status)The state of the retention rule.LockRuleResponse.Builderstatus(RuleStatus status)The state of the retention rule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rbin.model.RbinResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
identifier
LockRuleResponse.Builder identifier(String 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.
-
description
LockRuleResponse.Builder description(String description)
The retention rule description.
- Parameters:
description- The retention rule description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
LockRuleResponse.Builder resourceType(String resourceType)
The resource type retained by the retention rule.
- Parameters:
resourceType- The resource type retained by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
LockRuleResponse.Builder resourceType(ResourceType resourceType)
The resource type retained by the retention rule.
- Parameters:
resourceType- The resource type retained by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
retentionPeriod
LockRuleResponse.Builder retentionPeriod(RetentionPeriod retentionPeriod)
Sets the value of the RetentionPeriod property for this object.- Parameters:
retentionPeriod- The new value for the RetentionPeriod property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
default LockRuleResponse.Builder retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)
Sets the value of the RetentionPeriod property for this object. This is a convenience method that creates an instance of theRetentionPeriod.Builderavoiding the need to create one manually viaRetentionPeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretentionPeriod(RetentionPeriod).- Parameters:
retentionPeriod- a consumer that will call methods onRetentionPeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retentionPeriod(RetentionPeriod)
-
resourceTags
LockRuleResponse.Builder resourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
LockRuleResponse.Builder resourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
LockRuleResponse.Builder resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
This is a convenience method that creates an instance of theResourceTag.Builderavoiding the need to create one manually viaResourceTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceTags(List.) - Parameters:
resourceTags- a consumer that will call methods onResourceTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceTags(java.util.Collection)
-
status
LockRuleResponse.Builder status(String status)
The state of the retention rule. Only retention rules that are in the
availablestate retain resources.- Parameters:
status- The state of the retention rule. Only retention rules that are in theavailablestate retain resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleStatus,RuleStatus
-
status
LockRuleResponse.Builder status(RuleStatus status)
The state of the retention rule. Only retention rules that are in the
availablestate retain resources.- Parameters:
status- The state of the retention rule. Only retention rules that are in theavailablestate retain resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleStatus,RuleStatus
-
lockConfiguration
LockRuleResponse.Builder lockConfiguration(LockConfiguration 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 LockRuleResponse.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:
lockConfiguration(LockConfiguration)
-
lockState
LockRuleResponse.Builder lockState(String lockState)
The lock state for the retention rule.
-
locked- The retention rule is locked and can't be modified or deleted. -
pending_unlock- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelockedandunlockedstates only; it can never transition back tonull.
- Parameters:
lockState- The lock state for the retention rule.-
locked- The retention rule is locked and can't be modified or deleted. -
pending_unlock- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelockedandunlockedstates only; it can never transition back tonull.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LockState,LockState
-
-
lockState
LockRuleResponse.Builder lockState(LockState lockState)
The lock state for the retention rule.
-
locked- The retention rule is locked and can't be modified or deleted. -
pending_unlock- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelockedandunlockedstates only; it can never transition back tonull.
- Parameters:
lockState- The lock state for the retention rule.-
locked- The retention rule is locked and can't be modified or deleted. -
pending_unlock- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelockedandunlockedstates only; it can never transition back tonull.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LockState,LockState
-
-
-