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 that was retrieved.name(ContactMetricName name) The name of the metric that was retrieved.default ContactMetricResult.Buildervalue(Consumer<ContactMetricValue.Builder> value) The calculated value for the requested metric.value(ContactMetricValue value) The calculated value for the requested metric.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 that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.
- Parameters:
name- The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.
- Parameters:
name- The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.
- Parameters:
value- The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.
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:
-