@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()
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
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 update the lifecycle policy.
|
String |
getLifecyclePolicyArn()
The Amazon Resource Name (ARN) of the lifecycle policy resource.
|
List<LifecyclePolicyDetail> |
getPolicyDetails()
The configuration details for a lifecycle policy resource.
|
LifecyclePolicyResourceSelection |
getResourceSelection()
Selection criteria for resources that the lifecycle policy applies to.
|
String |
getResourceType()
The type of image resource that the lifecycle policy applies to.
|
String |
getStatus()
Indicates whether the lifecycle policy resource is enabled.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
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 update the lifecycle policy.
|
void |
setLifecyclePolicyArn(String lifecyclePolicyArn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
|
void |
setPolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)
The configuration details for a lifecycle policy resource.
|
void |
setResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Selection criteria for resources that the lifecycle policy applies to.
|
void |
setResourceType(String resourceType)
The type of image resource that the lifecycle policy applies to.
|
void |
setStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
|
String |
toString()
Returns a string representation of this object.
|
UpdateLifecyclePolicyRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
UpdateLifecyclePolicyRequest |
withDescription(String description)
Optional description for the lifecycle policy.
|
UpdateLifecyclePolicyRequest |
withExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle policy.
|
UpdateLifecyclePolicyRequest |
withLifecyclePolicyArn(String lifecyclePolicyArn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
|
UpdateLifecyclePolicyRequest |
withPolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)
The configuration details for a lifecycle policy resource.
|
UpdateLifecyclePolicyRequest |
withPolicyDetails(LifecyclePolicyDetail... policyDetails)
The configuration details for a lifecycle policy resource.
|
UpdateLifecyclePolicyRequest |
withResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Selection criteria for resources that the lifecycle policy applies to.
|
UpdateLifecyclePolicyRequest |
withResourceType(LifecyclePolicyResourceType resourceType)
The type of image resource that the lifecycle policy applies to.
|
UpdateLifecyclePolicyRequest |
withResourceType(String resourceType)
The type of image resource that the lifecycle policy applies to.
|
UpdateLifecyclePolicyRequest |
withStatus(LifecyclePolicyStatus status)
Indicates whether the lifecycle policy resource is enabled.
|
UpdateLifecyclePolicyRequest |
withStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
|
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 setLifecyclePolicyArn(String lifecyclePolicyArn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
lifecyclePolicyArn
- The Amazon Resource Name (ARN) of the lifecycle policy resource.public String getLifecyclePolicyArn()
The Amazon Resource Name (ARN) of the lifecycle policy resource.
public UpdateLifecyclePolicyRequest withLifecyclePolicyArn(String lifecyclePolicyArn)
The Amazon Resource Name (ARN) of the lifecycle policy resource.
lifecyclePolicyArn
- The Amazon Resource Name (ARN) of the lifecycle policy resource.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 UpdateLifecyclePolicyRequest 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 UpdateLifecyclePolicyRequest withStatus(String status)
Indicates whether the lifecycle policy resource is enabled.
status
- Indicates whether the lifecycle policy resource is enabled.LifecyclePolicyStatus
public UpdateLifecyclePolicyRequest 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 update the lifecycle policy.
executionRole
- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle
policy.public String getExecutionRole()
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle policy.
public UpdateLifecyclePolicyRequest withExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle policy.
executionRole
- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle
policy.public void setResourceType(String resourceType)
The type of image resource that the lifecycle policy applies to.
resourceType
- The type of image resource that the lifecycle policy applies to.LifecyclePolicyResourceType
public String getResourceType()
The type of image resource that the lifecycle policy applies to.
LifecyclePolicyResourceType
public UpdateLifecyclePolicyRequest withResourceType(String resourceType)
The type of image resource that the lifecycle policy applies to.
resourceType
- The type of image resource that the lifecycle policy applies to.LifecyclePolicyResourceType
public UpdateLifecyclePolicyRequest withResourceType(LifecyclePolicyResourceType resourceType)
The type of image resource that the lifecycle policy applies to.
resourceType
- The type of image resource that the lifecycle policy applies to.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 UpdateLifecyclePolicyRequest 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 UpdateLifecyclePolicyRequest 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)
Selection criteria for resources that the lifecycle policy applies to.
resourceSelection
- Selection criteria for resources that the lifecycle policy applies to.public LifecyclePolicyResourceSelection getResourceSelection()
Selection criteria for resources that the lifecycle policy applies to.
public UpdateLifecyclePolicyRequest withResourceSelection(LifecyclePolicyResourceSelection resourceSelection)
Selection criteria for resources that the lifecycle policy applies to.
resourceSelection
- Selection criteria for resources that the lifecycle policy applies to.public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see Ensuring
idempotency in the Amazon EC2 API Reference.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
public UpdateLifecyclePolicyRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see Ensuring
idempotency in the Amazon EC2 API Reference.public String toString()
toString
in class Object
Object.toString()
public UpdateLifecyclePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()