@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Attribute extends Object implements Serializable, Cloneable, StructuredPojo
This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The attribute key.
|
String |
getValue()
The value assigned to the attribute key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The attribute key.
|
void |
setValue(String value)
The value assigned to the attribute key.
|
String |
toString()
Returns a string representation of this object.
|
Attribute |
withKey(String key)
The attribute key.
|
Attribute |
withValue(String value)
The value assigned to the attribute key.
|
public void setKey(String key)
The attribute key.
key
- The attribute key.public String getKey()
The attribute key.
public Attribute withKey(String key)
The attribute key.
key
- The attribute key.public void setValue(String value)
The value assigned to the attribute key.
value
- The value assigned to the attribute key.public String getValue()
The value assigned to the attribute key.
public Attribute withValue(String value)
The value assigned to the attribute key.
value
- The value assigned to the attribute key.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.