@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricV2 extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the metric.
Constructor and Description |
---|
MetricV2() |
Modifier and Type | Method and Description |
---|---|
MetricV2 |
clone() |
boolean |
equals(Object obj) |
List<MetricFilterV2> |
getMetricFilters()
Contains the filters to be used when returning data.
|
String |
getName()
The name of the metric.
|
List<ThresholdV2> |
getThreshold()
Contains information about the threshold for service level metrics.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricFilters(Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
|
void |
setName(String name)
The name of the metric.
|
void |
setThreshold(Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
|
String |
toString()
Returns a string representation of this object.
|
MetricV2 |
withMetricFilters(Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
|
MetricV2 |
withMetricFilters(MetricFilterV2... metricFilters)
Contains the filters to be used when returning data.
|
MetricV2 |
withName(String name)
The name of the metric.
|
MetricV2 |
withThreshold(Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
|
MetricV2 |
withThreshold(ThresholdV2... threshold)
Contains information about the threshold for service level metrics.
|
public void setName(String name)
The name of the metric.
This parameter is required. The following Required = No is incorrect.
name
- The name of the metric. This parameter is required. The following Required = No is incorrect.
public String getName()
The name of the metric.
This parameter is required. The following Required = No is incorrect.
This parameter is required. The following Required = No is incorrect.
public MetricV2 withName(String name)
The name of the metric.
This parameter is required. The following Required = No is incorrect.
name
- The name of the metric. This parameter is required. The following Required = No is incorrect.
public List<ThresholdV2> getThreshold()
Contains information about the threshold for service level metrics.
public void setThreshold(Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
threshold
- Contains information about the threshold for service level metrics.public MetricV2 withThreshold(ThresholdV2... threshold)
Contains information about the threshold for service level metrics.
NOTE: This method appends the values to the existing list (if any). Use
setThreshold(java.util.Collection)
or withThreshold(java.util.Collection)
if you want to
override the existing values.
threshold
- Contains information about the threshold for service level metrics.public MetricV2 withThreshold(Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
threshold
- Contains information about the threshold for service level metrics.public List<MetricFilterV2> getMetricFilters()
Contains the filters to be used when returning data.
public void setMetricFilters(Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
metricFilters
- Contains the filters to be used when returning data.public MetricV2 withMetricFilters(MetricFilterV2... metricFilters)
Contains the filters to be used when returning data.
NOTE: This method appends the values to the existing list (if any). Use
setMetricFilters(java.util.Collection)
or withMetricFilters(java.util.Collection)
if you want
to override the existing values.
metricFilters
- Contains the filters to be used when returning data.public MetricV2 withMetricFilters(Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
metricFilters
- Contains the filters to be used when returning data.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.