Class Attribute
- java.lang.Object
-
- com.amazonaws.services.inspector.model.Attribute
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Attribute extends Object implements Serializable, Cloneable
This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Attribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributeclone()booleanequals(Object obj)StringgetKey()The attribute key.StringgetValue()The value assigned to the attribute key.inthashCode()voidsetKey(String key)The attribute key.voidsetValue(String value)The value assigned to the attribute key.StringtoString()Returns a string representation of this object; useful for testing and debugging.AttributewithKey(String key)The attribute key.AttributewithValue(String value)The value assigned to the attribute key.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The attribute key.
- Parameters:
key- The attribute key.
-
getKey
public String getKey()
The attribute key.
- Returns:
- The attribute key.
-
withKey
public Attribute withKey(String key)
The attribute key.
- Parameters:
key- The attribute key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value assigned to the attribute key.
- Parameters:
value- The value assigned to the attribute key.
-
getValue
public String getValue()
The value assigned to the attribute key.
- Returns:
- The value assigned to the attribute key.
-
withValue
public Attribute withValue(String value)
The value assigned to the attribute key.
- Parameters:
value- The value assigned to the attribute key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-