Interface ListMetricsResponse.Builder
- All Superinterfaces:
AppMonetizationResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<ListMetricsResponse.Builder,,ListMetricsResponse> SdkBuilder<ListMetricsResponse.Builder,,ListMetricsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListMetricsResponse
@Mutable
@NotThreadSafe
public static interface ListMetricsResponse.Builder
extends AppMonetizationResponse.Builder, SdkPojo, CopyableBuilder<ListMetricsResponse.Builder,ListMetricsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmetrics(Collection<Metric> metrics) A list of metrics.metrics(Consumer<Metric.Builder>... metrics) A list of metrics.A list of metrics.An opaque pagination token.Methods inherited from interface software.amazon.awssdk.services.appmonetization.model.AppMonetizationResponse.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
-
metrics
A list of metrics.
- Parameters:
metrics- A list of metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A list of metrics.
- Parameters:
metrics- A list of metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A list of metrics.
This is a convenience method that creates an instance of theMetric.Builderavoiding the need to create one manually viaMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(List<Metric>).- Parameters:
metrics- a consumer that will call methods onMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
- Parameters:
nextToken- An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-