@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the CreatePolicyVersion operation.
NOOP
Constructor and Description |
---|
CreatePolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyVersionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicyDocument()
The JSON document that describes the policy.
|
String |
getPolicyName()
The policy name.
|
Boolean |
getSetAsDefault()
Specifies whether the policy version is set as the default.
|
int |
hashCode() |
Boolean |
isSetAsDefault()
Specifies whether the policy version is set as the default.
|
void |
setPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
void |
setPolicyName(String policyName)
The policy name.
|
void |
setSetAsDefault(Boolean setAsDefault)
Specifies whether the policy version is set as the default.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreatePolicyVersionRequest |
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
CreatePolicyVersionRequest |
withPolicyName(String policyName)
The policy name.
|
CreatePolicyVersionRequest |
withSetAsDefault(Boolean setAsDefault)
Specifies whether the policy version is set as the default.
|
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 setPolicyName(String policyName)
The policy name.
policyName
- The policy name.public String getPolicyName()
The policy name.
public CreatePolicyVersionRequest withPolicyName(String policyName)
The policy name.
policyName
- The policy name.public void setPolicyDocument(String policyDocument)
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
policyDocument
- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding
whitespacespublic String getPolicyDocument()
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
policyDocument
- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding
whitespacespublic void setSetAsDefault(Boolean setAsDefault)
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
setAsDefault
- Specifies whether the policy version is set as the default. When this parameter is true, the new policy
version becomes the operative version (that is, the version that is in effect for the certificates to
which the policy is attached).public Boolean getSetAsDefault()
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
public CreatePolicyVersionRequest withSetAsDefault(Boolean setAsDefault)
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
setAsDefault
- Specifies whether the policy version is set as the default. When this parameter is true, the new policy
version becomes the operative version (that is, the version that is in effect for the certificates to
which the policy is attached).public Boolean isSetAsDefault()
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
public String toString()
toString
in class Object
Object.toString()
public CreatePolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.