/** * 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 WellArchitected { namespace Model { /** *

A choice summary that has been answered on a question in your * workload.

See Also:

AWS * API Reference

*/ class ChoiceAnswerSummary { public: AWS_WELLARCHITECTED_API ChoiceAnswerSummary(); AWS_WELLARCHITECTED_API ChoiceAnswerSummary(Aws::Utils::Json::JsonView jsonValue); AWS_WELLARCHITECTED_API ChoiceAnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetChoiceId() const{ return m_choiceId; } inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; } inline void SetChoiceId(const Aws::String& value) { m_choiceIdHasBeenSet = true; m_choiceId = value; } inline void SetChoiceId(Aws::String&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::move(value); } inline void SetChoiceId(const char* value) { m_choiceIdHasBeenSet = true; m_choiceId.assign(value); } inline ChoiceAnswerSummary& WithChoiceId(const Aws::String& value) { SetChoiceId(value); return *this;} inline ChoiceAnswerSummary& WithChoiceId(Aws::String&& value) { SetChoiceId(std::move(value)); return *this;} inline ChoiceAnswerSummary& WithChoiceId(const char* value) { SetChoiceId(value); return *this;} /** *

The status of a choice.

*/ inline const ChoiceStatus& GetStatus() const{ return m_status; } /** *

The status of a choice.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of a choice.

*/ inline void SetStatus(const ChoiceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of a choice.

*/ inline void SetStatus(ChoiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of a choice.

*/ inline ChoiceAnswerSummary& WithStatus(const ChoiceStatus& value) { SetStatus(value); return *this;} /** *

The status of a choice.

*/ inline ChoiceAnswerSummary& WithStatus(ChoiceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The reason why a choice is non-applicable to a question in your workload.

*/ inline const ChoiceReason& GetReason() const{ return m_reason; } /** *

The reason why a choice is non-applicable to a question in your workload.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason why a choice is non-applicable to a question in your workload.

*/ inline void SetReason(const ChoiceReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason why a choice is non-applicable to a question in your workload.

*/ inline void SetReason(ChoiceReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason why a choice is non-applicable to a question in your workload.

*/ inline ChoiceAnswerSummary& WithReason(const ChoiceReason& value) { SetReason(value); return *this;} /** *

The reason why a choice is non-applicable to a question in your workload.

*/ inline ChoiceAnswerSummary& WithReason(ChoiceReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::String m_choiceId; bool m_choiceIdHasBeenSet = false; ChoiceStatus m_status; bool m_statusHasBeenSet = false; ChoiceReason m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace WellArchitected } // namespace Aws