@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 friendly name of the secret that the resource-based policy was retrieved for.
|
String |
getResourcePolicy()
A JSON-formatted string that describes the permissions that are associated with the attached 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 friendly name of the secret that the resource-based policy was retrieved for.
|
void |
setResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions that are associated with the attached 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 friendly name of the secret that the resource-based policy was retrieved for.
|
GetResourcePolicyResult |
withResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions that are associated with the attached 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 friendly name of the secret that the resource-based policy was retrieved for.
name
- The friendly name of the secret that the resource-based policy was retrieved for.public String getName()
The friendly name of the secret that the resource-based policy was retrieved for.
public GetResourcePolicyResult withName(String name)
The friendly name of the secret that the resource-based policy was retrieved for.
name
- The friendly name of the secret that the resource-based policy was retrieved for.public void setResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions that are associated with the attached secret. These permissions are combined with any permissions that are associated with the user or role that attempts to access this secret. The combined permissions specify who can access the secret and what actions they can perform. For more information, see Authentication and Access Control for AWS Secrets Manager in the AWS Secrets Manager User Guide.
resourcePolicy
- A JSON-formatted string that describes the permissions that are associated with the attached secret. These
permissions are combined with any permissions that are associated with the user or role that attempts to
access this secret. The combined permissions specify who can access the secret and what actions they can
perform. For more information, see Authentication and
Access Control for AWS Secrets Manager in the AWS Secrets Manager User Guide.public String getResourcePolicy()
A JSON-formatted string that describes the permissions that are associated with the attached secret. These permissions are combined with any permissions that are associated with the user or role that attempts to access this secret. The combined permissions specify who can access the secret and what actions they can perform. For more information, see Authentication and Access Control for AWS Secrets Manager in the AWS Secrets Manager User Guide.
public GetResourcePolicyResult withResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions that are associated with the attached secret. These permissions are combined with any permissions that are associated with the user or role that attempts to access this secret. The combined permissions specify who can access the secret and what actions they can perform. For more information, see Authentication and Access Control for AWS Secrets Manager in the AWS Secrets Manager User Guide.
resourcePolicy
- A JSON-formatted string that describes the permissions that are associated with the attached secret. These
permissions are combined with any permissions that are associated with the user or role that attempts to
access this secret. The combined permissions specify who can access the secret and what actions they can
perform. For more information, see Authentication and
Access Control for AWS Secrets Manager in the AWS Secrets Manager User Guide.public String toString()
toString
in class Object
Object.toString()
public GetResourcePolicyResult clone()
Copyright © 2019. All rights reserved.