Interface InvokeWebSearchRequest.Builder

  • Method Details

    • webSearchId

      InvokeWebSearchRequest.Builder webSearchId(String webSearchId)

      The identifier of the web search tool to invoke. The Amazon Web Services-managed web search tool is web-search.v1.

      Parameters:
      webSearchId - The identifier of the web search tool to invoke. The Amazon Web Services-managed web search tool is web-search.v1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • searchQuery

      InvokeWebSearchRequest.Builder searchQuery(String searchQuery)

      The text to search for.

      Parameters:
      searchQuery - The text to search for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      InvokeWebSearchRequest.Builder maxResults(Integer maxResults)

      The maximum number of results to return. Defaults to 25.

      Parameters:
      maxResults - The maximum number of results to return. Defaults to 25.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      The filters to apply to the search results.

      Parameters:
      filters - The filters to apply to the search results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      The filters to apply to the search results.

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

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

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

      userLocation may allow for Web Search results to be refined for that location. This is done by supplying a country. The field is optional.

      The value is checked against assigned ISO 3166-1 alpha-2 codes, so unassigned and user-assigned codes such as UK and XK, empty or whitespace-only values are rejected. An omitted value is treated as absent. Without location, as a fallback Web Search may use your query to localize results or default to en_US.

      Parameters:
      userLocation - userLocation may allow for Web Search results to be refined for that location. This is done by supplying a country. The field is optional.

      The value is checked against assigned ISO 3166-1 alpha-2 codes, so unassigned and user-assigned codes such as UK and XK, empty or whitespace-only values are rejected. An omitted value is treated as absent. Without location, as a fallback Web Search may use your query to localize results or default to en_US.

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

      userLocation may allow for Web Search results to be refined for that location. This is done by supplying a country. The field is optional.

      The value is checked against assigned ISO 3166-1 alpha-2 codes, so unassigned and user-assigned codes such as UK and XK, empty or whitespace-only values are rejected. An omitted value is treated as absent. Without location, as a fallback Web Search may use your query to localize results or default to en_US.

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

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

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

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