public class PolicyAttribute extends Object implements Serializable
The PolicyAttribute data type. This data type contains a key/value pair that defines properties of a specific policy.
Constructor and Description |
---|
PolicyAttribute()
Default constructor for a new PolicyAttribute object.
|
PolicyAttribute(String attributeName,
String attributeValue)
Constructs a new PolicyAttribute object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAttributeName()
The name of the attribute associated with the policy.
|
String |
getAttributeValue()
The value of the attribute associated with the policy.
|
int |
hashCode() |
void |
setAttributeName(String attributeName)
The name of the attribute associated with the policy.
|
void |
setAttributeValue(String attributeValue)
The value of the attribute associated with the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyAttribute |
withAttributeName(String attributeName)
The name of the attribute associated with the policy.
|
PolicyAttribute |
withAttributeValue(String attributeValue)
The value of the attribute associated with the policy.
|
public PolicyAttribute()
public PolicyAttribute(String attributeName, String attributeValue)
attributeName
- The name of the attribute associated with the
policy.attributeValue
- The value of the attribute associated with the
policy.public String getAttributeName()
public void setAttributeName(String attributeName)
attributeName
- The name of the attribute associated with the policy.public PolicyAttribute withAttributeName(String attributeName)
Returns a reference to this object so that method calls can be chained together.
attributeName
- The name of the attribute associated with the policy.public String getAttributeValue()
public void setAttributeValue(String attributeValue)
attributeValue
- The value of the attribute associated with the policy.public PolicyAttribute withAttributeValue(String attributeValue)
Returns a reference to this object so that method calls can be chained together.
attributeValue
- The value of the attribute associated with the policy.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.