@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The name of the policy.
NOOP
Constructor and Description |
---|
PutResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicy()
The resource-based policy.
|
String |
getRegistryName()
The name of the registry.
|
String |
getRevisionId()
The revision ID of the policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The resource-based policy.
|
void |
setRegistryName(String registryName)
The name of the registry.
|
void |
setRevisionId(String revisionId)
The revision ID of the policy.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
The resource-based policy.
|
PutResourcePolicyRequest |
withRegistryName(String registryName)
The name of the registry.
|
PutResourcePolicyRequest |
withRevisionId(String revisionId)
The revision ID of the 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 setPolicy(String policy)
The resource-based policy.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policy
- The resource-based policy.public String getPolicy()
The resource-based policy.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public PutResourcePolicyRequest withPolicy(String policy)
The resource-based policy.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policy
- The resource-based policy.public void setRegistryName(String registryName)
The name of the registry.
registryName
- The name of the registry.public String getRegistryName()
The name of the registry.
public PutResourcePolicyRequest withRegistryName(String registryName)
The name of the registry.
registryName
- The name of the registry.public void setRevisionId(String revisionId)
The revision ID of the policy.
revisionId
- The revision ID of the policy.public String getRevisionId()
The revision ID of the policy.
public PutResourcePolicyRequest withRevisionId(String revisionId)
The revision ID of the policy.
revisionId
- The revision ID of the policy.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()