@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. This represents the projected utilization of a recommendation option had you used that resource during the analyzed period.
Compare the utilization metric data of your resource against its projected utilization metric data to determine the performance difference between your current resource and the recommended option.
 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.
The following projected utilization metrics are returned:
 Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
 recommendation option had you used that resource during the analyzed period. This metric identifies the
 processing power required to run an application on the recommendation option.
 
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
 Memory - The percentage of memory that would be in use on the recommendation option had you used
 that resource during the analyzed period. This metric identifies the amount of memory required to run an
 application on the recommendation option.
 
Units: Percent
 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.
 
name - The name of the projected utilization metric.
        The following projected utilization metrics are returned:
        Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
        recommendation option had you used that resource during the analyzed period. This metric identifies the
        processing power required to run an application on the recommendation option.
        
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
        Memory - The percentage of memory that would be in use on the recommendation option had you
        used that resource during the analyzed period. This metric identifies the amount of memory required to run
        an application on the recommendation option.
        
Units: Percent
        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.
        
MetricNamepublic String getName()
The name of the projected utilization metric.
The following projected utilization metrics are returned:
 Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
 recommendation option had you used that resource during the analyzed period. This metric identifies the
 processing power required to run an application on the recommendation option.
 
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
 Memory - The percentage of memory that would be in use on the recommendation option had you used
 that resource during the analyzed period. This metric identifies the amount of memory required to run an
 application on the recommendation option.
 
Units: Percent
 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.
 
The following projected utilization metrics are returned:
         Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
         recommendation option had you used that resource during the analyzed period. This metric identifies the
         processing power required to run an application on the recommendation option.
         
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
         Memory - The percentage of memory that would be in use on the recommendation option had you
         used that resource during the analyzed period. This metric identifies the amount of memory required to
         run an application on the recommendation option.
         
Units: Percent
         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.
         
MetricNamepublic ProjectedMetric withName(String name)
The name of the projected utilization metric.
The following projected utilization metrics are returned:
 Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
 recommendation option had you used that resource during the analyzed period. This metric identifies the
 processing power required to run an application on the recommendation option.
 
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
 Memory - The percentage of memory that would be in use on the recommendation option had you used
 that resource during the analyzed period. This metric identifies the amount of memory required to run an
 application on the recommendation option.
 
Units: Percent
 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.
 
name - The name of the projected utilization metric.
        The following projected utilization metrics are returned:
        Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
        recommendation option had you used that resource during the analyzed period. This metric identifies the
        processing power required to run an application on the recommendation option.
        
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
        Memory - The percentage of memory that would be in use on the recommendation option had you
        used that resource during the analyzed period. This metric identifies the amount of memory required to run
        an application on the recommendation option.
        
Units: Percent
        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.
        
MetricNamepublic ProjectedMetric withName(MetricName name)
The name of the projected utilization metric.
The following projected utilization metrics are returned:
 Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
 recommendation option had you used that resource during the analyzed period. This metric identifies the
 processing power required to run an application on the recommendation option.
 
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
 Memory - The percentage of memory that would be in use on the recommendation option had you used
 that resource during the analyzed period. This metric identifies the amount of memory required to run an
 application on the recommendation option.
 
Units: Percent
 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.
 
name - The name of the projected utilization metric.
        The following projected utilization metrics are returned:
        Cpu - The projected percentage of allocated EC2 compute units that would be in use on the
        recommendation option had you used that resource during the analyzed period. This metric identifies the
        processing power required to run an application on the recommendation option.
        
Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
        Memory - The percentage of memory that would be in use on the recommendation option had you
        used that resource during the analyzed period. This metric identifies the amount of memory required to run
        an application on the recommendation option.
        
Units: Percent
        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.
        
MetricNamepublic 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 ObjectObject.toString()public ProjectedMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.