@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Policy extends Object implements Serializable, Cloneable, StructuredPojo
Describes an AWS 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; useful for testing and debugging.
|
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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.