Interface ListObservationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchOmniResponse.Builder,CopyableBuilder<ListObservationsResponse.Builder,,ListObservationsResponse> SdkBuilder<ListObservationsResponse.Builder,,ListObservationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListObservationsResponse
@Mutable
@NotThreadSafe
public static interface ListObservationsResponse.Builder
extends CloudWatchOmniResponse.Builder, SdkPojo, CopyableBuilder<ListObservationsResponse.Builder,ListObservationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionitems(Collection<Observation> items) The observations matching the request, most recently updated first.items(Consumer<Observation.Builder>... items) The observations matching the request, most recently updated first.items(Observation... items) The observations matching the request, most recently updated first.Pagination token for the next page; absent when there are no more results.Methods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
items
The observations matching the request, most recently updated first.
- Parameters:
items- The observations matching the request, most recently updated first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The observations matching the request, most recently updated first.
- Parameters:
items- The observations matching the request, most recently updated first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The observations matching the request, most recently updated first.
This is a convenience method that creates an instance of theObservation.Builderavoiding the need to create one manually viaObservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<Observation>).- Parameters:
items- a consumer that will call methods onObservation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Pagination token for the next page; absent when there are no more results.
- Parameters:
nextToken- Pagination token for the next page; absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-