@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProjectedMetric extends Object implements Serializable, Cloneable, StructuredPojo
Describes a projected utilization metric of a recommendation option, such as an Amazon EC2 instance.
The Cpu
and Memory
metrics are the only projected utilization metrics returned when you run
the GetEC2RecommendationProjectedMetrics
action. Additionally, the Memory
metric is
returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with
the CloudWatch Agent.
Constructor and Description |
---|
ProjectedMetric() |
Modifier and Type | Method and Description |
---|---|
ProjectedMetric |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the projected utilization metric.
|
List<Date> |
getTimestamps()
The time stamps of the projected utilization metric.
|
List<Double> |
getValues()
The values of the projected utilization metrics.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the projected utilization metric.
|
void |
setTimestamps(Collection<Date> timestamps)
The time stamps of the projected utilization metric.
|
void |
setValues(Collection<Double> values)
The values of the projected utilization metrics.
|
String |
toString()
Returns a string representation of this object.
|
ProjectedMetric |
withName(MetricName name)
The name of the projected utilization metric.
|
ProjectedMetric |
withName(String name)
The name of the projected utilization metric.
|
ProjectedMetric |
withTimestamps(Collection<Date> timestamps)
The time stamps of the projected utilization metric.
|
ProjectedMetric |
withTimestamps(Date... timestamps)
The time stamps of the projected utilization metric.
|
ProjectedMetric |
withValues(Collection<Double> values)
The values of the projected utilization metrics.
|
ProjectedMetric |
withValues(Double... values)
The values of the projected utilization metrics.
|
public void setName(String name)
The name of the projected utilization metric.
name
- The name of the projected utilization metric.MetricName
public String getName()
The name of the projected utilization metric.
MetricName
public ProjectedMetric withName(String name)
The name of the projected utilization metric.
name
- The name of the projected utilization metric.MetricName
public ProjectedMetric withName(MetricName name)
The name of the projected utilization metric.
name
- The name of the projected utilization metric.MetricName
public List<Date> getTimestamps()
The time stamps of the projected utilization metric.
public void setTimestamps(Collection<Date> timestamps)
The time stamps of the projected utilization metric.
timestamps
- The time stamps of the projected utilization metric.public ProjectedMetric withTimestamps(Date... timestamps)
The time stamps of the projected utilization metric.
NOTE: This method appends the values to the existing list (if any). Use
setTimestamps(java.util.Collection)
or withTimestamps(java.util.Collection)
if you want to
override the existing values.
timestamps
- The time stamps of the projected utilization metric.public ProjectedMetric withTimestamps(Collection<Date> timestamps)
The time stamps of the projected utilization metric.
timestamps
- The time stamps of the projected utilization metric.public List<Double> getValues()
The values of the projected utilization metrics.
public void setValues(Collection<Double> values)
The values of the projected utilization metrics.
values
- The values of the projected utilization metrics.public ProjectedMetric withValues(Double... values)
The values of the projected utilization metrics.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The values of the projected utilization metrics.public ProjectedMetric withValues(Collection<Double> values)
The values of the projected utilization metrics.
values
- The values of the projected utilization metrics.public String toString()
toString
in class Object
Object.toString()
public ProjectedMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.