Interface MetricsDataSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricsDataSource.Builder,
,MetricsDataSource> SdkBuilder<MetricsDataSource.Builder,
,MetricsDataSource> SdkPojo
- Enclosing class:
MetricsDataSource
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Map<MetricDimensionName, ? extends Collection<String>> dimensions) An object that contains a mapping between aMetricDimensionName
andMetricDimensionValue
to filter metrics by.dimensionsWithStrings
(Map<String, ? extends Collection<String>> dimensions) An object that contains a mapping between aMetricDimensionName
andMetricDimensionValue
to filter metrics by.Represents the end date for the export interval as a timestamp.metrics
(Collection<ExportMetric> metrics) A list ofExportMetric
objects to export.metrics
(Consumer<ExportMetric.Builder>... metrics) A list ofExportMetric
objects to export.metrics
(ExportMetric... metrics) A list ofExportMetric
objects to export.The metrics namespace - e.g.,VDM
.namespace
(MetricNamespace namespace) The metrics namespace - e.g.,VDM
.Represents the start date for the export interval as a timestamp.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
-
dimensionsWithStrings
MetricsDataSource.Builder dimensionsWithStrings(Map<String, ? extends Collection<String>> dimensions) An object that contains a mapping between a
MetricDimensionName
andMetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.- Parameters:
dimensions
- An object that contains a mapping between aMetricDimensionName
andMetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
MetricsDataSource.Builder dimensions(Map<MetricDimensionName, ? extends Collection<String>> dimensions) An object that contains a mapping between a
MetricDimensionName
andMetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.- Parameters:
dimensions
- An object that contains a mapping between aMetricDimensionName
andMetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The metrics namespace - e.g.,
VDM
.- Parameters:
namespace
- The metrics namespace - e.g.,VDM
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespace
The metrics namespace - e.g.,
VDM
.- Parameters:
namespace
- The metrics namespace - e.g.,VDM
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metrics
A list of
ExportMetric
objects to export.- Parameters:
metrics
- A list ofExportMetric
objects to export.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A list of
ExportMetric
objects to export.- Parameters:
metrics
- A list ofExportMetric
objects to export.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A list of
This is a convenience method that creates an instance of theExportMetric
objects to export.ExportMetric.Builder
avoiding the need to create one manually viaExportMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometrics(List<ExportMetric>)
.- Parameters:
metrics
- a consumer that will call methods onExportMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startDate
Represents the start date for the export interval as a timestamp.
- Parameters:
startDate
- Represents the start date for the export interval as a timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
Represents the end date for the export interval as a timestamp.
- Parameters:
endDate
- Represents the end date for the export interval as a timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-