Interface Ec2InstanceAggregation.Builder

    • Method Detail

      • amis

        Ec2InstanceAggregation.Builder amis​(Collection<StringFilter> amis)

        The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.

        Parameters:
        amis - The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • amis

        Ec2InstanceAggregation.Builder amis​(StringFilter... amis)

        The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.

        Parameters:
        amis - The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceIds

        Ec2InstanceAggregation.Builder instanceIds​(Collection<StringFilter> instanceIds)

        The Amazon EC2 instance IDs to aggregate findings for.

        Parameters:
        instanceIds - The Amazon EC2 instance IDs to aggregate findings for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceIds

        Ec2InstanceAggregation.Builder instanceIds​(StringFilter... instanceIds)

        The Amazon EC2 instance IDs to aggregate findings for.

        Parameters:
        instanceIds - The Amazon EC2 instance IDs to aggregate findings for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceTags

        Ec2InstanceAggregation.Builder instanceTags​(Collection<MapFilter> instanceTags)

        The Amazon EC2 instance tags to aggregate findings for.

        Parameters:
        instanceTags - The Amazon EC2 instance tags to aggregate findings for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceTags

        Ec2InstanceAggregation.Builder instanceTags​(MapFilter... instanceTags)

        The Amazon EC2 instance tags to aggregate findings for.

        Parameters:
        instanceTags - The Amazon EC2 instance tags to aggregate findings for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • operatingSystems

        Ec2InstanceAggregation.Builder operatingSystems​(Collection<StringFilter> operatingSystems)

        The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.

        Parameters:
        operatingSystems - The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • operatingSystems

        Ec2InstanceAggregation.Builder operatingSystems​(StringFilter... operatingSystems)

        The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.

        Parameters:
        operatingSystems - The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • operatingSystems

        Ec2InstanceAggregation.Builder operatingSystems​(Consumer<StringFilter.Builder>... operatingSystems)

        The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.

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

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

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

        Ec2InstanceAggregation.Builder sortOrder​(String sortOrder)

        The order to sort results by.

        Parameters:
        sortOrder - The order to sort results by.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SortOrder, SortOrder