@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 for which the resource-based policy was retrieved.
|
String |
getName()
The friendly name of the secret for which the resource-based policy was retrieved.
|
String |
getResourcePolicy()
A JSON-formatted string that describes the permissions associated with the attached secret.
|
int |
hashCode() |
void |
setARN(String aRN)
The ARN of the secret for which the resource-based policy was retrieved.
|
void |
setName(String name)
The friendly name of the secret for which the resource-based policy was retrieved.
|
void |
setResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions associated with the attached secret.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetResourcePolicyResult |
withARN(String aRN)
The ARN of the secret for which the resource-based policy was retrieved.
|
GetResourcePolicyResult |
withName(String name)
The friendly name of the secret for which the resource-based policy was retrieved.
|
GetResourcePolicyResult |
withResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions associated with the attached secret.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setARN(String aRN)
The ARN of the secret for which the resource-based policy was retrieved.
aRN
- The ARN of the secret for which the resource-based policy was retrieved.public String getARN()
The ARN of the secret for which the resource-based policy was retrieved.
public GetResourcePolicyResult withARN(String aRN)
The ARN of the secret for which the resource-based policy was retrieved.
aRN
- The ARN of the secret for which the resource-based policy was retrieved.public void setName(String name)
The friendly name of the secret for which the resource-based policy was retrieved.
name
- The friendly name of the secret for which the resource-based policy was retrieved.public String getName()
The friendly name of the secret for which the resource-based policy was retrieved.
public GetResourcePolicyResult withName(String name)
The friendly name of the secret for which the resource-based policy was retrieved.
name
- The friendly name of the secret for which the resource-based policy was retrieved.public void setResourcePolicy(String resourcePolicy)
A JSON-formatted string that describes the permissions associated with the attached secret. These permissions are combined with any permissions associated with the user or role who 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 associated with the attached secret. These
permissions are combined with any permissions associated with the user or role who 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 associated with the attached secret. These permissions are combined with any permissions associated with the user or role who 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 associated with the attached secret. These permissions are combined with any permissions associated with the user or role who 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 associated with the attached secret. These
permissions are combined with any permissions associated with the user or role who 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 © 2013 Amazon Web Services, Inc. All Rights Reserved.