@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecommendedOptionProjectedMetric extends Object implements Serializable, Cloneable, StructuredPojo
Describes a projected utilization metric of a recommendation 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 |
---|
RecommendedOptionProjectedMetric() |
Modifier and Type | Method and Description |
---|---|
RecommendedOptionProjectedMetric |
clone() |
boolean |
equals(Object obj) |
List<ProjectedMetric> |
getProjectedMetrics()
An array of objects that describe a projected utilization metric.
|
Integer |
getRank()
The rank of the recommendation option projected metric.
|
String |
getRecommendedInstanceType()
The recommended instance type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setProjectedMetrics(Collection<ProjectedMetric> projectedMetrics)
An array of objects that describe a projected utilization metric.
|
void |
setRank(Integer rank)
The rank of the recommendation option projected metric.
|
void |
setRecommendedInstanceType(String recommendedInstanceType)
The recommended instance type.
|
String |
toString()
Returns a string representation of this object.
|
RecommendedOptionProjectedMetric |
withProjectedMetrics(Collection<ProjectedMetric> projectedMetrics)
An array of objects that describe a projected utilization metric.
|
RecommendedOptionProjectedMetric |
withProjectedMetrics(ProjectedMetric... projectedMetrics)
An array of objects that describe a projected utilization metric.
|
RecommendedOptionProjectedMetric |
withRank(Integer rank)
The rank of the recommendation option projected metric.
|
RecommendedOptionProjectedMetric |
withRecommendedInstanceType(String recommendedInstanceType)
The recommended instance type.
|
public void setRecommendedInstanceType(String recommendedInstanceType)
The recommended instance type.
recommendedInstanceType
- The recommended instance type.public String getRecommendedInstanceType()
The recommended instance type.
public RecommendedOptionProjectedMetric withRecommendedInstanceType(String recommendedInstanceType)
The recommended instance type.
recommendedInstanceType
- The recommended instance type.public void setRank(Integer rank)
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked
as 1
is related to the recommendation option that is also ranked as 1
in the same
response.
rank
- The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric
ranked as 1
is related to the recommendation option that is also ranked as 1
in
the same response.
public Integer getRank()
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked
as 1
is related to the recommendation option that is also ranked as 1
in the same
response.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric
ranked as 1
is related to the recommendation option that is also ranked as 1
in
the same response.
public RecommendedOptionProjectedMetric withRank(Integer rank)
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked
as 1
is related to the recommendation option that is also ranked as 1
in the same
response.
rank
- The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric
ranked as 1
is related to the recommendation option that is also ranked as 1
in
the same response.
public List<ProjectedMetric> getProjectedMetrics()
An array of objects that describe a projected utilization metric.
public void setProjectedMetrics(Collection<ProjectedMetric> projectedMetrics)
An array of objects that describe a projected utilization metric.
projectedMetrics
- An array of objects that describe a projected utilization metric.public RecommendedOptionProjectedMetric withProjectedMetrics(ProjectedMetric... projectedMetrics)
An array of objects that describe a projected utilization metric.
NOTE: This method appends the values to the existing list (if any). Use
setProjectedMetrics(java.util.Collection)
or withProjectedMetrics(java.util.Collection)
if you
want to override the existing values.
projectedMetrics
- An array of objects that describe a projected utilization metric.public RecommendedOptionProjectedMetric withProjectedMetrics(Collection<ProjectedMetric> projectedMetrics)
An array of objects that describe a projected utilization metric.
projectedMetrics
- An array of objects that describe a projected utilization metric.public String toString()
toString
in class Object
Object.toString()
public RecommendedOptionProjectedMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.