public class Attribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The attribute key.
|
private java.lang.String |
value
The value assigned to the attribute key.
|
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The attribute key.
|
java.lang.String |
getValue()
The value assigned to the attribute key.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The attribute key.
|
void |
setValue(java.lang.String value)
The value assigned to the attribute key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Attribute |
withKey(java.lang.String key)
The attribute key.
|
Attribute |
withValue(java.lang.String value)
The value assigned to the attribute key.
|
private java.lang.String key
The attribute key.
private java.lang.String value
The value assigned to the attribute key.
public void setKey(java.lang.String key)
The attribute key.
key
- The attribute key.public java.lang.String getKey()
The attribute key.
public Attribute withKey(java.lang.String key)
The attribute key.
key
- The attribute key.public void setValue(java.lang.String value)
The value assigned to the attribute key.
value
- The value assigned to the attribute key.public java.lang.String getValue()
The value assigned to the attribute key.
public Attribute withValue(java.lang.String value)
The value assigned to the attribute key.
value
- The value assigned to the attribute key.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 Attribute clone()
clone
in class java.lang.Object