Package com.amazonaws.services.iot.model
Class GetPolicyResult
- java.lang.Object
-
- com.amazonaws.services.iot.model.GetPolicyResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetPolicyResult extends Object implements Serializable, Cloneable
The output from the GetPolicy operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetPolicyResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetPolicyResultclone()booleanequals(Object obj)StringgetDefaultVersionId()The default policy version ID.StringgetPolicyArn()The policy ARN.StringgetPolicyDocument()The JSON document that describes the policy.StringgetPolicyName()The policy name.inthashCode()voidsetDefaultVersionId(String defaultVersionId)The default policy version ID.voidsetPolicyArn(String policyArn)The policy ARN.voidsetPolicyDocument(String policyDocument)The JSON document that describes the policy.voidsetPolicyName(String policyName)The policy name.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetPolicyResultwithDefaultVersionId(String defaultVersionId)The default policy version ID.GetPolicyResultwithPolicyArn(String policyArn)The policy ARN.GetPolicyResultwithPolicyDocument(String policyDocument)The JSON document that describes the policy.GetPolicyResultwithPolicyName(String policyName)The policy name.
-
-
-
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 GetPolicyResult 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.
-
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 GetPolicyResult 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 GetPolicyResult 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.
-
setDefaultVersionId
public void setDefaultVersionId(String defaultVersionId)
The default policy version ID.
- Parameters:
defaultVersionId- The default policy version ID.
-
getDefaultVersionId
public String getDefaultVersionId()
The default policy version ID.
- Returns:
- The default policy version ID.
-
withDefaultVersionId
public GetPolicyResult withDefaultVersionId(String defaultVersionId)
The default policy version ID.
- Parameters:
defaultVersionId- The default policy version ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 GetPolicyResult clone()
-
-