@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutResourcePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourcePolicy()
A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based policy.
|
String |
getSecretId()
Specifies the secret that you want to attach the resource-based policy to.
|
int |
hashCode() |
void |
setResourcePolicy(String resourcePolicy)
A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based policy.
|
void |
setSecretId(String secretId)
Specifies the secret that you want to attach the resource-based policy to.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutResourcePolicyRequest |
withResourcePolicy(String resourcePolicy)
A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based policy.
|
PutResourcePolicyRequest |
withSecretId(String secretId)
Specifies the secret that you want to attach the resource-based policy to.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setSecretId(String secretId)
Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN or the friendly name of the secret.
secretId - Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN
or the friendly name of the secret.public String getSecretId()
Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN or the friendly name of the secret.
public PutResourcePolicyRequest withSecretId(String secretId)
Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN or the friendly name of the secret.
secretId - Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN
or the friendly name of the secret.public void setResourcePolicy(String resourcePolicy)
A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.
resourcePolicy - A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based
policy. The policy in the string identifies who can access or manage this secret and its versions. For
information on how to format a JSON parameter for the various command line tool environments, see Using
JSON for Parameters in the AWS CLI User Guide.public String getResourcePolicy()
A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.
public PutResourcePolicyRequest withResourcePolicy(String resourcePolicy)
A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.
resourcePolicy - A JSON-formatted string that's constructed according to the grammar and syntax for an AWS resource-based
policy. The policy in the string identifies who can access or manage this secret and its versions. For
information on how to format a JSON parameter for the various command line tool environments, see Using
JSON for Parameters in the AWS CLI User Guide.public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.