Interface MetricGoal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricGoal.Builder,
,MetricGoal> SdkBuilder<MetricGoal.Builder,
,MetricGoal> SdkPojo
- Enclosing class:
MetricGoal
-
Method Summary
Modifier and TypeMethodDescriptiondesiredChange
(String desiredChange) INCREASE
means that a variation with a higher number for this metric is performing better.desiredChange
(ChangeDirectionEnum desiredChange) INCREASE
means that a variation with a higher number for this metric is performing better.default MetricGoal.Builder
metricDefinition
(Consumer<MetricDefinition.Builder> metricDefinition) A structure that contains details about the metric.metricDefinition
(MetricDefinition metricDefinition) A structure that contains details about the metric.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
desiredChange
INCREASE
means that a variation with a higher number for this metric is performing better.DECREASE
means that a variation with a lower number for this metric is performing better.- Parameters:
desiredChange
-INCREASE
means that a variation with a higher number for this metric is performing better.DECREASE
means that a variation with a lower number for this metric is performing better.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
desiredChange
INCREASE
means that a variation with a higher number for this metric is performing better.DECREASE
means that a variation with a lower number for this metric is performing better.- Parameters:
desiredChange
-INCREASE
means that a variation with a higher number for this metric is performing better.DECREASE
means that a variation with a lower number for this metric is performing better.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricDefinition
A structure that contains details about the metric.
- Parameters:
metricDefinition
- A structure that contains details about the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDefinition
A structure that contains details about the metric.
This is a convenience method that creates an instance of theMetricDefinition.Builder
avoiding the need to create one manually viaMetricDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricDefinition(MetricDefinition)
.- Parameters:
metricDefinition
- a consumer that will call methods onMetricDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-