Interface CreateMetricResponse.Builder
- All Superinterfaces:
AppMonetizationResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<CreateMetricResponse.Builder,,CreateMetricResponse> SdkBuilder<CreateMetricResponse.Builder,,CreateMetricResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateMetricResponse
@Mutable
@NotThreadSafe
public static interface CreateMetricResponse.Builder
extends AppMonetizationResponse.Builder, SdkPojo, CopyableBuilder<CreateMetricResponse.Builder,CreateMetricResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateMetricResponse.Buildermetric(Consumer<Metric.Builder> metric) The newly created metric, in the app's draft.The newly created metric, in the app's draft.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
-
metric
The newly created metric, in the app's draft. It goes live on the next app-level PublishDraft.
- Parameters:
metric- The newly created metric, in the app's draft. It goes live on the next app-level PublishDraft.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
The newly created metric, in the app's draft. It goes live on the next app-level PublishDraft.
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 tometric(Metric).- Parameters:
metric- 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:
-