@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeResourcePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeResourcePolicyResult() |
Modifier and Type | Method and Description |
---|---|
DescribeResourcePolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The JSON structure that contains the resource policy.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
String |
getRevisionId()
The current revision of the resource policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The JSON structure that contains the resource policy.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
void |
setRevisionId(String revisionId)
The current revision of the resource policy.
|
String |
toString()
Returns a string representation of this object.
|
DescribeResourcePolicyResult |
withPolicy(String policy)
The JSON structure that contains the resource policy.
|
DescribeResourcePolicyResult |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
DescribeResourcePolicyResult |
withRevisionId(String revisionId)
The current revision of the resource policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.public String getResourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
public DescribeResourcePolicyResult withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.public void setPolicy(String policy)
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
policy
- The JSON structure that contains the resource policy. For more information about the contents of a JSON
policy document, see
IAM JSON policy reference .public String getPolicy()
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
public DescribeResourcePolicyResult withPolicy(String policy)
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
policy
- The JSON structure that contains the resource policy. For more information about the contents of a JSON
policy document, see
IAM JSON policy reference .public void setRevisionId(String revisionId)
The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.
revisionId
- The current revision of the resource policy. Use the revision ID to make sure that you are updating the
most current version of a resource policy when you add a policy statement to a resource, delete a
resource, or update a resource.public String getRevisionId()
The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.
public DescribeResourcePolicyResult withRevisionId(String revisionId)
The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.
revisionId
- The current revision of the resource policy. Use the revision ID to make sure that you are updating the
most current version of a resource policy when you add a policy statement to a resource, delete a
resource, or update a resource.public String toString()
toString
in class Object
Object.toString()
public DescribeResourcePolicyResult clone()