@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Policy extends Object implements Serializable, Cloneable, StructuredPojo
Describes an IoT policy.
| Constructor and Description |
|---|
Policy() |
| Modifier and Type | Method and Description |
|---|---|
Policy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyArn()
The policy ARN.
|
String |
getPolicyName()
The policy name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPolicyArn(String policyArn)
The policy ARN.
|
void |
setPolicyName(String policyName)
The policy name.
|
String |
toString()
Returns a string representation of this object.
|
Policy |
withPolicyArn(String policyArn)
The policy ARN.
|
Policy |
withPolicyName(String policyName)
The policy name.
|
public void setPolicyName(String policyName)
The policy name.
policyName - The policy name.public String getPolicyName()
The policy name.
public Policy withPolicyName(String policyName)
The policy name.
policyName - The policy name.public void setPolicyArn(String policyArn)
The policy ARN.
policyArn - The policy ARN.public String getPolicyArn()
The policy ARN.
public Policy withPolicyArn(String policyArn)
The policy ARN.
policyArn - The policy ARN.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.