@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePolicy extends Object implements Serializable, Cloneable
The policy that is attached to a resource.
| Constructor and Description |
|---|
ResourcePolicy() |
| Modifier and Type | Method and Description |
|---|---|
ResourcePolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The content of a resource policy.
|
String |
getResourceArn()
The resources that a policy is attached to.
|
int |
hashCode() |
void |
setPolicy(String policy)
The content of a resource policy.
|
void |
setResourceArn(String resourceArn)
The resources that a policy is attached to.
|
String |
toString()
Returns a string representation of this object.
|
ResourcePolicy |
withPolicy(String policy)
The content of a resource policy.
|
ResourcePolicy |
withResourceArn(String resourceArn)
The resources that a policy is attached to.
|
public void setResourceArn(String resourceArn)
The resources that a policy is attached to.
resourceArn - The resources that a policy is attached to.public String getResourceArn()
The resources that a policy is attached to.
public ResourcePolicy withResourceArn(String resourceArn)
The resources that a policy is attached to.
resourceArn - The resources that a policy is attached to.public void setPolicy(String policy)
The content of a resource policy.
policy - The content of a resource policy.public String getPolicy()
The content of a resource policy.
public ResourcePolicy withPolicy(String policy)
The content of a resource policy.
policy - The content of a resource policy.public String toString()
toString in class ObjectObject.toString()public ResourcePolicy clone()