Interface LifecyclePolicySummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecyclePolicySummary.Builder,LifecyclePolicySummary>,SdkBuilder<LifecyclePolicySummary.Builder,LifecyclePolicySummary>,SdkPojo
- Enclosing class:
- LifecyclePolicySummary
public static interface LifecyclePolicySummary.Builder extends SdkPojo, CopyableBuilder<LifecyclePolicySummary.Builder,LifecyclePolicySummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifecyclePolicySummary.BuilderdefaultPolicy(Boolean defaultPolicy)[Default policies only] The type of default policy.LifecyclePolicySummary.Builderdescription(String description)The description of the lifecycle policy.LifecyclePolicySummary.BuilderpolicyId(String policyId)The identifier of the lifecycle policy.LifecyclePolicySummary.BuilderpolicyType(String policyType)The type of policy.LifecyclePolicySummary.BuilderpolicyType(PolicyTypeValues policyType)The type of policy.LifecyclePolicySummary.Builderstate(String state)The activation state of the lifecycle policy.LifecyclePolicySummary.Builderstate(GettablePolicyStateValues state)The activation state of the lifecycle policy.LifecyclePolicySummary.Buildertags(Map<String,String> tags)The tags.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
policyId
LifecyclePolicySummary.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
LifecyclePolicySummary.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
LifecyclePolicySummary.Builder state(String 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:
GettablePolicyStateValues,GettablePolicyStateValues
-
state
LifecyclePolicySummary.Builder state(GettablePolicyStateValues 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:
GettablePolicyStateValues,GettablePolicyStateValues
-
tags
LifecyclePolicySummary.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.
-
policyType
LifecyclePolicySummary.Builder policyType(String policyType)
The type of policy.
EBS_SNAPSHOT_MANAGEMENTindicates that the policy manages the lifecycle of Amazon EBS snapshots.IMAGE_MANAGEMENTindicates that the policy manages the lifecycle of EBS-backed AMIs.EVENT_BASED_POLICYindicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.- Parameters:
policyType- The type of policy.EBS_SNAPSHOT_MANAGEMENTindicates that the policy manages the lifecycle of Amazon EBS snapshots.IMAGE_MANAGEMENTindicates that the policy manages the lifecycle of EBS-backed AMIs.EVENT_BASED_POLICYindicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyTypeValues,PolicyTypeValues
-
policyType
LifecyclePolicySummary.Builder policyType(PolicyTypeValues policyType)
The type of policy.
EBS_SNAPSHOT_MANAGEMENTindicates that the policy manages the lifecycle of Amazon EBS snapshots.IMAGE_MANAGEMENTindicates that the policy manages the lifecycle of EBS-backed AMIs.EVENT_BASED_POLICYindicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.- Parameters:
policyType- The type of policy.EBS_SNAPSHOT_MANAGEMENTindicates that the policy manages the lifecycle of Amazon EBS snapshots.IMAGE_MANAGEMENTindicates that the policy manages the lifecycle of EBS-backed AMIs.EVENT_BASED_POLICYindicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyTypeValues,PolicyTypeValues
-
defaultPolicy
LifecyclePolicySummary.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.
-
-
-