@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutImagePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutImagePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutImagePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getImageArn()
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
|
String |
getPolicy()
The policy to apply.
|
int |
hashCode() |
void |
setImageArn(String imageArn)
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
|
void |
setPolicy(String policy)
The policy to apply.
|
String |
toString()
Returns a string representation of this object.
|
PutImagePolicyRequest |
withImageArn(String imageArn)
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
|
PutImagePolicyRequest |
withPolicy(String policy)
The policy to apply.
|
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 setImageArn(String imageArn)
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
imageArn - The Amazon Resource Name (ARN) of the image that this policy should be applied to.public String getImageArn()
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
public PutImagePolicyRequest withImageArn(String imageArn)
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
imageArn - The Amazon Resource Name (ARN) of the image that this policy should be applied to.public void setPolicy(String policy)
The policy to apply.
policy - The policy to apply.public String getPolicy()
The policy to apply.
public PutImagePolicyRequest withPolicy(String policy)
The policy to apply.
policy - The policy to apply.public String toString()
toString in class ObjectObject.toString()public PutImagePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()