Interface DescribeMacHostsRequest.Builder

    • Method Detail

      • filters

        DescribeMacHostsRequest.Builder filters​(Collection<Filter> filters)

        The filters.

        • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

        • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

        Parameters:
        filters - The filters.

        • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

        • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeMacHostsRequest.Builder filters​(Filter... filters)

        The filters.

        • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

        • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

        Parameters:
        filters - The filters.

        • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

        • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeMacHostsRequest.Builder filters​(Consumer<Filter.Builder>... filters)

        The filters.

        • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

        • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

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

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

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

        DescribeMacHostsRequest.Builder hostIds​(Collection<String> hostIds)

        The IDs of the EC2 Mac Dedicated Hosts.

        Parameters:
        hostIds - The IDs of the EC2 Mac Dedicated Hosts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hostIds

        DescribeMacHostsRequest.Builder hostIds​(String... hostIds)

        The IDs of the EC2 Mac Dedicated Hosts.

        Parameters:
        hostIds - The IDs of the EC2 Mac Dedicated Hosts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxResults

        DescribeMacHostsRequest.Builder maxResults​(Integer maxResults)

        The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.

        Parameters:
        maxResults - The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        DescribeMacHostsRequest.Builder nextToken​(String nextToken)

        The token to use to retrieve the next page of results.

        Parameters:
        nextToken - The token to use to retrieve the next page of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.