JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.recyclebin.model

Class UpdateRuleResult

    • Constructor Detail

      • UpdateRuleResult

        public UpdateRuleResult()
    • Method Detail

      • setIdentifier

        public void setIdentifier(String identifier)

        The unique ID of the retention rule.

        Parameters:
        identifier - The unique ID of the retention rule.
      • getIdentifier

        public String getIdentifier()

        The unique ID of the retention rule.

        Returns:
        The unique ID of the retention rule.
      • withIdentifier

        public UpdateRuleResult withIdentifier(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.
      • setRetentionPeriod

        public void setRetentionPeriod(RetentionPeriod retentionPeriod)
        Parameters:
        retentionPeriod -
      • withRetentionPeriod

        public UpdateRuleResult withRetentionPeriod(RetentionPeriod retentionPeriod)
        Parameters:
        retentionPeriod -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDescription

        public void setDescription(String description)

        The retention rule description.

        Parameters:
        description - The retention rule description.
      • getDescription

        public String getDescription()

        The retention rule description.

        Returns:
        The retention rule description.
      • withDescription

        public UpdateRuleResult withDescription(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.
      • setResourceType

        public void setResourceType(String resourceType)

        The resource type retained by the retention rule.

        Parameters:
        resourceType - The resource type retained by the retention rule.
        See Also:
        ResourceType
      • getResourceType

        public String getResourceType()

        The resource type retained by the retention rule.

        Returns:
        The resource type retained by the retention rule.
        See Also:
        ResourceType
      • withResourceType

        public UpdateRuleResult withResourceType(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
      • withResourceType

        public UpdateRuleResult withResourceType(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
      • getResourceTags

        public List<ResourceTag> getResourceTags()

        Information about the resource tags used to identify resources that are retained by the retention rule.

        Returns:
        Information about the resource tags used to identify resources that are retained by the retention rule.
      • setResourceTags

        public void setResourceTags(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.
      • withResourceTags

        public UpdateRuleResult withResourceTags(ResourceTag... resourceTags)

        Information about the resource tags used to identify resources that are retained by the retention rule.

        NOTE: This method appends the values to the existing list (if any). Use setResourceTags(java.util.Collection) or withResourceTags(java.util.Collection) if you want to override the existing values.

        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.
      • withResourceTags

        public UpdateRuleResult withResourceTags(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.
      • setStatus

        public void setStatus(String status)

        The state of the retention rule. Only retention rules that are in the available state retain resources.

        Parameters:
        status - The state of the retention rule. Only retention rules that are in the available state retain resources.
        See Also:
        RuleStatus
      • getStatus

        public String getStatus()

        The state of the retention rule. Only retention rules that are in the available state retain resources.

        Returns:
        The state of the retention rule. Only retention rules that are in the available state retain resources.
        See Also:
        RuleStatus
      • withStatus

        public UpdateRuleResult withStatus(String status)

        The state of the retention rule. Only retention rules that are in the available state retain resources.

        Parameters:
        status - The state of the retention rule. Only retention rules that are in the available state retain resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RuleStatus
      • withStatus

        public UpdateRuleResult withStatus(RuleStatus status)

        The state of the retention rule. Only retention rules that are in the available state retain resources.

        Parameters:
        status - The state of the retention rule. Only retention rules that are in the available state retain resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RuleStatus
      • setLockState

        public void setLockState(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 the locked and unlocked states only; it can never transition back to null.

        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 the locked and unlocked states only; it can never transition back to null.

        See Also:
        LockState
      • getLockState

        public String getLockState()

        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 the locked and unlocked states only; it can never transition back to null.

        Returns:
        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 the locked and unlocked states only; it can never transition back to null.

        See Also:
        LockState
      • withLockState

        public UpdateRuleResult withLockState(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 the locked and unlocked states only; it can never transition back to null.

        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 the locked and unlocked states only; it can never transition back to null.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LockState
      • withLockState

        public UpdateRuleResult withLockState(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 the locked and unlocked states only; it can never transition back to null.

        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 the locked and unlocked states only; it can never transition back to null.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LockState
      • setLockEndTime

        public void setLockEndTime(Date lockEndTime)

        The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.

        Parameters:
        lockEndTime - The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
      • getLockEndTime

        public Date getLockEndTime()

        The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.

        Returns:
        The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
      • withLockEndTime

        public UpdateRuleResult withLockEndTime(Date lockEndTime)

        The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.

        Parameters:
        lockEndTime - The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRuleArn

        public void setRuleArn(String ruleArn)

        The Amazon Resource Name (ARN) of the retention rule.

        Parameters:
        ruleArn - The Amazon Resource Name (ARN) of the retention rule.
      • getRuleArn

        public String getRuleArn()

        The Amazon Resource Name (ARN) of the retention rule.

        Returns:
        The Amazon Resource Name (ARN) of the retention rule.
      • withRuleArn

        public UpdateRuleResult withRuleArn(String ruleArn)

        The Amazon Resource Name (ARN) of the retention rule.

        Parameters:
        ruleArn - The Amazon Resource Name (ARN) of the retention rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /