Interface ContactMetricResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContactMetricResult.Builder,,ContactMetricResult> SdkBuilder<ContactMetricResult.Builder,,ContactMetricResult> SdkPojo
- Enclosing class:
ContactMetricResult
@Mutable
@NotThreadSafe
public static interface ContactMetricResult.Builder
extends SdkPojo, CopyableBuilder<ContactMetricResult.Builder,ContactMetricResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the metric being retrieved in type String.name(ContactMetricName name) The name of the metric being retrieved in type String.default ContactMetricResult.Buildervalue(Consumer<ContactMetricValue.Builder> value) Object result associated with the metric received.value(ContactMetricValue value) Object result associated with the metric received.Methods 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, sdkFields
-
Method Details
-
name
The name of the metric being retrieved in type String.
- Parameters:
name- The name of the metric being retrieved in type String.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the metric being retrieved in type String.
- Parameters:
name- The name of the metric being retrieved in type String.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
Object result associated with the metric received.
- Parameters:
value- Object result associated with the metric received.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
Object result associated with the metric received.
This is a convenience method that creates an instance of theContactMetricValue.Builderavoiding the need to create one manually viaContactMetricValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(ContactMetricValue).- Parameters:
value- a consumer that will call methods onContactMetricValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-