Interface LifecyclePolicy.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>, SdkBuilder<LifecyclePolicy.Builder,LifecyclePolicy>, SdkPojo
Enclosing class:
LifecyclePolicy

public static interface LifecyclePolicy.Builder extends SdkPojo, CopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>
  • Method Details

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

      The activation state of the lifecycle policy.

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

      The activation state of the lifecycle policy.

      Parameters:
      state - The activation state of the lifecycle policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • policyDetails

      default LifecyclePolicy.Builder policyDetails(Consumer<PolicyDetails.Builder> policyDetails)

      The configuration of the lifecycle policy

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to policyDetails(PolicyDetails).

      Parameters:
      policyDetails - a consumer that will call methods on PolicyDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.