@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceRecommendation extends Object implements Serializable, Cloneable, StructuredPojo
Describes an Amazon EC2 instance recommendation.
| Constructor and Description | 
|---|
| InstanceRecommendation() | 
| Modifier and Type | Method and Description | 
|---|---|
| InstanceRecommendation | clone() | 
| boolean | equals(Object obj) | 
| String | getAccountId()
 The AWS account ID of the instance. | 
| String | getCurrentInstanceType()
 The instance type of the current instance. | 
| String | getFinding()
 The finding classification for the instance. | 
| String | getInstanceArn()
 The Amazon Resource Name (ARN) of the current instance. | 
| String | getInstanceName()
 The name of the current instance. | 
| Date | getLastRefreshTimestamp()
 The time stamp of when the instance recommendation was last refreshed. | 
| Double | getLookBackPeriodInDays()
 The number of days for which utilization metrics were analyzed for the instance. | 
| List<InstanceRecommendationOption> | getRecommendationOptions()
 An array of objects that describe the recommendation options for the instance. | 
| List<RecommendationSource> | getRecommendationSources()
 An array of objects that describe the source resource of the recommendation. | 
| List<UtilizationMetric> | getUtilizationMetrics()
 An array of objects that describe the utilization metrics of the instance. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setAccountId(String accountId)
 The AWS account ID of the instance. | 
| void | setCurrentInstanceType(String currentInstanceType)
 The instance type of the current instance. | 
| void | setFinding(String finding)
 The finding classification for the instance. | 
| void | setInstanceArn(String instanceArn)
 The Amazon Resource Name (ARN) of the current instance. | 
| void | setInstanceName(String instanceName)
 The name of the current instance. | 
| void | setLastRefreshTimestamp(Date lastRefreshTimestamp)
 The time stamp of when the instance recommendation was last refreshed. | 
| void | setLookBackPeriodInDays(Double lookBackPeriodInDays)
 The number of days for which utilization metrics were analyzed for the instance. | 
| void | setRecommendationOptions(Collection<InstanceRecommendationOption> recommendationOptions)
 An array of objects that describe the recommendation options for the instance. | 
| void | setRecommendationSources(Collection<RecommendationSource> recommendationSources)
 An array of objects that describe the source resource of the recommendation. | 
| void | setUtilizationMetrics(Collection<UtilizationMetric> utilizationMetrics)
 An array of objects that describe the utilization metrics of the instance. | 
| String | toString()Returns a string representation of this object. | 
| InstanceRecommendation | withAccountId(String accountId)
 The AWS account ID of the instance. | 
| InstanceRecommendation | withCurrentInstanceType(String currentInstanceType)
 The instance type of the current instance. | 
| InstanceRecommendation | withFinding(Finding finding)
 The finding classification for the instance. | 
| InstanceRecommendation | withFinding(String finding)
 The finding classification for the instance. | 
| InstanceRecommendation | withInstanceArn(String instanceArn)
 The Amazon Resource Name (ARN) of the current instance. | 
| InstanceRecommendation | withInstanceName(String instanceName)
 The name of the current instance. | 
| InstanceRecommendation | withLastRefreshTimestamp(Date lastRefreshTimestamp)
 The time stamp of when the instance recommendation was last refreshed. | 
| InstanceRecommendation | withLookBackPeriodInDays(Double lookBackPeriodInDays)
 The number of days for which utilization metrics were analyzed for the instance. | 
| InstanceRecommendation | withRecommendationOptions(Collection<InstanceRecommendationOption> recommendationOptions)
 An array of objects that describe the recommendation options for the instance. | 
| InstanceRecommendation | withRecommendationOptions(InstanceRecommendationOption... recommendationOptions)
 An array of objects that describe the recommendation options for the instance. | 
| InstanceRecommendation | withRecommendationSources(Collection<RecommendationSource> recommendationSources)
 An array of objects that describe the source resource of the recommendation. | 
| InstanceRecommendation | withRecommendationSources(RecommendationSource... recommendationSources)
 An array of objects that describe the source resource of the recommendation. | 
| InstanceRecommendation | withUtilizationMetrics(Collection<UtilizationMetric> utilizationMetrics)
 An array of objects that describe the utilization metrics of the instance. | 
| InstanceRecommendation | withUtilizationMetrics(UtilizationMetric... utilizationMetrics)
 An array of objects that describe the utilization metrics of the instance. | 
public void setInstanceArn(String instanceArn)
The Amazon Resource Name (ARN) of the current instance.
instanceArn - The Amazon Resource Name (ARN) of the current instance.public String getInstanceArn()
The Amazon Resource Name (ARN) of the current instance.
public InstanceRecommendation withInstanceArn(String instanceArn)
The Amazon Resource Name (ARN) of the current instance.
instanceArn - The Amazon Resource Name (ARN) of the current instance.public void setAccountId(String accountId)
The AWS account ID of the instance.
accountId - The AWS account ID of the instance.public String getAccountId()
The AWS account ID of the instance.
public InstanceRecommendation withAccountId(String accountId)
The AWS account ID of the instance.
accountId - The AWS account ID of the instance.public void setInstanceName(String instanceName)
The name of the current instance.
instanceName - The name of the current instance.public String getInstanceName()
The name of the current instance.
public InstanceRecommendation withInstanceName(String instanceName)
The name of the current instance.
instanceName - The name of the current instance.public void setCurrentInstanceType(String currentInstanceType)
The instance type of the current instance.
currentInstanceType - The instance type of the current instance.public String getCurrentInstanceType()
The instance type of the current instance.
public InstanceRecommendation withCurrentInstanceType(String currentInstanceType)
The instance type of the current instance.
currentInstanceType - The instance type of the current instance.public void setFinding(String finding)
The finding classification for the instance.
Findings for instances include:
  Underprovisioned —An instance is considered under-provisioned when at least one
 specification of your instance, such as CPU, memory, or network, does not meet the performance requirements of
 your workload. Under-provisioned instances may lead to poor application performance.
 
  Overprovisioned —An instance is considered over-provisioned when at least one specification
 of your instance, such as CPU, memory, or network, can be sized down while still meeting the performance
 requirements of your workload, and no specification is under-provisioned. Over-provisioned instances may lead to
 unnecessary infrastructure cost.
 
  Optimized —An instance is considered optimized when all specifications of your instance,
 such as CPU, memory, and network, meet the performance requirements of your workload and is not over provisioned.
 An optimized instance runs your workloads with optimal performance and infrastructure cost. For optimized
 resources, AWS Compute Optimizer might recommend a new generation instance type.
 
finding - The finding classification for the instance.
        Findings for instances include:
         Underprovisioned —An instance is considered under-provisioned when at least one
        specification of your instance, such as CPU, memory, or network, does not meet the performance
        requirements of your workload. Under-provisioned instances may lead to poor application performance.
        
         Overprovisioned —An instance is considered over-provisioned when at least one
        specification of your instance, such as CPU, memory, or network, can be sized down while still meeting the
        performance requirements of your workload, and no specification is under-provisioned. Over-provisioned
        instances may lead to unnecessary infrastructure cost.
        
         Optimized —An instance is considered optimized when all specifications of your
        instance, such as CPU, memory, and network, meet the performance requirements of your workload and is not
        over provisioned. An optimized instance runs your workloads with optimal performance and infrastructure
        cost. For optimized resources, AWS Compute Optimizer might recommend a new generation instance type.
        
Findingpublic String getFinding()
The finding classification for the instance.
Findings for instances include:
  Underprovisioned —An instance is considered under-provisioned when at least one
 specification of your instance, such as CPU, memory, or network, does not meet the performance requirements of
 your workload. Under-provisioned instances may lead to poor application performance.
 
  Overprovisioned —An instance is considered over-provisioned when at least one specification
 of your instance, such as CPU, memory, or network, can be sized down while still meeting the performance
 requirements of your workload, and no specification is under-provisioned. Over-provisioned instances may lead to
 unnecessary infrastructure cost.
 
  Optimized —An instance is considered optimized when all specifications of your instance,
 such as CPU, memory, and network, meet the performance requirements of your workload and is not over provisioned.
 An optimized instance runs your workloads with optimal performance and infrastructure cost. For optimized
 resources, AWS Compute Optimizer might recommend a new generation instance type.
 
Findings for instances include:
          Underprovisioned —An instance is considered under-provisioned when at least one
         specification of your instance, such as CPU, memory, or network, does not meet the performance
         requirements of your workload. Under-provisioned instances may lead to poor application performance.
         
          Overprovisioned —An instance is considered over-provisioned when at least one
         specification of your instance, such as CPU, memory, or network, can be sized down while still meeting
         the performance requirements of your workload, and no specification is under-provisioned.
         Over-provisioned instances may lead to unnecessary infrastructure cost.
         
          Optimized —An instance is considered optimized when all specifications of your
         instance, such as CPU, memory, and network, meet the performance requirements of your workload and is not
         over provisioned. An optimized instance runs your workloads with optimal performance and infrastructure
         cost. For optimized resources, AWS Compute Optimizer might recommend a new generation instance type.
         
Findingpublic InstanceRecommendation withFinding(String finding)
The finding classification for the instance.
Findings for instances include:
  Underprovisioned —An instance is considered under-provisioned when at least one
 specification of your instance, such as CPU, memory, or network, does not meet the performance requirements of
 your workload. Under-provisioned instances may lead to poor application performance.
 
  Overprovisioned —An instance is considered over-provisioned when at least one specification
 of your instance, such as CPU, memory, or network, can be sized down while still meeting the performance
 requirements of your workload, and no specification is under-provisioned. Over-provisioned instances may lead to
 unnecessary infrastructure cost.
 
  Optimized —An instance is considered optimized when all specifications of your instance,
 such as CPU, memory, and network, meet the performance requirements of your workload and is not over provisioned.
 An optimized instance runs your workloads with optimal performance and infrastructure cost. For optimized
 resources, AWS Compute Optimizer might recommend a new generation instance type.
 
finding - The finding classification for the instance.
        Findings for instances include:
         Underprovisioned —An instance is considered under-provisioned when at least one
        specification of your instance, such as CPU, memory, or network, does not meet the performance
        requirements of your workload. Under-provisioned instances may lead to poor application performance.
        
         Overprovisioned —An instance is considered over-provisioned when at least one
        specification of your instance, such as CPU, memory, or network, can be sized down while still meeting the
        performance requirements of your workload, and no specification is under-provisioned. Over-provisioned
        instances may lead to unnecessary infrastructure cost.
        
         Optimized —An instance is considered optimized when all specifications of your
        instance, such as CPU, memory, and network, meet the performance requirements of your workload and is not
        over provisioned. An optimized instance runs your workloads with optimal performance and infrastructure
        cost. For optimized resources, AWS Compute Optimizer might recommend a new generation instance type.
        
Findingpublic InstanceRecommendation withFinding(Finding finding)
The finding classification for the instance.
Findings for instances include:
  Underprovisioned —An instance is considered under-provisioned when at least one
 specification of your instance, such as CPU, memory, or network, does not meet the performance requirements of
 your workload. Under-provisioned instances may lead to poor application performance.
 
  Overprovisioned —An instance is considered over-provisioned when at least one specification
 of your instance, such as CPU, memory, or network, can be sized down while still meeting the performance
 requirements of your workload, and no specification is under-provisioned. Over-provisioned instances may lead to
 unnecessary infrastructure cost.
 
  Optimized —An instance is considered optimized when all specifications of your instance,
 such as CPU, memory, and network, meet the performance requirements of your workload and is not over provisioned.
 An optimized instance runs your workloads with optimal performance and infrastructure cost. For optimized
 resources, AWS Compute Optimizer might recommend a new generation instance type.
 
finding - The finding classification for the instance.
        Findings for instances include:
         Underprovisioned —An instance is considered under-provisioned when at least one
        specification of your instance, such as CPU, memory, or network, does not meet the performance
        requirements of your workload. Under-provisioned instances may lead to poor application performance.
        
         Overprovisioned —An instance is considered over-provisioned when at least one
        specification of your instance, such as CPU, memory, or network, can be sized down while still meeting the
        performance requirements of your workload, and no specification is under-provisioned. Over-provisioned
        instances may lead to unnecessary infrastructure cost.
        
         Optimized —An instance is considered optimized when all specifications of your
        instance, such as CPU, memory, and network, meet the performance requirements of your workload and is not
        over provisioned. An optimized instance runs your workloads with optimal performance and infrastructure
        cost. For optimized resources, AWS Compute Optimizer might recommend a new generation instance type.
        
Findingpublic List<UtilizationMetric> getUtilizationMetrics()
An array of objects that describe the utilization metrics of the instance.
public void setUtilizationMetrics(Collection<UtilizationMetric> utilizationMetrics)
An array of objects that describe the utilization metrics of the instance.
utilizationMetrics - An array of objects that describe the utilization metrics of the instance.public InstanceRecommendation withUtilizationMetrics(UtilizationMetric... utilizationMetrics)
An array of objects that describe the utilization metrics of the instance.
 NOTE: This method appends the values to the existing list (if any). Use
 setUtilizationMetrics(java.util.Collection) or withUtilizationMetrics(java.util.Collection) if
 you want to override the existing values.
 
utilizationMetrics - An array of objects that describe the utilization metrics of the instance.public InstanceRecommendation withUtilizationMetrics(Collection<UtilizationMetric> utilizationMetrics)
An array of objects that describe the utilization metrics of the instance.
utilizationMetrics - An array of objects that describe the utilization metrics of the instance.public void setLookBackPeriodInDays(Double lookBackPeriodInDays)
The number of days for which utilization metrics were analyzed for the instance.
lookBackPeriodInDays - The number of days for which utilization metrics were analyzed for the instance.public Double getLookBackPeriodInDays()
The number of days for which utilization metrics were analyzed for the instance.
public InstanceRecommendation withLookBackPeriodInDays(Double lookBackPeriodInDays)
The number of days for which utilization metrics were analyzed for the instance.
lookBackPeriodInDays - The number of days for which utilization metrics were analyzed for the instance.public List<InstanceRecommendationOption> getRecommendationOptions()
An array of objects that describe the recommendation options for the instance.
public void setRecommendationOptions(Collection<InstanceRecommendationOption> recommendationOptions)
An array of objects that describe the recommendation options for the instance.
recommendationOptions - An array of objects that describe the recommendation options for the instance.public InstanceRecommendation withRecommendationOptions(InstanceRecommendationOption... recommendationOptions)
An array of objects that describe the recommendation options for the instance.
 NOTE: This method appends the values to the existing list (if any). Use
 setRecommendationOptions(java.util.Collection) or
 withRecommendationOptions(java.util.Collection) if you want to override the existing values.
 
recommendationOptions - An array of objects that describe the recommendation options for the instance.public InstanceRecommendation withRecommendationOptions(Collection<InstanceRecommendationOption> recommendationOptions)
An array of objects that describe the recommendation options for the instance.
recommendationOptions - An array of objects that describe the recommendation options for the instance.public List<RecommendationSource> getRecommendationSources()
An array of objects that describe the source resource of the recommendation.
public void setRecommendationSources(Collection<RecommendationSource> recommendationSources)
An array of objects that describe the source resource of the recommendation.
recommendationSources - An array of objects that describe the source resource of the recommendation.public InstanceRecommendation withRecommendationSources(RecommendationSource... recommendationSources)
An array of objects that describe the source resource of the recommendation.
 NOTE: This method appends the values to the existing list (if any). Use
 setRecommendationSources(java.util.Collection) or
 withRecommendationSources(java.util.Collection) if you want to override the existing values.
 
recommendationSources - An array of objects that describe the source resource of the recommendation.public InstanceRecommendation withRecommendationSources(Collection<RecommendationSource> recommendationSources)
An array of objects that describe the source resource of the recommendation.
recommendationSources - An array of objects that describe the source resource of the recommendation.public void setLastRefreshTimestamp(Date lastRefreshTimestamp)
The time stamp of when the instance recommendation was last refreshed.
lastRefreshTimestamp - The time stamp of when the instance recommendation was last refreshed.public Date getLastRefreshTimestamp()
The time stamp of when the instance recommendation was last refreshed.
public InstanceRecommendation withLastRefreshTimestamp(Date lastRefreshTimestamp)
The time stamp of when the instance recommendation was last refreshed.
lastRefreshTimestamp - The time stamp of when the instance recommendation was last refreshed.public String toString()
toString in class ObjectObject.toString()public InstanceRecommendation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.