@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The structure representing the getPolicyResponse
.
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The JSON-formatted resource-based policy attached to the
ProfilingGroup . |
String |
getRevisionId()
A unique identifier for the current revision of the returned policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The JSON-formatted resource-based policy attached to the
ProfilingGroup . |
void |
setRevisionId(String revisionId)
A unique identifier for the current revision of the returned policy.
|
String |
toString()
Returns a string representation of this object.
|
GetPolicyResult |
withPolicy(String policy)
The JSON-formatted resource-based policy attached to the
ProfilingGroup . |
GetPolicyResult |
withRevisionId(String revisionId)
A unique identifier for the current revision of the returned policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The JSON-formatted resource-based policy attached to the ProfilingGroup
.
policy
- The JSON-formatted resource-based policy attached to the ProfilingGroup
.public String getPolicy()
The JSON-formatted resource-based policy attached to the ProfilingGroup
.
ProfilingGroup
.public GetPolicyResult withPolicy(String policy)
The JSON-formatted resource-based policy attached to the ProfilingGroup
.
policy
- The JSON-formatted resource-based policy attached to the ProfilingGroup
.public void setRevisionId(String revisionId)
A unique identifier for the current revision of the returned policy.
revisionId
- A unique identifier for the current revision of the returned policy.public String getRevisionId()
A unique identifier for the current revision of the returned policy.
public GetPolicyResult withRevisionId(String revisionId)
A unique identifier for the current revision of the returned policy.
revisionId
- A unique identifier for the current revision of the returned policy.public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()