Interface GetMetricUsageResponse.Builder
- All Superinterfaces:
AppMonetizationResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetMetricUsageResponse.Builder,,GetMetricUsageResponse> SdkBuilder<GetMetricUsageResponse.Builder,,GetMetricUsageResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetMetricUsageResponse
@Mutable
@NotThreadSafe
public static interface GetMetricUsageResponse.Builder
extends AppMonetizationResponse.Builder, SdkPojo, CopyableBuilder<GetMetricUsageResponse.Builder,GetMetricUsageResponse>
-
Method Summary
Modifier and TypeMethodDescriptionOpaque continuation token.usage(Collection<MetricUsage> usage) One entry per metric in this page, carrying its usage over the window.usage(Consumer<MetricUsage.Builder>... usage) One entry per metric in this page, carrying its usage over the window.usage(MetricUsage... usage) One entry per metric in this page, carrying its usage over the window.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
-
usage
One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.
- Parameters:
usage- One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.
- Parameters:
usage- One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.
This is a convenience method that creates an instance of theMetricUsage.Builderavoiding the need to create one manually viaMetricUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousage(List<MetricUsage>).- Parameters:
usage- a consumer that will call methods onMetricUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Opaque continuation token. Present when more metrics remain; pass it back (with the same window) to read the next page. Absent on the last page.
- Parameters:
nextToken- Opaque continuation token. Present when more metrics remain; pass it back (with the same window) to read the next page. Absent on the last page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-