Interface CreateRuleResponse.Builder

    • Method Detail

      • identifier

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

        CreateRuleResponse.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.
      • description

        CreateRuleResponse.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.
      • tags

        CreateRuleResponse.Builder tags​(Collection<Tag> tags)

        Information about the tags assigned to the retention rule.

        Parameters:
        tags - Information about the tags assigned to the retention rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRuleResponse.Builder tags​(Tag... tags)

        Information about the tags assigned to the retention rule.

        Parameters:
        tags - Information about the tags assigned to the retention rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRuleResponse.Builder tags​(Consumer<Tag.Builder>... tags)

        Information about the tags assigned to the retention rule.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)
      • resourceType

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

        CreateRuleResponse.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
      • resourceTags

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

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

        CreateRuleResponse.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 the ResourceTag.Builder avoiding the need to create one manually via ResourceTag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #resourceTags(List).

        Parameters:
        resourceTags - a consumer that will call methods on ResourceTag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #resourceTags(java.util.Collection)
      • status

        CreateRuleResponse.Builder status​(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, RuleStatus
      • status

        CreateRuleResponse.Builder status​(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, RuleStatus
      • lockConfiguration

        CreateRuleResponse.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.
      • lockState

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

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

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