AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ChoiceAnswerSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
9#include <aws/wellarchitected/model/ChoiceReason.h>
10#include <aws/wellarchitected/model/ChoiceStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
31 public:
32 AWS_WELLARCHITECTED_API ChoiceAnswerSummary() = default;
33 AWS_WELLARCHITECTED_API ChoiceAnswerSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API ChoiceAnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
40 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
41 template <typename ChoiceIdT = Aws::String>
42 void SetChoiceId(ChoiceIdT&& value) {
43 m_choiceIdHasBeenSet = true;
44 m_choiceId = std::forward<ChoiceIdT>(value);
45 }
46 template <typename ChoiceIdT = Aws::String>
47 ChoiceAnswerSummary& WithChoiceId(ChoiceIdT&& value) {
48 SetChoiceId(std::forward<ChoiceIdT>(value));
49 return *this;
50 }
52
54
57 inline ChoiceStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(ChoiceStatus value) {
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68
70
73 inline ChoiceReason GetReason() const { return m_reason; }
74 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
75 inline void SetReason(ChoiceReason value) {
76 m_reasonHasBeenSet = true;
77 m_reason = value;
78 }
80 SetReason(value);
81 return *this;
82 }
84 private:
85 Aws::String m_choiceId;
86
88
90 bool m_choiceIdHasBeenSet = false;
91 bool m_statusHasBeenSet = false;
92 bool m_reasonHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace WellArchitected
97} // 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