@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeleteResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DeleteResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
DeleteResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the resource policy to delete.
|
String |
getPolicyRevisionId()
Specifies a specific policy revision to delete.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name of the resource policy to delete.
|
void |
setPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision to delete.
|
String |
toString()
Returns a string representation of this object.
|
DeleteResourcePolicyRequest |
withPolicyName(String policyName)
The name of the resource policy to delete.
|
DeleteResourcePolicyRequest |
withPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision to delete.
|
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 setPolicyName(String policyName)
The name of the resource policy to delete.
policyName
- The name of the resource policy to delete.public String getPolicyName()
The name of the resource policy to delete.
public DeleteResourcePolicyRequest withPolicyName(String policyName)
The name of the resource policy to delete.
policyName
- The name of the resource policy to delete.public void setPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision to delete. Provide a PolicyRevisionId
to ensure an atomic
delete operation. If the provided revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.
policyRevisionId
- Specifies a specific policy revision to delete. Provide a PolicyRevisionId
to ensure an
atomic delete operation. If the provided revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.public String getPolicyRevisionId()
Specifies a specific policy revision to delete. Provide a PolicyRevisionId
to ensure an atomic
delete operation. If the provided revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.
PolicyRevisionId
to ensure an
atomic delete operation. If the provided revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.public DeleteResourcePolicyRequest withPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision to delete. Provide a PolicyRevisionId
to ensure an atomic
delete operation. If the provided revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.
policyRevisionId
- Specifies a specific policy revision to delete. Provide a PolicyRevisionId
to ensure an
atomic delete operation. If the provided revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.public String toString()
toString
in class Object
Object.toString()
public DeleteResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()