Interface ListObservationsRequest.Builder

  • Method Details

    • filters

      Criteria restricting which observations are returned.

      Parameters:
      filters - Criteria restricting which observations are returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      Criteria restricting which observations are returned.

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

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

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

      ListObservationsRequest.Builder maxResults(Integer maxResults)

      The maximum number of observations to return in a single page. Valid range is 1 to 100. When omitted, the service defaults to 50.

      Parameters:
      maxResults - The maximum number of observations to return in a single page. Valid range is 1 to 100. When omitted, the service defaults to 50.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      Pagination token from a previous response, to retrieve the next page.

      Parameters:
      nextToken - Pagination token from a previous response, to retrieve the next page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • observationIds

      ListObservationsRequest.Builder observationIds(Collection<String> observationIds)

      Optional batch-get filter. When set, observations are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned observations per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them.

      observationIds is mutually exclusive with filters: passing filters alongside observationIds returns a ValidationException. Use a follow-up ListObservations call without observationIds for filtered queries.

      Parameters:
      observationIds - Optional batch-get filter. When set, observations are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned observations per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them.

      observationIds is mutually exclusive with filters: passing filters alongside observationIds returns a ValidationException. Use a follow-up ListObservations call without observationIds for filtered queries.

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

      ListObservationsRequest.Builder observationIds(String... observationIds)

      Optional batch-get filter. When set, observations are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned observations per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them.

      observationIds is mutually exclusive with filters: passing filters alongside observationIds returns a ValidationException. Use a follow-up ListObservations call without observationIds for filtered queries.

      Parameters:
      observationIds - Optional batch-get filter. When set, observations are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned observations per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them.

      observationIds is mutually exclusive with filters: passing filters alongside observationIds returns a ValidationException. Use a follow-up ListObservations call without observationIds for filtered queries.

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

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