@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicy()
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource.
|
String |
getResourceArn()
The Amazon Resource Number (ARN) of the private CA to associate with the policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Number (ARN) of the private CA to associate with the policy.
|
String |
toString()
Returns a string representation of this object.
|
PutPolicyRequest |
withPolicy(String policy)
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource.
|
PutPolicyRequest |
withResourceArn(String resourceArn)
The Amazon Resource Number (ARN) of the private CA to associate with the policy.
|
addHandlerContext, 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, withSdkRequestTimeout
public void setResourceArn(String resourceArn)
The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action.
resourceArn
- The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be
found by calling the ListCertificateAuthorities action.
public String getResourceArn()
The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action.
public PutPolicyRequest withResourceArn(String resourceArn)
The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action.
resourceArn
- The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be
found by calling the ListCertificateAuthorities action.
public void setPolicy(String policy)
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If this
policy does not contain all required statements or if it includes any statement that is not allowed, the
PutPolicy
action returns an InvalidPolicyException
. For information about IAM policy
and statement structure, see Overview of
JSON Policies.
policy
- The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If
this policy does not contain all required statements or if it includes any statement that is not allowed,
the PutPolicy
action returns an InvalidPolicyException
. For information about
IAM policy and statement structure, see Overview
of JSON Policies.public String getPolicy()
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If this
policy does not contain all required statements or if it includes any statement that is not allowed, the
PutPolicy
action returns an InvalidPolicyException
. For information about IAM policy
and statement structure, see Overview of
JSON Policies.
PutPolicy
action returns an InvalidPolicyException
. For information about
IAM policy and statement structure, see Overview of JSON Policies.public PutPolicyRequest withPolicy(String policy)
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If this
policy does not contain all required statements or if it includes any statement that is not allowed, the
PutPolicy
action returns an InvalidPolicyException
. For information about IAM policy
and statement structure, see Overview of
JSON Policies.
policy
- The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If
this policy does not contain all required statements or if it includes any statement that is not allowed,
the PutPolicy
action returns an InvalidPolicyException
. For information about
IAM policy and statement structure, see Overview
of JSON Policies.public String toString()
toString
in class Object
Object.toString()
public PutPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()