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

The summary of a recommendation.

See Also:

AWS * API Reference

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

The finding classification of the recommendation.

*/ inline const Finding& GetName() const{ return m_name; } /** *

The finding classification of the recommendation.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The finding classification of the recommendation.

*/ inline void SetName(const Finding& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The finding classification of the recommendation.

*/ inline void SetName(Finding&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The finding classification of the recommendation.

*/ inline Summary& WithName(const Finding& value) { SetName(value); return *this;} /** *

The finding classification of the recommendation.

*/ inline Summary& WithName(Finding&& value) { SetName(std::move(value)); return *this;} /** *

The value of the recommendation summary.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the recommendation summary.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the recommendation summary.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the recommendation summary.

*/ inline Summary& WithValue(double value) { SetValue(value); return *this;} /** *

An array of objects that summarize a finding reason code.

*/ inline const Aws::Vector& GetReasonCodeSummaries() const{ return m_reasonCodeSummaries; } /** *

An array of objects that summarize a finding reason code.

*/ inline bool ReasonCodeSummariesHasBeenSet() const { return m_reasonCodeSummariesHasBeenSet; } /** *

An array of objects that summarize a finding reason code.

*/ inline void SetReasonCodeSummaries(const Aws::Vector& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries = value; } /** *

An array of objects that summarize a finding reason code.

*/ inline void SetReasonCodeSummaries(Aws::Vector&& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries = std::move(value); } /** *

An array of objects that summarize a finding reason code.

*/ inline Summary& WithReasonCodeSummaries(const Aws::Vector& value) { SetReasonCodeSummaries(value); return *this;} /** *

An array of objects that summarize a finding reason code.

*/ inline Summary& WithReasonCodeSummaries(Aws::Vector&& value) { SetReasonCodeSummaries(std::move(value)); return *this;} /** *

An array of objects that summarize a finding reason code.

*/ inline Summary& AddReasonCodeSummaries(const ReasonCodeSummary& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries.push_back(value); return *this; } /** *

An array of objects that summarize a finding reason code.

*/ inline Summary& AddReasonCodeSummaries(ReasonCodeSummary&& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries.push_back(std::move(value)); return *this; } private: Finding m_name; bool m_nameHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; Aws::Vector m_reasonCodeSummaries; bool m_reasonCodeSummariesHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws