@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateLifecyclePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateLifecyclePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateLifecyclePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive identifier to ensure idempotency of the request.
|
String |
getDescription()
A description of the lifecycle policy.
|
String |
getName()
The name of the policy.
|
String |
getPolicy()
The JSON policy document to use as the content for the lifecycle policy.
|
String |
getPolicyVersion()
The version of the policy being updated.
|
String |
getType()
The type of lifecycle policy.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure idempotency of the request.
|
void |
setDescription(String description)
A description of the lifecycle policy.
|
void |
setName(String name)
The name of the policy.
|
void |
setPolicy(String policy)
The JSON policy document to use as the content for the lifecycle policy.
|
void |
setPolicyVersion(String policyVersion)
The version of the policy being updated.
|
void |
setType(String type)
The type of lifecycle policy.
|
String |
toString()
Returns a string representation of this object.
|
UpdateLifecyclePolicyRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure idempotency of the request.
|
UpdateLifecyclePolicyRequest |
withDescription(String description)
A description of the lifecycle policy.
|
UpdateLifecyclePolicyRequest |
withName(String name)
The name of the policy.
|
UpdateLifecyclePolicyRequest |
withPolicy(String policy)
The JSON policy document to use as the content for the lifecycle policy.
|
UpdateLifecyclePolicyRequest |
withPolicyVersion(String policyVersion)
The version of the policy being updated.
|
UpdateLifecyclePolicyRequest |
withType(LifecyclePolicyType type)
The type of lifecycle policy.
|
UpdateLifecyclePolicyRequest |
withType(String type)
The type of lifecycle policy.
|
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, withSdkRequestTimeout
public void setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure idempotency of the request.
clientToken
- A unique, case-sensitive identifier to ensure idempotency of the request.public String getClientToken()
A unique, case-sensitive identifier to ensure idempotency of the request.
public UpdateLifecyclePolicyRequest withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure idempotency of the request.
clientToken
- A unique, case-sensitive identifier to ensure idempotency of the request.public void setDescription(String description)
A description of the lifecycle policy.
description
- A description of the lifecycle policy.public String getDescription()
A description of the lifecycle policy.
public UpdateLifecyclePolicyRequest withDescription(String description)
A description of the lifecycle policy.
description
- A description of the lifecycle policy.public void setName(String name)
The name of the policy.
name
- The name of the policy.public String getName()
The name of the policy.
public UpdateLifecyclePolicyRequest withName(String name)
The name of the policy.
name
- The name of the policy.public void setPolicy(String policy)
The JSON policy document to use as the content for the lifecycle policy.
policy
- The JSON policy document to use as the content for the lifecycle policy.public String getPolicy()
The JSON policy document to use as the content for the lifecycle policy.
public UpdateLifecyclePolicyRequest withPolicy(String policy)
The JSON policy document to use as the content for the lifecycle policy.
policy
- The JSON policy document to use as the content for the lifecycle policy.public void setPolicyVersion(String policyVersion)
The version of the policy being updated.
policyVersion
- The version of the policy being updated.public String getPolicyVersion()
The version of the policy being updated.
public UpdateLifecyclePolicyRequest withPolicyVersion(String policyVersion)
The version of the policy being updated.
policyVersion
- The version of the policy being updated.public void setType(String type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public String getType()
The type of lifecycle policy.
LifecyclePolicyType
public UpdateLifecyclePolicyRequest withType(String type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public UpdateLifecyclePolicyRequest withType(LifecyclePolicyType type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public String toString()
toString
in class Object
Object.toString()
public UpdateLifecyclePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()