Interface AssetAttributes.Builder

    • Method Detail

      • schemaVersion

        AssetAttributes.Builder schemaVersion​(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.
      • agentId

        AssetAttributes.Builder agentId​(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.
      • autoScalingGroup

        AssetAttributes.Builder autoScalingGroup​(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.
      • amiId

        AssetAttributes.Builder amiId​(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.
      • hostname

        AssetAttributes.Builder hostname​(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.
      • ipv4Addresses

        AssetAttributes.Builder ipv4Addresses​(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.
      • ipv4Addresses

        AssetAttributes.Builder ipv4Addresses​(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.
      • tags

        AssetAttributes.Builder tags​(Collection<Tag> tags)

        The tags related to the EC2 instance where the finding is generated.

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

        AssetAttributes.Builder tags​(Tag... tags)

        The tags related to the EC2 instance where the finding is generated.

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

        AssetAttributes.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags related to the EC2 instance where the finding is generated.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)
      • networkInterfaces

        AssetAttributes.Builder networkInterfaces​(Collection<NetworkInterface> networkInterfaces)

        An array of the network interfaces interacting with the EC2 instance where the finding is generated.

        Parameters:
        networkInterfaces - An array of the network interfaces interacting with the EC2 instance where the finding is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        AssetAttributes.Builder networkInterfaces​(NetworkInterface... networkInterfaces)

        An array of the network interfaces interacting with the EC2 instance where the finding is generated.

        Parameters:
        networkInterfaces - An array of the network interfaces interacting with the EC2 instance where the finding is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.