public class Policy
extends java.lang.Object
implements java.io.Serializable
Describes an AWS IoT policy.
Constructor and Description |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyArn()
The policy ARN.
|
java.lang.String |
getPolicyName()
The policy name.
|
int |
hashCode() |
void |
setPolicyArn(java.lang.String policyArn)
The policy ARN.
|
void |
setPolicyName(java.lang.String policyName)
The policy name.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Policy |
withPolicyArn(java.lang.String policyArn)
The policy ARN.
|
Policy |
withPolicyName(java.lang.String policyName)
The policy name.
|
public java.lang.String getPolicyName()
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy name.
public void setPolicyName(java.lang.String policyName)
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The policy name.
public Policy withPolicyName(java.lang.String policyName)
The policy name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The policy name.
public java.lang.String getPolicyArn()
The policy ARN.
The policy ARN.
public void setPolicyArn(java.lang.String policyArn)
The policy ARN.
policyArn
- The policy ARN.
public Policy withPolicyArn(java.lang.String policyArn)
The policy ARN.
Returns a reference to this object so that method calls can be chained together.
policyArn
- The policy ARN.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.