@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLifecyclePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateLifecyclePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateLifecyclePolicyRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateLifecyclePolicyRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateLifecyclePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A 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.
|
PolicyDetails |
getPolicyDetails()
The configuration details of the lifecycle policy.
|
String |
getState()
The desired activation state of the lifecycle policy after creation.
|
Map<String,String> |
getTags()
The tags to apply to the lifecycle policy during creation.
|
int |
hashCode() |
void |
setDescription(String description)
A 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 |
setPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
|
void |
setState(String state)
The desired activation state of the lifecycle policy after creation.
|
void |
setTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
|
String |
toString()
Returns a string representation of this object.
|
CreateLifecyclePolicyRequest |
withDescription(String description)
A description of the lifecycle policy.
|
CreateLifecyclePolicyRequest |
withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
CreateLifecyclePolicyRequest |
withPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
|
CreateLifecyclePolicyRequest |
withState(SettablePolicyStateValues state)
The desired activation state of the lifecycle policy after creation.
|
CreateLifecyclePolicyRequest |
withState(String state)
The desired activation state of the lifecycle policy after creation.
|
CreateLifecyclePolicyRequest |
withTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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 CreateLifecyclePolicyRequest 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 setDescription(String description)
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
description - A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.public String getDescription()
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
public CreateLifecyclePolicyRequest withDescription(String description)
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
description - A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.public void setState(String state)
The desired activation state of the lifecycle policy after creation.
state - The desired activation state of the lifecycle policy after creation.SettablePolicyStateValuespublic String getState()
The desired activation state of the lifecycle policy after creation.
SettablePolicyStateValuespublic CreateLifecyclePolicyRequest withState(String state)
The desired activation state of the lifecycle policy after creation.
state - The desired activation state of the lifecycle policy after creation.SettablePolicyStateValuespublic CreateLifecyclePolicyRequest withState(SettablePolicyStateValues state)
The desired activation state of the lifecycle policy after creation.
state - The desired activation state of the lifecycle policy after creation.SettablePolicyStateValuespublic void setPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
policyDetails - The configuration details of the lifecycle policy.public PolicyDetails getPolicyDetails()
The configuration details of the lifecycle policy.
public CreateLifecyclePolicyRequest withPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
policyDetails - The configuration details of the lifecycle policy.public Map<String,String> getTags()
The tags to apply to the lifecycle policy during creation.
public void setTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
tags - The tags to apply to the lifecycle policy during creation.public CreateLifecyclePolicyRequest withTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
tags - The tags to apply to the lifecycle policy during creation.public CreateLifecyclePolicyRequest addTagsEntry(String key, String value)
public CreateLifecyclePolicyRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public CreateLifecyclePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()