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:
  • Constructor Details

    • Attribute

      public Attribute()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Attribute clone()
      Overrides:
      clone in class Object