Interface RuleSummary.Builder

    • Method Detail

      • identifier

        RuleSummary.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

        RuleSummary.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.
      • retentionPeriod

        RuleSummary.Builder retentionPeriod​(RetentionPeriod retentionPeriod)

        Information about the retention period for which the retention rule is to retain resources.

        Parameters:
        retentionPeriod - Information about the retention period for which the retention rule is to retain resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lockState

        RuleSummary.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 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, LockState
      • lockState

        RuleSummary.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 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, LockState
      • ruleArn

        RuleSummary.Builder ruleArn​(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.