Interface SearchOpportunitiesRequest.Builder

  • Method Details

    • catalog

      Specifies the catalog in which you run the search. Use AWS to search production opportunities, or use Sandbox to search opportunities in a testing environment.

      Parameters:
      catalog - Specifies the catalog in which you run the search. Use AWS to search production opportunities, or use Sandbox to search opportunities in a testing environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      The maximum number of results to return in a single call. Use this value to control pagination together with NextToken. If you omit this parameter, the service applies a default page size and returns the remaining results on subsequent pages.

      Parameters:
      maxResults - The maximum number of results to return in a single call. Use this value to control pagination together with NextToken. If you omit this parameter, the service applies a default page size and returns the remaining results on subsequent pages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      A pagination token returned by a previous call. Pass it in a subsequent call to retrieve the next page of results. Omit it on the first call.

      Parameters:
      nextToken - A pagination token returned by a previous call. Pass it in a subsequent call to retrieve the next page of results. Omit it on the first call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyword

      An optional free-text query string matched against opportunity fields. When provided together with Filter, both narrow the result set.

      Parameters:
      keyword - An optional free-text query string matched against opportunity fields. When provided together with Filter, both narrow the result set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filter

      A recursive, structured filter tree. Each node is either a boolean combinator (AndAllFilters, OrAllFilters, or NotFilter) or a leaf predicate (a single comparison such as EqualsTo). When provided together with Keyword, both narrow the result set.

      Parameters:
      filter - A recursive, structured filter tree. Each node is either a boolean combinator ( AndAllFilters, OrAllFilters, or NotFilter) or a leaf predicate (a single comparison such as EqualsTo). When provided together with Keyword, both narrow the result set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filter

      A recursive, structured filter tree. Each node is either a boolean combinator (AndAllFilters, OrAllFilters, or NotFilter) or a leaf predicate (a single comparison such as EqualsTo). When provided together with Keyword, both narrow the result set.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filter(OpportunitySearchFilter).

      Parameters:
      filter - a consumer that will call methods on OpportunitySearchFilter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sort

      Specifies the field and direction used to sort the search results.

      Parameters:
      sort - Specifies the field and direction used to sort the search results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sort

      Specifies the field and direction used to sort the search results.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sort(OpportunitySearchSort).

      Parameters:
      sort - a consumer that will call methods on OpportunitySearchSort.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      SearchOpportunitiesRequest.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.