@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicy extends Object implements Serializable, Cloneable, StructuredPojo
The configuration details for a lifecycle policy resource.
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) |
String |
getArn()
The Amazon Resource Name (ARN) of the lifecycle policy resource.
|
Date |
getDateCreated()
The timestamp when Image Builder created the lifecycle policy resource.
|
Date |
getDateLastRun()
The timestamp for the last time Image Builder ran the lifecycle policy.
|
Date |
getDateUpdated()
The timestamp when Image Builder updated the lifecycle policy resource.
|
String |
getDescription()
Optional description for the lifecycle policy.
|
String |
getExecutionRole()
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.
|
String |
getName()
The name of the lifecycle policy.
|
List<LifecyclePolicyDetail> |
getPolicyDetails()
The configuration details for a lifecycle policy resource.
|
LifecyclePolicyResourceSelection |
getResourceSelection()
Resource selection criteria used to run the lifecycle policy.
|
String |
getResourceType()
The type of resources the lifecycle policy targets.
|
String |
getStatus()
Indicates whether the lifecycle policy resource is enabled.
|
Map<String,String> |
getTags()
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of
tags.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
|
void |
setDateCreated(Date dateCreated)
The timestamp when Image Builder created the lifecycle policy resource.
|
void |
setDateLastRun(Date dateLastRun)
The timestamp for the last time Image Builder ran the lifecycle policy.
|
void |
setDateUpdated(Date dateUpdated)
The timestamp when Image Builder updated the lifecycle policy resource.
|
void |
setDescription(String description)
Optional description for the lifecycle policy.
|
void |
setExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.
|
void |
setName(String name)
The name of the lifecycle policy.
|
void |
setPolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)
The configuration details for a lifecycle policy resource.
|
void |
setResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Resource selection criteria used to run the lifecycle policy.
|
void |
setResourceType(String resourceType)
The type of resources the lifecycle policy targets.
|
void |
setStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
|
void |
setTags(Map<String,String> tags)
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of
tags.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicy |
withArn(String arn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
|
LifecyclePolicy |
withDateCreated(Date dateCreated)
The timestamp when Image Builder created the lifecycle policy resource.
|
LifecyclePolicy |
withDateLastRun(Date dateLastRun)
The timestamp for the last time Image Builder ran the lifecycle policy.
|
LifecyclePolicy |
withDateUpdated(Date dateUpdated)
The timestamp when Image Builder updated the lifecycle policy resource.
|
LifecyclePolicy |
withDescription(String description)
Optional description for the lifecycle policy.
|
LifecyclePolicy |
withExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.
|
LifecyclePolicy |
withName(String name)
The name of the lifecycle policy.
|
LifecyclePolicy |
withPolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)
The configuration details for a lifecycle policy resource.
|
LifecyclePolicy |
withPolicyDetails(LifecyclePolicyDetail... policyDetails)
The configuration details for a lifecycle policy resource.
|
LifecyclePolicy |
withResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Resource selection criteria used to run the lifecycle policy.
|
LifecyclePolicy |
withResourceType(LifecyclePolicyResourceType resourceType)
The type of resources the lifecycle policy targets.
|
LifecyclePolicy |
withResourceType(String resourceType)
The type of resources the lifecycle policy targets.
|
LifecyclePolicy |
withStatus(LifecyclePolicyStatus status)
Indicates whether the lifecycle policy resource is enabled.
|
LifecyclePolicy |
withStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
|
LifecyclePolicy |
withTags(Map<String,String> tags)
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of
tags.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
arn
- The Amazon Resource Name (ARN) of the lifecycle policy resource.public String getArn()
The Amazon Resource Name (ARN) of the lifecycle policy resource.
public LifecyclePolicy withArn(String arn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
arn
- The Amazon Resource Name (ARN) of the lifecycle policy resource.public void setName(String name)
The name of the lifecycle policy.
name
- The name of the lifecycle policy.public String getName()
The name of the lifecycle policy.
public LifecyclePolicy withName(String name)
The name of the lifecycle policy.
name
- The name of the lifecycle policy.public void setDescription(String description)
Optional description for the lifecycle policy.
description
- Optional description for the lifecycle policy.public String getDescription()
Optional description for the lifecycle policy.
public LifecyclePolicy withDescription(String description)
Optional description for the lifecycle policy.
description
- Optional description for the lifecycle policy.public void setStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
status
- Indicates whether the lifecycle policy resource is enabled.LifecyclePolicyStatus
public String getStatus()
Indicates whether the lifecycle policy resource is enabled.
LifecyclePolicyStatus
public LifecyclePolicy withStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
status
- Indicates whether the lifecycle policy resource is enabled.LifecyclePolicyStatus
public LifecyclePolicy withStatus(LifecyclePolicyStatus status)
Indicates whether the lifecycle policy resource is enabled.
status
- Indicates whether the lifecycle policy resource is enabled.LifecyclePolicyStatus
public void setExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
executionRole
- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle
policy. This is a custom role that you create.public String getExecutionRole()
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
public LifecyclePolicy withExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
executionRole
- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle
policy. This is a custom role that you create.public void setResourceType(String resourceType)
The type of resources the lifecycle policy targets.
resourceType
- The type of resources the lifecycle policy targets.LifecyclePolicyResourceType
public String getResourceType()
The type of resources the lifecycle policy targets.
LifecyclePolicyResourceType
public LifecyclePolicy withResourceType(String resourceType)
The type of resources the lifecycle policy targets.
resourceType
- The type of resources the lifecycle policy targets.LifecyclePolicyResourceType
public LifecyclePolicy withResourceType(LifecyclePolicyResourceType resourceType)
The type of resources the lifecycle policy targets.
resourceType
- The type of resources the lifecycle policy targets.LifecyclePolicyResourceType
public List<LifecyclePolicyDetail> getPolicyDetails()
The configuration details for a lifecycle policy resource.
public void setPolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)
The configuration details for a lifecycle policy resource.
policyDetails
- The configuration details for a lifecycle policy resource.public LifecyclePolicy withPolicyDetails(LifecyclePolicyDetail... policyDetails)
The configuration details for a lifecycle policy resource.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyDetails(java.util.Collection)
or withPolicyDetails(java.util.Collection)
if you want
to override the existing values.
policyDetails
- The configuration details for a lifecycle policy resource.public LifecyclePolicy withPolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)
The configuration details for a lifecycle policy resource.
policyDetails
- The configuration details for a lifecycle policy resource.public void setResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Resource selection criteria used to run the lifecycle policy.
resourceSelection
- Resource selection criteria used to run the lifecycle policy.public LifecyclePolicyResourceSelection getResourceSelection()
Resource selection criteria used to run the lifecycle policy.
public LifecyclePolicy withResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Resource selection criteria used to run the lifecycle policy.
resourceSelection
- Resource selection criteria used to run the lifecycle policy.public void setDateCreated(Date dateCreated)
The timestamp when Image Builder created the lifecycle policy resource.
dateCreated
- The timestamp when Image Builder created the lifecycle policy resource.public Date getDateCreated()
The timestamp when Image Builder created the lifecycle policy resource.
public LifecyclePolicy withDateCreated(Date dateCreated)
The timestamp when Image Builder created the lifecycle policy resource.
dateCreated
- The timestamp when Image Builder created the lifecycle policy resource.public void setDateUpdated(Date dateUpdated)
The timestamp when Image Builder updated the lifecycle policy resource.
dateUpdated
- The timestamp when Image Builder updated the lifecycle policy resource.public Date getDateUpdated()
The timestamp when Image Builder updated the lifecycle policy resource.
public LifecyclePolicy withDateUpdated(Date dateUpdated)
The timestamp when Image Builder updated the lifecycle policy resource.
dateUpdated
- The timestamp when Image Builder updated the lifecycle policy resource.public void setDateLastRun(Date dateLastRun)
The timestamp for the last time Image Builder ran the lifecycle policy.
dateLastRun
- The timestamp for the last time Image Builder ran the lifecycle policy.public Date getDateLastRun()
The timestamp for the last time Image Builder ran the lifecycle policy.
public LifecyclePolicy withDateLastRun(Date dateLastRun)
The timestamp for the last time Image Builder ran the lifecycle policy.
dateLastRun
- The timestamp for the last time Image Builder ran the lifecycle policy.public Map<String,String> getTags()
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.
public void setTags(Map<String,String> tags)
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.
tags
- To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the
form of tags. Each tag consists of a key and an optional value, both of which you define.public LifecyclePolicy withTags(Map<String,String> tags)
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.
tags
- To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the
form of tags. Each tag consists of a key and an optional value, both of which you define.public LifecyclePolicy addTagsEntry(String key, String value)
public LifecyclePolicy clearTagsEntries()
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.