Interface DescribeAlarmsForMetricRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<DescribeAlarmsForMetricRequest.Builder,
,DescribeAlarmsForMetricRequest> SdkBuilder<DescribeAlarmsForMetricRequest.Builder,
,DescribeAlarmsForMetricRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
DescribeAlarmsForMetricRequest
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Collection<Dimension> dimensions) The dimensions associated with the metric.dimensions
(Consumer<Dimension.Builder>... dimensions) The dimensions associated with the metric.dimensions
(Dimension... dimensions) The dimensions associated with the metric.extendedStatistic
(String extendedStatistic) The percentile statistic for the metric.metricName
(String metricName) The name of the metric.The namespace of the metric.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The period, in seconds, over which the statistic is applied.The statistic for the metric, other than percentiles.The statistic for the metric, other than percentiles.The unit for the metric.unit
(StandardUnit unit) The unit for the metric.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
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 Details
-
metricName
The name of the metric.
- Parameters:
metricName
- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace of the metric.
- Parameters:
namespace
- The namespace of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistic
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.- Parameters:
statistic
- The statistic for the metric, other than percentiles. For percentile statistics, useExtendedStatistics
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.- Parameters:
statistic
- The statistic for the metric, other than percentiles. For percentile statistics, useExtendedStatistics
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
extendedStatistic
The percentile statistic for the metric. Specify a value between p0.0 and p100.
- Parameters:
extendedStatistic
- The percentile statistic for the metric. Specify a value between p0.0 and p100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
- Parameters:
dimensions
- The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
- Parameters:
dimensions
- The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
This is a convenience method that creates an instance of theDimension.Builder
avoiding the need to create one manually viaDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<Dimension>)
.- Parameters:
dimensions
- a consumer that will call methods onDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
period
The period, in seconds, over which the statistic is applied.
- Parameters:
period
- The period, in seconds, over which the statistic is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
DescribeAlarmsForMetricRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DescribeAlarmsForMetricRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-