Class CreatePolicyVersionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.iot.model.CreatePolicyVersionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the CreatePolicyVersion operation.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreatePolicyVersionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePolicyVersionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetPolicyDocument()The JSON document that describes the policy.StringgetPolicyName()The policy name.BooleangetSetAsDefault()Specifies whether the policy version is set as the default.inthashCode()BooleanisSetAsDefault()Specifies whether the policy version is set as the default.voidsetPolicyDocument(String policyDocument)The JSON document that describes the policy.voidsetPolicyName(String policyName)The policy name.voidsetSetAsDefault(Boolean setAsDefault)Specifies whether the policy version is set as the default.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreatePolicyVersionRequestwithPolicyDocument(String policyDocument)The JSON document that describes the policy.CreatePolicyVersionRequestwithPolicyName(String policyName)The policy name.CreatePolicyVersionRequestwithSetAsDefault(Boolean setAsDefault)Specifies whether the policy version is set as the default.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setPolicyName
public void setPolicyName(String policyName)
The policy name.
- Parameters:
policyName- The policy name.
-
getPolicyName
public String getPolicyName()
The policy name.
- Returns:
- The policy name.
-
withPolicyName
public CreatePolicyVersionRequest withPolicyName(String policyName)
The policy name.
- Parameters:
policyName- The policy name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyDocument
public void setPolicyDocument(String policyDocument)
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
- Parameters:
policyDocument- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
-
getPolicyDocument
public String getPolicyDocument()
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
- Returns:
- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
-
withPolicyDocument
public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
- Parameters:
policyDocument- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSetAsDefault
public 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).
- Parameters:
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).
-
getSetAsDefault
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).
- Returns:
- 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).
-
withSetAsDefault
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSetAsDefault
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).
- Returns:
- 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).
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePolicyVersionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-