Interface CreateMetricRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<CreateMetricRequest.Builder,,CreateMetricRequest> SdkBuilder<CreateMetricRequest.Builder,,CreateMetricRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateMetricRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description(String description) The description of the metric.instanceId(String instanceId) The identifier of the Connect Customer instance.default CreateMetricRequest.BuildermetricCalculation(Consumer<MetricCalculation.Builder> metricCalculation) The calculation definition for the metric, including the formula expression and the component metrics it references.metricCalculation(MetricCalculation metricCalculation) The calculation definition for the metric, including the formula expression and the component metrics it references.The name of the metric.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.positiveTrendIndicator(String positiveTrendIndicator) How an increase in the metric value should be interpreted.positiveTrendIndicator(TrendIndicator positiveTrendIndicator) How an increase in the metric value should be interpreted.The publish status of the metric.status(MetricStatus status) The publish status of the metric.The tags used to organize, track, or control access for this resource.The display unit for the metric's data.unit(MetricUnit unit) The display unit for the metric's data.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
buildMethods 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
-
instanceId
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the metric.
- Parameters:
name- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricCalculation
The calculation definition for the metric, including the formula expression and the component metrics it references.
- Parameters:
metricCalculation- The calculation definition for the metric, including the formula expression and the component metrics it references.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricCalculation
default CreateMetricRequest.Builder metricCalculation(Consumer<MetricCalculation.Builder> metricCalculation) The calculation definition for the metric, including the formula expression and the component metrics it references.
This is a convenience method that creates an instance of theMetricCalculation.Builderavoiding the need to create one manually viaMetricCalculation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricCalculation(MetricCalculation).- Parameters:
metricCalculation- a consumer that will call methods onMetricCalculation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The display unit for the metric's data.
- Parameters:
unit- The display unit for the metric's data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The display unit for the metric's data.
- Parameters:
unit- The display unit for the metric's data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The publish status of the metric. Set to
PUBLISHEDto make the metric available for use in dashboards and reports, orSAVEDto keep it in draft state.- Parameters:
status- The publish status of the metric. Set toPUBLISHEDto make the metric available for use in dashboards and reports, orSAVEDto keep it in draft state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The publish status of the metric. Set to
PUBLISHEDto make the metric available for use in dashboards and reports, orSAVEDto keep it in draft state.- Parameters:
status- The publish status of the metric. Set toPUBLISHEDto make the metric available for use in dashboards and reports, orSAVEDto keep it in draft state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the metric.
- Parameters:
description- The description of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
positiveTrendIndicator
How an increase in the metric value should be interpreted. Valid values:
POSITIVE,NEUTRAL,NEGATIVE.- Parameters:
positiveTrendIndicator- How an increase in the metric value should be interpreted. Valid values:POSITIVE,NEUTRAL,NEGATIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
positiveTrendIndicator
How an increase in the metric value should be interpreted. Valid values:
POSITIVE,NEUTRAL,NEGATIVE.- Parameters:
positiveTrendIndicator- How an increase in the metric value should be interpreted. Valid values:POSITIVE,NEUTRAL,NEGATIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags- The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateMetricRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateMetricRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-