Class CreatePolicyVersionRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
The input for the CreatePolicyVersion operation.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The JSON document that describes the policy.The policy name.Specifies whether the policy version is set as the default.int
hashCode()
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.toString()
Returns a string representation of this object; useful for testing and debugging.withPolicyDocument
(String policyDocument) The JSON document that describes the policy.withPolicyName
(String policyName) The policy name.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
-
Constructor Details
-
CreatePolicyVersionRequest
public CreatePolicyVersionRequest()
-
-
Method Details
-
setPolicyName
The policy name.
- Parameters:
policyName
- The policy name.
-
getPolicyName
The policy name.
- Returns:
- The policy name.
-
withPolicyName
The policy name.
- Parameters:
policyName
- The policy name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyDocument
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-