Interface LifecyclePolicy.Builder

    • Method Detail

      • policyId

        LifecyclePolicy.Builder policyId​(String policyId)

        The identifier of the lifecycle policy.

        Parameters:
        policyId - The identifier of the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        LifecyclePolicy.Builder description​(String description)

        The description of the lifecycle policy.

        Parameters:
        description - The description of the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statusMessage

        LifecyclePolicy.Builder statusMessage​(String statusMessage)

        The description of the status.

        Parameters:
        statusMessage - The description of the status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • executionRoleArn

        LifecyclePolicy.Builder executionRoleArn​(String executionRoleArn)

        The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.

        Parameters:
        executionRoleArn - The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateCreated

        LifecyclePolicy.Builder dateCreated​(Instant dateCreated)

        The local date and time when the lifecycle policy was created.

        Parameters:
        dateCreated - The local date and time when the lifecycle policy was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateModified

        LifecyclePolicy.Builder dateModified​(Instant dateModified)

        The local date and time when the lifecycle policy was last modified.

        Parameters:
        dateModified - The local date and time when the lifecycle policy was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyDetails

        LifecyclePolicy.Builder policyDetails​(PolicyDetails policyDetails)

        The configuration of the lifecycle policy

        Parameters:
        policyDetails - The configuration of the lifecycle policy
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        LifecyclePolicy.Builder tags​(Map<String,​String> tags)

        The tags.

        Parameters:
        tags - The tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyArn

        LifecyclePolicy.Builder policyArn​(String policyArn)

        The Amazon Resource Name (ARN) of the policy.

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

        LifecyclePolicy.Builder defaultPolicy​(Boolean defaultPolicy)

        [Default policies only] The type of default policy. Values include:

        • VOLUME - Default policy for EBS snapshots

        • INSTANCE - Default policy for EBS-backed AMIs

        Parameters:
        defaultPolicy - [Default policies only] The type of default policy. Values include:

        • VOLUME - Default policy for EBS snapshots

        • INSTANCE - Default policy for EBS-backed AMIs

        Returns:
        Returns a reference to this object so that method calls can be chained together.