@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetBucketPolicyResult extends AmazonWebServiceResult<S3ControlResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetBucketPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetBucketPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The policy of the Outposts bucket.
|
int |
hashCode() |
void |
setPolicy(String policy)
The policy of the Outposts bucket.
|
String |
toString()
Returns a string representation of this object.
|
GetBucketPolicyResult |
withPolicy(String policy)
The policy of the Outposts bucket.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The policy of the Outposts bucket.
policy
- The policy of the Outposts bucket.public String getPolicy()
The policy of the Outposts bucket.
public GetBucketPolicyResult withPolicy(String policy)
The policy of the Outposts bucket.
policy
- The policy of the Outposts bucket.public String toString()
toString
in class Object
Object.toString()
public GetBucketPolicyResult clone()