@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricsDataSource extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains details about the data source for the metrics export.
Constructor and Description |
---|
MetricsDataSource() |
Modifier and Type | Method and Description |
---|---|
MetricsDataSource |
addDimensionsEntry(String key,
List<String> value)
Add a single Dimensions entry
|
MetricsDataSource |
clearDimensionsEntries()
Removes all the entries added into Dimensions.
|
MetricsDataSource |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getDimensions()
An object that contains a mapping between a
MetricDimensionName and
MetricDimensionValue to filter metrics by. |
Date |
getEndDate()
Represents the end date for the export interval as a timestamp.
|
List<ExportMetric> |
getMetrics()
A list of
ExportMetric objects to export. |
String |
getNamespace()
The metrics namespace - e.g.,
VDM . |
Date |
getStartDate()
Represents the start date for the export interval as a timestamp.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(Map<String,List<String>> dimensions)
An object that contains a mapping between a
MetricDimensionName and
MetricDimensionValue to filter metrics by. |
void |
setEndDate(Date endDate)
Represents the end date for the export interval as a timestamp.
|
void |
setMetrics(Collection<ExportMetric> metrics)
A list of
ExportMetric objects to export. |
void |
setNamespace(String namespace)
The metrics namespace - e.g.,
VDM . |
void |
setStartDate(Date startDate)
Represents the start date for the export interval as a timestamp.
|
String |
toString()
Returns a string representation of this object.
|
MetricsDataSource |
withDimensions(Map<String,List<String>> dimensions)
An object that contains a mapping between a
MetricDimensionName and
MetricDimensionValue to filter metrics by. |
MetricsDataSource |
withEndDate(Date endDate)
Represents the end date for the export interval as a timestamp.
|
MetricsDataSource |
withMetrics(Collection<ExportMetric> metrics)
A list of
ExportMetric objects to export. |
MetricsDataSource |
withMetrics(ExportMetric... metrics)
A list of
ExportMetric objects to export. |
MetricsDataSource |
withNamespace(MetricNamespace namespace)
The metrics namespace - e.g.,
VDM . |
MetricsDataSource |
withNamespace(String namespace)
The metrics namespace - e.g.,
VDM . |
MetricsDataSource |
withStartDate(Date startDate)
Represents the start date for the export interval as a timestamp.
|
public Map<String,List<String>> getDimensions()
An object that contains a mapping between a MetricDimensionName
and
MetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3
unique ones.
MetricDimensionName
and
MetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than
3 unique ones.public void setDimensions(Map<String,List<String>> dimensions)
An object that contains a mapping between a MetricDimensionName
and
MetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3
unique ones.
dimensions
- An object that contains a mapping between a MetricDimensionName
and
MetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than
3 unique ones.public MetricsDataSource withDimensions(Map<String,List<String>> dimensions)
An object that contains a mapping between a MetricDimensionName
and
MetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than 3
unique ones.
dimensions
- An object that contains a mapping between a MetricDimensionName
and
MetricDimensionValue
to filter metrics by. Must contain a least 1 dimension but no more than
3 unique ones.public MetricsDataSource addDimensionsEntry(String key, List<String> value)
public MetricsDataSource clearDimensionsEntries()
public void setNamespace(String namespace)
The metrics namespace - e.g., VDM
.
namespace
- The metrics namespace - e.g., VDM
.MetricNamespace
public String getNamespace()
The metrics namespace - e.g., VDM
.
VDM
.MetricNamespace
public MetricsDataSource withNamespace(String namespace)
The metrics namespace - e.g., VDM
.
namespace
- The metrics namespace - e.g., VDM
.MetricNamespace
public MetricsDataSource withNamespace(MetricNamespace namespace)
The metrics namespace - e.g., VDM
.
namespace
- The metrics namespace - e.g., VDM
.MetricNamespace
public List<ExportMetric> getMetrics()
A list of ExportMetric
objects to export.
ExportMetric
objects to export.public void setMetrics(Collection<ExportMetric> metrics)
A list of ExportMetric
objects to export.
metrics
- A list of ExportMetric
objects to export.public MetricsDataSource withMetrics(ExportMetric... metrics)
A list of ExportMetric
objects to export.
NOTE: This method appends the values to the existing list (if any). Use
setMetrics(java.util.Collection)
or withMetrics(java.util.Collection)
if you want to override
the existing values.
metrics
- A list of ExportMetric
objects to export.public MetricsDataSource withMetrics(Collection<ExportMetric> metrics)
A list of ExportMetric
objects to export.
metrics
- A list of ExportMetric
objects to export.public void setStartDate(Date startDate)
Represents the start date for the export interval as a timestamp.
startDate
- Represents the start date for the export interval as a timestamp.public Date getStartDate()
Represents the start date for the export interval as a timestamp.
public MetricsDataSource withStartDate(Date startDate)
Represents the start date for the export interval as a timestamp.
startDate
- Represents the start date for the export interval as a timestamp.public void setEndDate(Date endDate)
Represents the end date for the export interval as a timestamp.
endDate
- Represents the end date for the export interval as a timestamp.public Date getEndDate()
Represents the end date for the export interval as a timestamp.
public MetricsDataSource withEndDate(Date endDate)
Represents the end date for the export interval as a timestamp.
endDate
- Represents the end date for the export interval as a timestamp.public String toString()
toString
in class Object
Object.toString()
public MetricsDataSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.