@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Detailed information about a lifecycle policy.
Constructor and Description |
---|
LifecyclePolicy() |
Modifier and Type | Method and Description |
---|---|
LifecyclePolicy |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
LifecyclePolicy |
clearTagsEntries()
Removes all the entries added into Tags.
|
LifecyclePolicy |
clone() |
boolean |
equals(Object obj) |
Date |
getDateCreated()
The local date and time when the lifecycle policy was created.
|
Date |
getDateModified()
The local date and time when the lifecycle policy was last modified.
|
String |
getDescription()
The description of the lifecycle policy.
|
String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
String |
getPolicyArn()
The Amazon Resource Name (ARN) of the policy.
|
PolicyDetails |
getPolicyDetails()
The configuration of the lifecycle policy
|
String |
getPolicyId()
The identifier of the lifecycle policy.
|
String |
getState()
The activation state of the lifecycle policy.
|
String |
getStatusMessage()
The description of the status.
|
Map<String,String> |
getTags()
The tags.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDateCreated(Date dateCreated)
The local date and time when the lifecycle policy was created.
|
void |
setDateModified(Date dateModified)
The local date and time when the lifecycle policy was last modified.
|
void |
setDescription(String description)
The description of the lifecycle policy.
|
void |
setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
|
void |
setPolicyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
|
void |
setPolicyId(String policyId)
The identifier of the lifecycle policy.
|
void |
setState(String state)
The activation state of the lifecycle policy.
|
void |
setStatusMessage(String statusMessage)
The description of the status.
|
void |
setTags(Map<String,String> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicy |
withDateCreated(Date dateCreated)
The local date and time when the lifecycle policy was created.
|
LifecyclePolicy |
withDateModified(Date dateModified)
The local date and time when the lifecycle policy was last modified.
|
LifecyclePolicy |
withDescription(String description)
The description of the lifecycle policy.
|
LifecyclePolicy |
withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
LifecyclePolicy |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
|
LifecyclePolicy |
withPolicyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
|
LifecyclePolicy |
withPolicyId(String policyId)
The identifier of the lifecycle policy.
|
LifecyclePolicy |
withState(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
|
LifecyclePolicy |
withState(String state)
The activation state of the lifecycle policy.
|
LifecyclePolicy |
withStatusMessage(String statusMessage)
The description of the status.
|
LifecyclePolicy |
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 LifecyclePolicy 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 LifecyclePolicy 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 LifecyclePolicy withState(String state)
The activation state of the lifecycle policy.
state
- The activation state of the lifecycle policy.GettablePolicyStateValues
public LifecyclePolicy withState(GettablePolicyStateValues state)
The activation state of the lifecycle policy.
state
- The activation state of the lifecycle policy.GettablePolicyStateValues
public void setStatusMessage(String statusMessage)
The description of the status.
statusMessage
- The description of the status.public String getStatusMessage()
The description of the status.
public LifecyclePolicy withStatusMessage(String statusMessage)
The description of the status.
statusMessage
- The description of the status.public void setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle
policy.public String getExecutionRoleArn()
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
public LifecyclePolicy withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle
policy.public void setDateCreated(Date dateCreated)
The local date and time when the lifecycle policy was created.
dateCreated
- The local date and time when the lifecycle policy was created.public Date getDateCreated()
The local date and time when the lifecycle policy was created.
public LifecyclePolicy withDateCreated(Date dateCreated)
The local date and time when the lifecycle policy was created.
dateCreated
- The local date and time when the lifecycle policy was created.public void setDateModified(Date dateModified)
The local date and time when the lifecycle policy was last modified.
dateModified
- The local date and time when the lifecycle policy was last modified.public Date getDateModified()
The local date and time when the lifecycle policy was last modified.
public LifecyclePolicy withDateModified(Date dateModified)
The local date and time when the lifecycle policy was last modified.
dateModified
- The local date and time when the lifecycle policy was last modified.public void setPolicyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
policyDetails
- The configuration of the lifecycle policypublic PolicyDetails getPolicyDetails()
The configuration of the lifecycle policy
public LifecyclePolicy withPolicyDetails(PolicyDetails policyDetails)
The configuration of the lifecycle policy
policyDetails
- The configuration of the lifecycle policypublic LifecyclePolicy withTags(Map<String,String> tags)
The tags.
tags
- The tags.public LifecyclePolicy addTagsEntry(String key, String value)
public LifecyclePolicy clearTagsEntries()
public void setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
policyArn
- The Amazon Resource Name (ARN) of the policy.public String getPolicyArn()
The Amazon Resource Name (ARN) of the policy.
public LifecyclePolicy withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy.
policyArn
- The Amazon Resource Name (ARN) of the policy.public String toString()
toString
in class Object
Object.toString()
public LifecyclePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.