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 Attribute
clone()
boolean
equals(Object obj)
String
getKey()
The attribute key.String
getValue()
The value assigned to the attribute key.int
hashCode()
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; useful for testing and debugging.Attribute
withKey(String key)
The attribute key.Attribute
withValue(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-