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 CreatePolicyVersionRequest
clone()
Creates a shallow clone of this request.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.-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePolicyVersionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-