@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 |
getResourceArn()
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
|
String |
getResourcePolicy()
The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.
|
int |
hashCode() |
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
|
void |
setResourcePolicy(String resourcePolicy)
The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyResult |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
|
PutResourcePolicyResult |
withResourcePolicy(String resourcePolicy)
The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
resourceArn
- The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.public String getResourceArn()
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
public PutResourcePolicyResult withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
resourceArn
- The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.public void setResourcePolicy(String resourcePolicy)
The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.
resourcePolicy
- The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail
channel.public String getResourcePolicy()
The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.
public PutResourcePolicyResult withResourcePolicy(String resourcePolicy)
The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.
resourcePolicy
- The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail
channel.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyResult clone()