Interface DescribeAlarmsForMetricResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchResponse.Builder,CopyableBuilder<DescribeAlarmsForMetricResponse.Builder,,DescribeAlarmsForMetricResponse> SdkBuilder<DescribeAlarmsForMetricResponse.Builder,,DescribeAlarmsForMetricResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeAlarmsForMetricResponse
@Mutable
@NotThreadSafe
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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaMetricAlarm.builder().When the
Consumercompletes,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:
-