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

A summary of a finding reason code.

See Also:

AWS * API Reference

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

The name of the finding reason code.

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

The name of the finding reason code.

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

The name of the finding reason code.

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

The name of the finding reason code.

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

The name of the finding reason code.

*/ inline ReasonCodeSummary& WithName(const FindingReasonCode& value) { SetName(value); return *this;} /** *

The name of the finding reason code.

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

The value of the finding reason code summary.

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

The value of the finding reason code summary.

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

The value of the finding reason code summary.

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

The value of the finding reason code summary.

*/ inline ReasonCodeSummary& WithValue(double value) { SetValue(value); return *this;} private: FindingReasonCode m_name; bool m_nameHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws