Interface CloudWatchMetricsDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CloudWatchMetricsDetail.Builder,CloudWatchMetricsDetail>,SdkBuilder<CloudWatchMetricsDetail.Builder,CloudWatchMetricsDetail>,SdkPojo
- Enclosing class:
- CloudWatchMetricsDetail
public static interface CloudWatchMetricsDetail.Builder extends SdkPojo, CopyableBuilder<CloudWatchMetricsDetail.Builder,CloudWatchMetricsDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CloudWatchMetricsDetail.Builderdimensions(Collection<CloudWatchMetricsDimension> dimensions)An array of CloudWatch dimensions associated withCloudWatchMetricsDetail.Builderdimensions(Consumer<CloudWatchMetricsDimension.Builder>... dimensions)An array of CloudWatch dimensions associated withCloudWatchMetricsDetail.Builderdimensions(CloudWatchMetricsDimension... dimensions)An array of CloudWatch dimensions associated withdefault CloudWatchMetricsDetail.BuildermetricDataSummary(Consumer<CloudWatchMetricsDataSummary.Builder> metricDataSummary)This object returns anomaly metric data.CloudWatchMetricsDetail.BuildermetricDataSummary(CloudWatchMetricsDataSummary metricDataSummary)This object returns anomaly metric data.CloudWatchMetricsDetail.BuildermetricName(String metricName)The name of the CloudWatch metric.CloudWatchMetricsDetail.Buildernamespace(String namespace)The namespace of the CloudWatch metric.CloudWatchMetricsDetail.Builderperiod(Integer period)The length of time associated with the CloudWatch metric in number of seconds.CloudWatchMetricsDetail.Builderstat(String stat)The type of statistic associated with the CloudWatch metric.CloudWatchMetricsDetail.Builderstat(CloudWatchMetricsStat stat)The type of statistic associated with the CloudWatch metric.CloudWatchMetricsDetail.Builderunit(String unit)The unit of measure used for the CloudWatch 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
-
metricName
CloudWatchMetricsDetail.Builder metricName(String metricName)
The name of the CloudWatch metric.
- Parameters:
metricName- The name of the CloudWatch metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
CloudWatchMetricsDetail.Builder namespace(String namespace)
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
- Parameters:
namespace- The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
CloudWatchMetricsDetail.Builder dimensions(Collection<CloudWatchMetricsDimension> dimensions)
An array of CloudWatch dimensions associated with
- Parameters:
dimensions- An array of CloudWatch dimensions associated with- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
CloudWatchMetricsDetail.Builder dimensions(CloudWatchMetricsDimension... dimensions)
An array of CloudWatch dimensions associated with
- Parameters:
dimensions- An array of CloudWatch dimensions associated with- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
CloudWatchMetricsDetail.Builder dimensions(Consumer<CloudWatchMetricsDimension.Builder>... dimensions)
An array of CloudWatch dimensions associated with
This is a convenience method that creates an instance of theCloudWatchMetricsDimension.Builderavoiding the need to create one manually viaCloudWatchMetricsDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensions(List.) - Parameters:
dimensions- a consumer that will call methods onCloudWatchMetricsDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection)
-
stat
CloudWatchMetricsDetail.Builder stat(String stat)
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
- Parameters:
stat- The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CloudWatchMetricsStat,CloudWatchMetricsStat
-
stat
CloudWatchMetricsDetail.Builder stat(CloudWatchMetricsStat stat)
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
- Parameters:
stat- The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CloudWatchMetricsStat,CloudWatchMetricsStat
-
unit
CloudWatchMetricsDetail.Builder unit(String unit)
The unit of measure used for the CloudWatch metric. For example,
Bytes,Seconds,Count, andPercent.- Parameters:
unit- The unit of measure used for the CloudWatch metric. For example,Bytes,Seconds,Count, andPercent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
CloudWatchMetricsDetail.Builder period(Integer period)
The length of time associated with the CloudWatch metric in number of seconds.
- Parameters:
period- The length of time associated with the CloudWatch metric in number of seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataSummary
CloudWatchMetricsDetail.Builder metricDataSummary(CloudWatchMetricsDataSummary metricDataSummary)
This object returns anomaly metric data.
- Parameters:
metricDataSummary- This object returns anomaly metric data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataSummary
default CloudWatchMetricsDetail.Builder metricDataSummary(Consumer<CloudWatchMetricsDataSummary.Builder> metricDataSummary)
This object returns anomaly metric data.
This is a convenience method that creates an instance of theCloudWatchMetricsDataSummary.Builderavoiding the need to create one manually viaCloudWatchMetricsDataSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricDataSummary(CloudWatchMetricsDataSummary).- Parameters:
metricDataSummary- a consumer that will call methods onCloudWatchMetricsDataSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metricDataSummary(CloudWatchMetricsDataSummary)
-
-