Package com.amazonaws.services.iot.model
Class CreatePolicyVersionResult
- java.lang.Object
-
- com.amazonaws.services.iot.model.CreatePolicyVersionResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CreatePolicyVersionResult extends Object implements Serializable, Cloneable
The output of the CreatePolicyVersion operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreatePolicyVersionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePolicyVersionResultclone()booleanequals(Object obj)BooleangetIsDefaultVersion()Specifies whether the policy version is the default.StringgetPolicyArn()The policy ARN.StringgetPolicyDocument()The JSON document that describes the policy.StringgetPolicyVersionId()The policy version ID.inthashCode()BooleanisDefaultVersion()Specifies whether the policy version is the default.voidsetIsDefaultVersion(Boolean isDefaultVersion)Specifies whether the policy version is the default.voidsetPolicyArn(String policyArn)The policy ARN.voidsetPolicyDocument(String policyDocument)The JSON document that describes the policy.voidsetPolicyVersionId(String policyVersionId)The policy version ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreatePolicyVersionResultwithIsDefaultVersion(Boolean isDefaultVersion)Specifies whether the policy version is the default.CreatePolicyVersionResultwithPolicyArn(String policyArn)The policy ARN.CreatePolicyVersionResultwithPolicyDocument(String policyDocument)The JSON document that describes the policy.CreatePolicyVersionResultwithPolicyVersionId(String policyVersionId)The policy version ID.
-
-
-
Method Detail
-
setPolicyArn
public void setPolicyArn(String policyArn)
The policy ARN.
- Parameters:
policyArn- The policy ARN.
-
getPolicyArn
public String getPolicyArn()
The policy ARN.
- Returns:
- The policy ARN.
-
withPolicyArn
public CreatePolicyVersionResult withPolicyArn(String policyArn)
The policy ARN.
- Parameters:
policyArn- The policy ARN.- 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.
- Parameters:
policyDocument- The JSON document that describes the policy.
-
getPolicyDocument
public String getPolicyDocument()
The JSON document that describes the policy.
- Returns:
- The JSON document that describes the policy.
-
withPolicyDocument
public CreatePolicyVersionResult withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
- Parameters:
policyDocument- The JSON document that describes the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyVersionId
public void setPolicyVersionId(String policyVersionId)
The policy version ID.
- Parameters:
policyVersionId- The policy version ID.
-
getPolicyVersionId
public String getPolicyVersionId()
The policy version ID.
- Returns:
- The policy version ID.
-
withPolicyVersionId
public CreatePolicyVersionResult withPolicyVersionId(String policyVersionId)
The policy version ID.
- Parameters:
policyVersionId- The policy version ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIsDefaultVersion
public void setIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
- Parameters:
isDefaultVersion- Specifies whether the policy version is the default.
-
getIsDefaultVersion
public Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
- Returns:
- Specifies whether the policy version is the default.
-
withIsDefaultVersion
public CreatePolicyVersionResult withIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
- Parameters:
isDefaultVersion- Specifies whether the policy version is the default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDefaultVersion
public Boolean isDefaultVersion()
Specifies whether the policy version is the default.
- Returns:
- Specifies whether the policy version is the default.
-
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 CreatePolicyVersionResult clone()
-
-