Interface DescribeAlarmsForMetricResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchResponse.Builder
,CopyableBuilder<DescribeAlarmsForMetricResponse.Builder,
,DescribeAlarmsForMetricResponse> SdkBuilder<DescribeAlarmsForMetricResponse.Builder,
,DescribeAlarmsForMetricResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeAlarmsForMetricResponse
public static interface DescribeAlarmsForMetricResponse.Builder
extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<DescribeAlarmsForMetricResponse.Builder,DescribeAlarmsForMetricResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmetricAlarms
(Collection<MetricAlarm> metricAlarms) The information for each alarm with the specified metric.metricAlarms
(Consumer<MetricAlarm.Builder>... metricAlarms) The information for each alarm with the specified metric.metricAlarms
(MetricAlarm... metricAlarms) The information for each alarm with the specified metric.Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
metricAlarms
The information for each alarm with the specified metric.
- Parameters:
metricAlarms
- The information for each alarm with the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricAlarms
The information for each alarm with the specified metric.
- Parameters:
metricAlarms
- The information for each alarm with the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricAlarms
The information for each alarm with the specified metric.
This is a convenience method that creates an instance of theMetricAlarm.Builder
avoiding the need to create one manually viaMetricAlarm.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricAlarms(List<MetricAlarm>)
.- Parameters:
metricAlarms
- a consumer that will call methods onMetricAlarm.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-