Interface GetProductsRequest.Builder

    • Method Detail

      • serviceCode

        GetProductsRequest.Builder serviceCode​(String serviceCode)

        The code for the service whose products you want to retrieve.

        Parameters:
        serviceCode - The code for the service whose products you want to retrieve.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

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

        The list of filters that limit the returned products. only products that match all filters are returned.

        Parameters:
        filters - The list of filters that limit the returned products. only products that match all filters are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        GetProductsRequest.Builder filters​(Filter... filters)

        The list of filters that limit the returned products. only products that match all filters are returned.

        Parameters:
        filters - The list of filters that limit the returned products. only products that match all filters are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

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

        The list of filters that limit the returned products. only products that match all filters are returned.

        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)
      • formatVersion

        GetProductsRequest.Builder formatVersion​(String formatVersion)

        The format version that you want the response to be in.

        Valid values are: aws_v1

        Parameters:
        formatVersion - The format version that you want the response to be in.

        Valid values are: aws_v1

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

        GetProductsRequest.Builder nextToken​(String nextToken)

        The pagination token that indicates the next set of results that you want to retrieve.

        Parameters:
        nextToken - The pagination token that indicates the next set of results that you want to retrieve.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxResults

        GetProductsRequest.Builder maxResults​(Integer maxResults)

        The maximum number of results to return in the response.

        Parameters:
        maxResults - The maximum number of results to return in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.