Package com.amazonaws.services.iot.model
Class GetPolicyVersionResult
- java.lang.Object
-
- com.amazonaws.services.iot.model.GetPolicyVersionResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GetPolicyVersionResult extends Object implements Serializable, Cloneable
The output from the GetPolicyVersion operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetPolicyVersionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetPolicyVersionResult
clone()
boolean
equals(Object obj)
Boolean
getIsDefaultVersion()
Specifies whether the policy version is the default.String
getPolicyArn()
The policy ARN.String
getPolicyDocument()
The JSON document that describes the policy.String
getPolicyName()
The policy name.String
getPolicyVersionId()
The policy version ID.int
hashCode()
Boolean
isDefaultVersion()
Specifies whether the policy version is the default.void
setIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.void
setPolicyArn(String policyArn)
The policy ARN.void
setPolicyDocument(String policyDocument)
The JSON document that describes the policy.void
setPolicyName(String policyName)
The policy name.void
setPolicyVersionId(String policyVersionId)
The policy version ID.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetPolicyVersionResult
withIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.GetPolicyVersionResult
withPolicyArn(String policyArn)
The policy ARN.GetPolicyVersionResult
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.GetPolicyVersionResult
withPolicyName(String policyName)
The policy name.GetPolicyVersionResult
withPolicyVersionId(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 GetPolicyVersionResult 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.
-
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 GetPolicyVersionResult 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.
- 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 GetPolicyVersionResult 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 GetPolicyVersionResult 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 GetPolicyVersionResult 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetPolicyVersionResult clone()
-
-