Interface DescribeAlarmsForMetricRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<DescribeAlarmsForMetricRequest.Builder,DescribeAlarmsForMetricRequest>
,SdkBuilder<DescribeAlarmsForMetricRequest.Builder,DescribeAlarmsForMetricRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- DescribeAlarmsForMetricRequest
public static interface DescribeAlarmsForMetricRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<DescribeAlarmsForMetricRequest.Builder,DescribeAlarmsForMetricRequest>
-
-
Method Summary
-
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 Detail
-
metricName
DescribeAlarmsForMetricRequest.Builder metricName(String 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
DescribeAlarmsForMetricRequest.Builder namespace(String 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
DescribeAlarmsForMetricRequest.Builder statistic(String statistic)
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
-
statistic
DescribeAlarmsForMetricRequest.Builder statistic(Statistic statistic)
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
-
extendedStatistic
DescribeAlarmsForMetricRequest.Builder extendedStatistic(String 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
DescribeAlarmsForMetricRequest.Builder dimensions(Collection<Dimension> 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
DescribeAlarmsForMetricRequest.Builder dimensions(Dimension... 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
DescribeAlarmsForMetricRequest.Builder dimensions(Consumer<Dimension.Builder>... 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 to#dimensions(List
.) - 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:
#dimensions(java.util.Collection
)
-
period
DescribeAlarmsForMetricRequest.Builder period(Integer 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
DescribeAlarmsForMetricRequest.Builder unit(String 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:
StandardUnit
,StandardUnit
-
unit
DescribeAlarmsForMetricRequest.Builder unit(StandardUnit 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:
StandardUnit
,StandardUnit
-
overrideConfiguration
DescribeAlarmsForMetricRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
DescribeAlarmsForMetricRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-