Interface MetricToRetain.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricToRetain.Builder,MetricToRetain>,SdkBuilder<MetricToRetain.Builder,MetricToRetain>,SdkPojo
- Enclosing class:
- MetricToRetain
public static interface MetricToRetain.Builder extends SdkPojo, CopyableBuilder<MetricToRetain.Builder,MetricToRetain>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetricToRetain.BuilderexportMetric(Boolean exportMetric)Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.MetricToRetain.Buildermetric(String metric)What is measured by the behavior.default MetricToRetain.BuildermetricDimension(Consumer<MetricDimension.Builder> metricDimension)The dimension of a metric.MetricToRetain.BuildermetricDimension(MetricDimension metricDimension)The dimension of a 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, sdkFields
-
-
-
-
Method Detail
-
metric
MetricToRetain.Builder metric(String metric)
What is measured by the behavior.
- Parameters:
metric- What is measured by the behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDimension
MetricToRetain.Builder metricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
- Parameters:
metricDimension- The dimension of a metric. This can't be used with custom metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDimension
default MetricToRetain.Builder metricDimension(Consumer<MetricDimension.Builder> metricDimension)
The dimension of a metric. This can't be used with custom metrics.
This is a convenience method that creates an instance of theMetricDimension.Builderavoiding the need to create one manually viaMetricDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricDimension(MetricDimension).- Parameters:
metricDimension- a consumer that will call methods onMetricDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metricDimension(MetricDimension)
-
exportMetric
MetricToRetain.Builder exportMetric(Boolean exportMetric)
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
- Parameters:
exportMetric- Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-