public class PolicyAttribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about a policy attribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName
The name of the attribute.
|
private java.lang.String |
attributeValue
The value of the attribute.
|
Constructor and Description |
---|
PolicyAttribute()
Default constructor for PolicyAttribute object.
|
PolicyAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Constructs a new PolicyAttribute object.
|
Modifier and Type | Method and Description |
---|---|
PolicyAttribute |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
The name of the attribute.
|
java.lang.String |
getAttributeValue()
The value of the attribute.
|
int |
hashCode() |
void |
setAttributeName(java.lang.String attributeName)
The name of the attribute.
|
void |
setAttributeValue(java.lang.String attributeValue)
The value of the attribute.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyAttribute |
withAttributeName(java.lang.String attributeName)
The name of the attribute.
|
PolicyAttribute |
withAttributeValue(java.lang.String attributeValue)
The value of the attribute.
|
private java.lang.String attributeName
The name of the attribute.
private java.lang.String attributeValue
The value of the attribute.
public PolicyAttribute()
public PolicyAttribute(java.lang.String attributeName, java.lang.String attributeValue)
attributeName
- The name of the attribute.attributeValue
- The value of the attribute.public void setAttributeName(java.lang.String attributeName)
The name of the attribute.
attributeName
- The name of the attribute.public java.lang.String getAttributeName()
The name of the attribute.
public PolicyAttribute withAttributeName(java.lang.String attributeName)
The name of the attribute.
attributeName
- The name of the attribute.public void setAttributeValue(java.lang.String attributeValue)
The value of the attribute.
attributeValue
- The value of the attribute.public java.lang.String getAttributeValue()
The value of the attribute.
public PolicyAttribute withAttributeValue(java.lang.String attributeValue)
The value of the attribute.
attributeValue
- The value of the attribute.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PolicyAttribute clone()
clone
in class java.lang.Object