@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful CreatePolicy request.
Constructor and Description |
---|
CreatePolicyResult() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyResult |
clone() |
boolean |
equals(Object obj) |
Policy |
getPolicy()
A structure containing details about the new policy.
|
int |
hashCode() |
void |
setPolicy(Policy policy)
A structure containing details about the new policy.
|
String |
toString()
Returns a string representation of this object.
|
CreatePolicyResult |
withPolicy(Policy policy)
A structure containing details about the new policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(Policy policy)
A structure containing details about the new policy.
policy
- A structure containing details about the new policy.public Policy getPolicy()
A structure containing details about the new policy.
public CreatePolicyResult withPolicy(Policy policy)
A structure containing details about the new policy.
policy
- A structure containing details about the new policy.public String toString()
toString
in class Object
Object.toString()
public CreatePolicyResult clone()