Interface GetProductsRequest.Builder

  • Method Details

    • 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

      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

      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<Filter>).

      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:
    • 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.
    • overrideConfiguration

      GetProductsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.