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 aMetricDimensionNameandMetricDimensionValueto filter metrics by.dimensionsWithStrings(Map<String, ? extends Collection<String>> dimensions) An object that contains a mapping between aMetricDimensionNameandMetricDimensionValueto filter metrics by.Represents the end date for the export interval as a timestamp.metrics(Collection<ExportMetric> metrics) A list ofExportMetricobjects to export.metrics(Consumer<ExportMetric.Builder>... metrics) A list ofExportMetricobjects to export.metrics(ExportMetric... metrics) A list ofExportMetricobjects 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
MetricDimensionNameandMetricDimensionValueto 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 aMetricDimensionNameandMetricDimensionValueto 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
MetricDimensionNameandMetricDimensionValueto 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 aMetricDimensionNameandMetricDimensionValueto 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
ExportMetricobjects to export.- Parameters:
metrics- A list ofExportMetricobjects to export.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A list of
ExportMetricobjects to export.- Parameters:
metrics- A list ofExportMetricobjects 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 theExportMetricobjects to export.ExportMetric.Builderavoiding the need to create one manually viaExportMetric.builder().When the
Consumercompletes,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.
-