Interface ListMetricStreamsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchResponse.Builder,CopyableBuilder<ListMetricStreamsResponse.Builder,,ListMetricStreamsResponse> SdkBuilder<ListMetricStreamsResponse.Builder,,ListMetricStreamsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListMetricStreamsResponse
@Mutable
@NotThreadSafe
public static interface ListMetricStreamsResponse.Builder
extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<ListMetricStreamsResponse.Builder,ListMetricStreamsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionentries(Collection<MetricStreamEntry> entries) The array of metric stream information.entries(Consumer<MetricStreamEntry.Builder>... entries) The array of metric stream information.entries(MetricStreamEntry... entries) The array of metric stream information.The token that marks the start of the next batch of returned results.Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.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
-
nextToken
The token that marks the start of the next batch of returned results. You can use this token in a subsequent operation to get the next batch of results.
- Parameters:
nextToken- The token that marks the start of the next batch of returned results. You can use this token in a subsequent operation to get the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The array of metric stream information.
- Parameters:
entries- The array of metric stream information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The array of metric stream information.
- Parameters:
entries- The array of metric stream information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The array of metric stream information.
This is a convenience method that creates an instance of theMetricStreamEntry.Builderavoiding the need to create one manually viaMetricStreamEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentries(List<MetricStreamEntry>).- Parameters:
entries- a consumer that will call methods onMetricStreamEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-