@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicySummary extends Object implements Serializable, Cloneable, StructuredPojo
Summary information about a lifecycle policy.
Constructor and Description |
---|
LifecyclePolicySummary() |
Modifier and Type | Method and Description |
---|---|
LifecyclePolicySummary |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
LifecyclePolicySummary |
clearTagsEntries()
Removes all the entries added into Tags.
|
LifecyclePolicySummary |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the lifecycle policy.
|
String |
getPolicyId()
The identifier of the lifecycle policy.
|
String |
getPolicyType()
The type of policy.
|
String |
getState()
The activation state of the lifecycle policy.
|
Map<String,String> |
getTags()
The tags.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description of the lifecycle policy.
|
void |
setPolicyId(String policyId)
The identifier of the lifecycle policy.
|
void |
setPolicyType(String policyType)
The type of policy.
|
void |
setState(String state)
The activation state of the lifecycle policy.
|
void |
setTags(Map<String,String> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicySummary |
withDescription(String description)
The description of the lifecycle policy.
|
LifecyclePolicySummary |
withPolicyId(String policyId)
The identifier of the lifecycle policy.
|
LifecyclePolicySummary |
withPolicyType(PolicyTypeValues policyType)
The type of policy.
|
LifecyclePolicySummary |
withPolicyType(String policyType)
The type of policy.
|
LifecyclePolicySummary |
withState(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
|
LifecyclePolicySummary |
withState(String state)
The activation state of the lifecycle policy.
|
LifecyclePolicySummary |
withTags(Map<String,String> tags)
The tags.
|
public void setPolicyId(String policyId)
The identifier of the lifecycle policy.
policyId
- The identifier of the lifecycle policy.public String getPolicyId()
The identifier of the lifecycle policy.
public LifecyclePolicySummary withPolicyId(String policyId)
The identifier of the lifecycle policy.
policyId
- The identifier of the lifecycle policy.public void setDescription(String description)
The description of the lifecycle policy.
description
- The description of the lifecycle policy.public String getDescription()
The description of the lifecycle policy.
public LifecyclePolicySummary withDescription(String description)
The description of the lifecycle policy.
description
- The description of the lifecycle policy.public void setState(String state)
The activation state of the lifecycle policy.
state
- The activation state of the lifecycle policy.GettablePolicyStateValues
public String getState()
The activation state of the lifecycle policy.
GettablePolicyStateValues
public LifecyclePolicySummary withState(String state)
The activation state of the lifecycle policy.
state
- The activation state of the lifecycle policy.GettablePolicyStateValues
public LifecyclePolicySummary withState(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
state
- The activation state of the lifecycle policy.GettablePolicyStateValues
public LifecyclePolicySummary withTags(Map<String,String> tags)
The tags.
tags
- The tags.public LifecyclePolicySummary addTagsEntry(String key, String value)
public LifecyclePolicySummary clearTagsEntries()
public void setPolicyType(String policyType)
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of
Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed
AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for
snapshots that are shared with your account.
policyType
- The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle
of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of
EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account
snapshot copies for snapshots that are shared with your account.PolicyTypeValues
public String getPolicyType()
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of
Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed
AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for
snapshots that are shared with your account.
EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle
of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of
EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account
snapshot copies for snapshots that are shared with your account.PolicyTypeValues
public LifecyclePolicySummary withPolicyType(String policyType)
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of
Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed
AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for
snapshots that are shared with your account.
policyType
- The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle
of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of
EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account
snapshot copies for snapshots that are shared with your account.PolicyTypeValues
public LifecyclePolicySummary withPolicyType(PolicyTypeValues policyType)
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of
Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed
AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for
snapshots that are shared with your account.
policyType
- The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle
of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of
EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account
snapshot copies for snapshots that are shared with your account.PolicyTypeValues
public String toString()
toString
in class Object
Object.toString()
public LifecyclePolicySummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.