Package com.amazonaws.services.iot.model
Class Policy
- java.lang.Object
-
- com.amazonaws.services.iot.model.Policy
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Policy extends Object implements Serializable, Cloneable
Describes an AWS IoT policy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Policy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Policyclone()booleanequals(Object obj)StringgetPolicyArn()The policy ARN.StringgetPolicyName()The policy name.inthashCode()voidsetPolicyArn(String policyArn)The policy ARN.voidsetPolicyName(String policyName)The policy name.StringtoString()Returns a string representation of this object; useful for testing and debugging.PolicywithPolicyArn(String policyArn)The policy ARN.PolicywithPolicyName(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 Policy 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 Policy 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.
-
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()
-
-