/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Recommendations to rightsize resources.See Also:
AWS
* API Reference
The account that this recommendation is for.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The account that this recommendation is for.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The account that this recommendation is for.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The account that this recommendation is for.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The account that this recommendation is for.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The account that this recommendation is for.
*/ inline RightsizingRecommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The account that this recommendation is for.
*/ inline RightsizingRecommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The account that this recommendation is for.
*/ inline RightsizingRecommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *Context regarding the current instance.
*/ inline const CurrentInstance& GetCurrentInstance() const{ return m_currentInstance; } /** *Context regarding the current instance.
*/ inline bool CurrentInstanceHasBeenSet() const { return m_currentInstanceHasBeenSet; } /** *Context regarding the current instance.
*/ inline void SetCurrentInstance(const CurrentInstance& value) { m_currentInstanceHasBeenSet = true; m_currentInstance = value; } /** *Context regarding the current instance.
*/ inline void SetCurrentInstance(CurrentInstance&& value) { m_currentInstanceHasBeenSet = true; m_currentInstance = std::move(value); } /** *Context regarding the current instance.
*/ inline RightsizingRecommendation& WithCurrentInstance(const CurrentInstance& value) { SetCurrentInstance(value); return *this;} /** *Context regarding the current instance.
*/ inline RightsizingRecommendation& WithCurrentInstance(CurrentInstance&& value) { SetCurrentInstance(std::move(value)); return *this;} /** *A recommendation to either terminate or modify the resource.
*/ inline const RightsizingType& GetRightsizingType() const{ return m_rightsizingType; } /** *A recommendation to either terminate or modify the resource.
*/ inline bool RightsizingTypeHasBeenSet() const { return m_rightsizingTypeHasBeenSet; } /** *A recommendation to either terminate or modify the resource.
*/ inline void SetRightsizingType(const RightsizingType& value) { m_rightsizingTypeHasBeenSet = true; m_rightsizingType = value; } /** *A recommendation to either terminate or modify the resource.
*/ inline void SetRightsizingType(RightsizingType&& value) { m_rightsizingTypeHasBeenSet = true; m_rightsizingType = std::move(value); } /** *A recommendation to either terminate or modify the resource.
*/ inline RightsizingRecommendation& WithRightsizingType(const RightsizingType& value) { SetRightsizingType(value); return *this;} /** *A recommendation to either terminate or modify the resource.
*/ inline RightsizingRecommendation& WithRightsizingType(RightsizingType&& value) { SetRightsizingType(std::move(value)); return *this;} /** *The details for the modification recommendations.
*/ inline const ModifyRecommendationDetail& GetModifyRecommendationDetail() const{ return m_modifyRecommendationDetail; } /** *The details for the modification recommendations.
*/ inline bool ModifyRecommendationDetailHasBeenSet() const { return m_modifyRecommendationDetailHasBeenSet; } /** *The details for the modification recommendations.
*/ inline void SetModifyRecommendationDetail(const ModifyRecommendationDetail& value) { m_modifyRecommendationDetailHasBeenSet = true; m_modifyRecommendationDetail = value; } /** *The details for the modification recommendations.
*/ inline void SetModifyRecommendationDetail(ModifyRecommendationDetail&& value) { m_modifyRecommendationDetailHasBeenSet = true; m_modifyRecommendationDetail = std::move(value); } /** *The details for the modification recommendations.
*/ inline RightsizingRecommendation& WithModifyRecommendationDetail(const ModifyRecommendationDetail& value) { SetModifyRecommendationDetail(value); return *this;} /** *The details for the modification recommendations.
*/ inline RightsizingRecommendation& WithModifyRecommendationDetail(ModifyRecommendationDetail&& value) { SetModifyRecommendationDetail(std::move(value)); return *this;} /** *The details for termination recommendations.
*/ inline const TerminateRecommendationDetail& GetTerminateRecommendationDetail() const{ return m_terminateRecommendationDetail; } /** *The details for termination recommendations.
*/ inline bool TerminateRecommendationDetailHasBeenSet() const { return m_terminateRecommendationDetailHasBeenSet; } /** *The details for termination recommendations.
*/ inline void SetTerminateRecommendationDetail(const TerminateRecommendationDetail& value) { m_terminateRecommendationDetailHasBeenSet = true; m_terminateRecommendationDetail = value; } /** *The details for termination recommendations.
*/ inline void SetTerminateRecommendationDetail(TerminateRecommendationDetail&& value) { m_terminateRecommendationDetailHasBeenSet = true; m_terminateRecommendationDetail = std::move(value); } /** *The details for termination recommendations.
*/ inline RightsizingRecommendation& WithTerminateRecommendationDetail(const TerminateRecommendationDetail& value) { SetTerminateRecommendationDetail(value); return *this;} /** *The details for termination recommendations.
*/ inline RightsizingRecommendation& WithTerminateRecommendationDetail(TerminateRecommendationDetail&& value) { SetTerminateRecommendationDetail(std::move(value)); return *this;} /** *The list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline const Aws::VectorThe list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline bool FindingReasonCodesHasBeenSet() const { return m_findingReasonCodesHasBeenSet; } /** *The list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline void SetFindingReasonCodes(const Aws::VectorThe list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline void SetFindingReasonCodes(Aws::VectorThe list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline RightsizingRecommendation& WithFindingReasonCodes(const Aws::VectorThe list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline RightsizingRecommendation& WithFindingReasonCodes(Aws::VectorThe list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline RightsizingRecommendation& AddFindingReasonCodes(const FindingReasonCode& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(value); return *this; } /** *The list of possible reasons why the recommendation is generated, such as * under- or over-utilization of specific metrics (for example, CPU, Memory, * Network).
*/ inline RightsizingRecommendation& AddFindingReasonCodes(FindingReasonCode&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(std::move(value)); return *this; } private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; CurrentInstance m_currentInstance; bool m_currentInstanceHasBeenSet = false; RightsizingType m_rightsizingType; bool m_rightsizingTypeHasBeenSet = false; ModifyRecommendationDetail m_modifyRecommendationDetail; bool m_modifyRecommendationDetailHasBeenSet = false; TerminateRecommendationDetail m_terminateRecommendationDetail; bool m_terminateRecommendationDetailHasBeenSet = false; Aws::Vector