/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

Details for the modification recommendation.

See Also:

AWS * API Reference

*/ class ModifyRecommendationDetail { public: AWS_COSTEXPLORER_API ModifyRecommendationDetail(); AWS_COSTEXPLORER_API ModifyRecommendationDetail(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API ModifyRecommendationDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline const Aws::Vector& GetTargetInstances() const{ return m_targetInstances; } /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline bool TargetInstancesHasBeenSet() const { return m_targetInstancesHasBeenSet; } /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline void SetTargetInstances(const Aws::Vector& value) { m_targetInstancesHasBeenSet = true; m_targetInstances = value; } /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline void SetTargetInstances(Aws::Vector&& value) { m_targetInstancesHasBeenSet = true; m_targetInstances = std::move(value); } /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline ModifyRecommendationDetail& WithTargetInstances(const Aws::Vector& value) { SetTargetInstances(value); return *this;} /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline ModifyRecommendationDetail& WithTargetInstances(Aws::Vector&& value) { SetTargetInstances(std::move(value)); return *this;} /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline ModifyRecommendationDetail& AddTargetInstances(const TargetInstance& value) { m_targetInstancesHasBeenSet = true; m_targetInstances.push_back(value); return *this; } /** *

Determines whether this instance type is the Amazon Web Services default * recommendation.

*/ inline ModifyRecommendationDetail& AddTargetInstances(TargetInstance&& value) { m_targetInstancesHasBeenSet = true; m_targetInstances.push_back(std::move(value)); return *this; } private: Aws::Vector m_targetInstances; bool m_targetInstancesHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws