@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourcePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetResourcePolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetResourcePolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The ARN of the secret that the resource-based policy was retrieved for.
|
String |
getName()
The name of the secret that the resource-based policy was retrieved for.
|
String |
getResourcePolicy()
A JSON-formatted string that contains the permissions policy attached to the secret.
|
int |
hashCode() |
void |
setARN(String aRN)
The ARN of the secret that the resource-based policy was retrieved for.
|
void |
setName(String name)
The name of the secret that the resource-based policy was retrieved for.
|
void |
setResourcePolicy(String resourcePolicy)
A JSON-formatted string that contains the permissions policy attached to the secret.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withARN(String aRN)
The ARN of the secret that the resource-based policy was retrieved for.
|
GetResourcePolicyResult |
withName(String name)
The name of the secret that the resource-based policy was retrieved for.
|
GetResourcePolicyResult |
withResourcePolicy(String resourcePolicy)
A JSON-formatted string that contains the permissions policy attached to the secret.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setARN(String aRN)
The ARN of the secret that the resource-based policy was retrieved for.
aRN
- The ARN of the secret that the resource-based policy was retrieved for.public String getARN()
The ARN of the secret that the resource-based policy was retrieved for.
public GetResourcePolicyResult withARN(String aRN)
The ARN of the secret that the resource-based policy was retrieved for.
aRN
- The ARN of the secret that the resource-based policy was retrieved for.public void setName(String name)
The name of the secret that the resource-based policy was retrieved for.
name
- The name of the secret that the resource-based policy was retrieved for.public String getName()
The name of the secret that the resource-based policy was retrieved for.
public GetResourcePolicyResult withName(String name)
The name of the secret that the resource-based policy was retrieved for.
name
- The name of the secret that the resource-based policy was retrieved for.public void setResourcePolicy(String resourcePolicy)
A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see Authentication and access control for Secrets Manager.
resourcePolicy
- A JSON-formatted string that contains the permissions policy attached to the secret. For more information
about permissions policies, see Authentication and
access control for Secrets Manager.public String getResourcePolicy()
A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see Authentication and access control for Secrets Manager.
public GetResourcePolicyResult withResourcePolicy(String resourcePolicy)
A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see Authentication and access control for Secrets Manager.
resourcePolicy
- A JSON-formatted string that contains the permissions policy attached to the secret. For more information
about permissions policies, see Authentication and
access control for Secrets Manager.public String toString()
toString
in class Object
Object.toString()
public GetResourcePolicyResult clone()