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() |
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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.
policyDocument
- The JSON document that describes the policy.public String getPolicyDocument()
The JSON document that describes the policy.
public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
policyDocument
- The JSON document that describes the policy.public void setSetAsDefault(Boolean setAsDefault)
Specifies whether the policy version is set as the default.
setAsDefault
- Specifies whether the policy version is set as the default.public Boolean getSetAsDefault()
Specifies whether the policy version is set as the default.
public CreatePolicyVersionRequest withSetAsDefault(Boolean setAsDefault)
Specifies whether the policy version is set as the default.
setAsDefault
- Specifies whether the policy version is set as the default.public Boolean isSetAsDefault()
Specifies whether the policy version is set as the default.
public String toString()
toString
in class Object
Object.toString()
public CreatePolicyVersionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.