@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 |
getPolicy()
The policy attached to a resource.
|
String |
getResourceArn()
Amazon Resource Name (ARN) of the resource to which a policy is attached.
|
int |
hashCode() |
void |
setPolicy(String policy)
The policy attached to a resource.
|
void |
setResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which a policy is attached.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyResult |
withPolicy(String policy)
The policy attached to a resource.
|
PutResourcePolicyResult |
withResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which a policy is attached.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which a policy is attached.
resourceArn - Amazon Resource Name (ARN) of the resource to which a policy is attached.public String getResourceArn()
Amazon Resource Name (ARN) of the resource to which a policy is attached.
public PutResourcePolicyResult withResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which a policy is attached.
resourceArn - Amazon Resource Name (ARN) of the resource to which a policy is attached.public void setPolicy(String policy)
The policy attached to a resource.
policy - The policy attached to a resource.public String getPolicy()
The policy attached to a resource.
public PutResourcePolicyResult withPolicy(String policy)
The policy attached to a resource.
policy - The policy attached to a resource.public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyResult clone()