/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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.
*
* The recommended instance type. *
*/ private String recommendedInstanceType; /** ** 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.
*
* An array of objects that describe a projected utilization metric. *
*/ private java.util.List* The recommended instance type. *
* * @param recommendedInstanceType * The recommended instance type. */ public void setRecommendedInstanceType(String recommendedInstanceType) { this.recommendedInstanceType = recommendedInstanceType; } /** ** The recommended instance type. *
* * @return The recommended instance type. */ public String getRecommendedInstanceType() { return this.recommendedInstanceType; } /** ** The recommended instance type. *
* * @param recommendedInstanceType * The recommended instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public RecommendedOptionProjectedMetric withRecommendedInstanceType(String recommendedInstanceType) { setRecommendedInstanceType(recommendedInstanceType); return this; } /** ** 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 void setRank(Integer rank) {
this.rank = 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.
*
* 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() {
return this.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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecommendedOptionProjectedMetric withRank(Integer rank) {
setRank(rank);
return this;
}
/**
*
* An array of objects that describe a projected utilization metric. *
* * @return An array of objects that describe a projected utilization metric. */ public java.util.List* An array of objects that describe a projected utilization metric. *
* * @param projectedMetrics * An array of objects that describe a projected utilization metric. */ public void setProjectedMetrics(java.util.Collection* An array of objects that describe a projected utilization metric. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProjectedMetrics(java.util.Collection)} or {@link #withProjectedMetrics(java.util.Collection)} if you * want to override the existing values. *
* * @param projectedMetrics * An array of objects that describe a projected utilization metric. * @return Returns a reference to this object so that method calls can be chained together. */ public RecommendedOptionProjectedMetric withProjectedMetrics(ProjectedMetric... projectedMetrics) { if (this.projectedMetrics == null) { setProjectedMetrics(new java.util.ArrayList* An array of objects that describe a projected utilization metric. *
* * @param projectedMetrics * An array of objects that describe a projected utilization metric. * @return Returns a reference to this object so that method calls can be chained together. */ public RecommendedOptionProjectedMetric withProjectedMetrics(java.util.Collection