Interface ListObservationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<ListObservationsRequest.Builder,,ListObservationsRequest> SdkBuilder<ListObservationsRequest.Builder,,ListObservationsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListObservationsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListObservationsRequest.Builderfilters(Consumer<ObservationFilters.Builder> filters) Criteria restricting which observations are returned.filters(ObservationFilters filters) Criteria restricting which observations are returned.maxResults(Integer maxResults) The maximum number of observations to return in a single page.Pagination token from a previous response, to retrieve the next page.observationIds(String... observationIds) Optional batch-get filter.observationIds(Collection<String> observationIds) Optional batch-get filter.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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 theObservationFilters.Builderavoiding the need to create one manually viaObservationFilters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(ObservationFilters).- Parameters:
filters- a consumer that will call methods onObservationFilters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListObservationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-