AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ChoiceAnswerSummary.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/model/ChoiceStatus.h>
10#include <aws/wellarchitected/model/ChoiceReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_WELLARCHITECTED_API ChoiceAnswerSummary() = default;
38 AWS_WELLARCHITECTED_API ChoiceAnswerSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API ChoiceAnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
46 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
47 template<typename ChoiceIdT = Aws::String>
48 void SetChoiceId(ChoiceIdT&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::forward<ChoiceIdT>(value); }
49 template<typename ChoiceIdT = Aws::String>
50 ChoiceAnswerSummary& WithChoiceId(ChoiceIdT&& value) { SetChoiceId(std::forward<ChoiceIdT>(value)); return *this;}
52
54
57 inline ChoiceStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(ChoiceStatus value) { m_statusHasBeenSet = true; m_status = value; }
60 inline ChoiceAnswerSummary& WithStatus(ChoiceStatus value) { SetStatus(value); return *this;}
62
64
67 inline ChoiceReason GetReason() const { return m_reason; }
68 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
69 inline void SetReason(ChoiceReason value) { m_reasonHasBeenSet = true; m_reason = value; }
70 inline ChoiceAnswerSummary& WithReason(ChoiceReason value) { SetReason(value); return *this;}
72 private:
73
74 Aws::String m_choiceId;
75 bool m_choiceIdHasBeenSet = false;
76
78 bool m_statusHasBeenSet = false;
79
81 bool m_reasonHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace WellArchitected
86} // namespace Aws
ChoiceAnswerSummary & WithChoiceId(ChoiceIdT &&value)
ChoiceAnswerSummary & WithStatus(ChoiceStatus value)
ChoiceAnswerSummary & WithReason(ChoiceReason value)
AWS_WELLARCHITECTED_API ChoiceAnswerSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API ChoiceAnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API ChoiceAnswerSummary()=default
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue