@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
PutResourcePolicyResult() |
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyHash()
ID of the current policy version.
|
String |
getPolicyId()
The policy ID.
|
int |
hashCode() |
void |
setPolicyHash(String policyHash)
ID of the current policy version.
|
void |
setPolicyId(String policyId)
The policy ID.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyResult |
withPolicyHash(String policyHash)
ID of the current policy version.
|
PutResourcePolicyResult |
withPolicyId(String policyId)
The policy ID.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setPolicyId(String policyId)
The policy ID. To update a policy, you must specify PolicyId and PolicyHash.
policyId - The policy ID. To update a policy, you must specify PolicyId and PolicyHash.public String getPolicyId()
The policy ID. To update a policy, you must specify PolicyId and PolicyHash.
PolicyId and PolicyHash.public PutResourcePolicyResult withPolicyId(String policyId)
The policy ID. To update a policy, you must specify PolicyId and PolicyHash.
policyId - The policy ID. To update a policy, you must specify PolicyId and PolicyHash.public void setPolicyHash(String policyHash)
ID of the current policy version.
policyHash - ID of the current policy version.public String getPolicyHash()
ID of the current policy version.
public PutResourcePolicyResult withPolicyHash(String policyHash)
ID of the current policy version.
policyHash - ID of the current policy version.public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyResult clone()