Class AssetAttributes

java.lang.Object
com.amazonaws.services.inspector.model.AssetAttributes
All Implemented Interfaces:
Serializable, Cloneable

public class AssetAttributes extends Object implements Serializable, Cloneable

A collection of attributes of the host from which the finding is generated.

See Also:
  • Constructor Details

    • AssetAttributes

      public AssetAttributes()
  • Method Details

    • setSchemaVersion

      public void setSchemaVersion(Integer schemaVersion)

      The schema version of this data type.

      Parameters:
      schemaVersion - The schema version of this data type.
    • getSchemaVersion

      public Integer getSchemaVersion()

      The schema version of this data type.

      Returns:
      The schema version of this data type.
    • withSchemaVersion

      public AssetAttributes withSchemaVersion(Integer schemaVersion)

      The schema version of this data type.

      Parameters:
      schemaVersion - The schema version of this data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAgentId

      public void setAgentId(String agentId)

      The ID of the agent that is installed on the EC2 instance where the finding is generated.

      Parameters:
      agentId - The ID of the agent that is installed on the EC2 instance where the finding is generated.
    • getAgentId

      public String getAgentId()

      The ID of the agent that is installed on the EC2 instance where the finding is generated.

      Returns:
      The ID of the agent that is installed on the EC2 instance where the finding is generated.
    • withAgentId

      public AssetAttributes withAgentId(String agentId)

      The ID of the agent that is installed on the EC2 instance where the finding is generated.

      Parameters:
      agentId - The ID of the agent that is installed on the EC2 instance where the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAutoScalingGroup

      public void setAutoScalingGroup(String autoScalingGroup)

      The Auto Scaling group of the EC2 instance where the finding is generated.

      Parameters:
      autoScalingGroup - The Auto Scaling group of the EC2 instance where the finding is generated.
    • getAutoScalingGroup

      public String getAutoScalingGroup()

      The Auto Scaling group of the EC2 instance where the finding is generated.

      Returns:
      The Auto Scaling group of the EC2 instance where the finding is generated.
    • withAutoScalingGroup

      public AssetAttributes withAutoScalingGroup(String autoScalingGroup)

      The Auto Scaling group of the EC2 instance where the finding is generated.

      Parameters:
      autoScalingGroup - The Auto Scaling group of the EC2 instance where the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAmiId

      public void setAmiId(String amiId)

      The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.

      Parameters:
      amiId - The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
    • getAmiId

      public String getAmiId()

      The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.

      Returns:
      The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
    • withAmiId

      public AssetAttributes withAmiId(String amiId)

      The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.

      Parameters:
      amiId - The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setHostname

      public void setHostname(String hostname)

      The hostname of the EC2 instance where the finding is generated.

      Parameters:
      hostname - The hostname of the EC2 instance where the finding is generated.
    • getHostname

      public String getHostname()

      The hostname of the EC2 instance where the finding is generated.

      Returns:
      The hostname of the EC2 instance where the finding is generated.
    • withHostname

      public AssetAttributes withHostname(String hostname)

      The hostname of the EC2 instance where the finding is generated.

      Parameters:
      hostname - The hostname of the EC2 instance where the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getIpv4Addresses

      public List<String> getIpv4Addresses()

      The list of IP v4 addresses of the EC2 instance where the finding is generated.

      Returns:
      The list of IP v4 addresses of the EC2 instance where the finding is generated.
    • setIpv4Addresses

      public void setIpv4Addresses(Collection<String> ipv4Addresses)

      The list of IP v4 addresses of the EC2 instance where the finding is generated.

      Parameters:
      ipv4Addresses - The list of IP v4 addresses of the EC2 instance where the finding is generated.
    • withIpv4Addresses

      public AssetAttributes withIpv4Addresses(String... ipv4Addresses)

      The list of IP v4 addresses of the EC2 instance where the finding is generated.

      NOTE: This method appends the values to the existing list (if any). Use setIpv4Addresses(java.util.Collection) or withIpv4Addresses(java.util.Collection) if you want to override the existing values.

      Parameters:
      ipv4Addresses - The list of IP v4 addresses of the EC2 instance where the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withIpv4Addresses

      public AssetAttributes withIpv4Addresses(Collection<String> ipv4Addresses)

      The list of IP v4 addresses of the EC2 instance where the finding is generated.

      Parameters:
      ipv4Addresses - The list of IP v4 addresses of the EC2 instance where the finding is generated.
      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 AssetAttributes clone()
      Overrides:
      clone in class Object