Interface MetricsDataSource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricsDataSource.Builder,MetricsDataSource>,SdkBuilder<MetricsDataSource.Builder,MetricsDataSource>,SdkPojo
- Enclosing class:
- MetricsDataSource
public static interface MetricsDataSource.Builder extends SdkPojo, CopyableBuilder<MetricsDataSource.Builder,MetricsDataSource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricsDataSource.Builderdimensions(Map<MetricDimensionName,? extends Collection<String>> dimensions)An object that contains a mapping between aMetricDimensionNameandMetricDimensionValueto filter metrics by.MetricsDataSource.BuilderdimensionsWithStrings(Map<String,? extends Collection<String>> dimensions)An object that contains a mapping between aMetricDimensionNameandMetricDimensionValueto filter metrics by.MetricsDataSource.BuilderendDate(Instant endDate)Represents the end date for the export interval as a timestamp.MetricsDataSource.Buildermetrics(Collection<ExportMetric> metrics)A list ofExportMetricobjects to export.MetricsDataSource.Buildermetrics(Consumer<ExportMetric.Builder>... metrics)A list ofExportMetricobjects to export.MetricsDataSource.Buildermetrics(ExportMetric... metrics)A list ofExportMetricobjects to export.MetricsDataSource.Buildernamespace(String namespace)The metrics namespace - e.g.,VDM.MetricsDataSource.Buildernamespace(MetricNamespace namespace)The metrics namespace - e.g.,VDM.MetricsDataSource.BuilderstartDate(Instant startDate)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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
MetricsDataSource.Builder namespace(String 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:
MetricNamespace,MetricNamespace
-
namespace
MetricsDataSource.Builder namespace(MetricNamespace 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:
MetricNamespace,MetricNamespace
-
metrics
MetricsDataSource.Builder metrics(Collection<ExportMetric> 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
MetricsDataSource.Builder metrics(ExportMetric... 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
MetricsDataSource.Builder metrics(Consumer<ExportMetric.Builder>... 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 to#metrics(List.) - 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:
#metrics(java.util.Collection)
-
startDate
MetricsDataSource.Builder startDate(Instant 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
MetricsDataSource.Builder endDate(Instant 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.
-
-