Interface CloudWatchMetricsDetail.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CloudWatchMetricsDetail.Builder,
,CloudWatchMetricsDetail> SdkBuilder<CloudWatchMetricsDetail.Builder,
,CloudWatchMetricsDetail> SdkPojo
- Enclosing class:
CloudWatchMetricsDetail
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Collection<CloudWatchMetricsDimension> dimensions) An array of CloudWatch dimensions associated withdimensions
(Consumer<CloudWatchMetricsDimension.Builder>... dimensions) An array of CloudWatch dimensions associated withdimensions
(CloudWatchMetricsDimension... dimensions) An array of CloudWatch dimensions associated withdefault CloudWatchMetricsDetail.Builder
metricDataSummary
(Consumer<CloudWatchMetricsDataSummary.Builder> metricDataSummary) This object returns anomaly metric data.metricDataSummary
(CloudWatchMetricsDataSummary metricDataSummary) This object returns anomaly metric data.metricName
(String metricName) The name of the CloudWatch metric.The namespace of the CloudWatch metric.The length of time associated with the CloudWatch metric in number of seconds.The type of statistic associated with the CloudWatch metric.stat
(CloudWatchMetricsStat stat) The type of statistic associated with the CloudWatch metric.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 Details
-
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
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
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
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.Builder
avoiding the need to create one manually viaCloudWatchMetricsDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<CloudWatchMetricsDimension>)
.- 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:
-
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:
-
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:
-
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
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
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.Builder
avoiding the need to create one manually viaCloudWatchMetricsDataSummary.builder()
.When the
Consumer
completes,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:
-