@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The resource policy associated with the specified function.
|
String |
getRevisionId()
Represents the latest updated revision of the function or alias.
|
int |
hashCode() |
void |
setPolicy(String policy)
The resource policy associated with the specified function.
|
void |
setRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetPolicyResult |
withPolicy(String policy)
The resource policy associated with the specified function.
|
GetPolicyResult |
withRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.
policy
- The resource policy associated with the specified function. The response returns the same as a string
using a backslash ("\") as an escape character in the JSON.public String getPolicy()
The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.
public GetPolicyResult withPolicy(String policy)
The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.
policy
- The resource policy associated with the specified function. The response returns the same as a string
using a backslash ("\") as an escape character in the JSON.public void setRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
revisionId
- Represents the latest updated revision of the function or alias.public String getRevisionId()
Represents the latest updated revision of the function or alias.
public GetPolicyResult withRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
revisionId
- Represents the latest updated revision of the function or alias.public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()
Copyright © 2018. All rights reserved.