AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Choice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/AdditionalResources.h>
11#include <aws/wellarchitected/model/ChoiceContent.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WellArchitected {
23namespace Model {
24
30class Choice {
31 public:
32 AWS_WELLARCHITECTED_API Choice() = default;
33 AWS_WELLARCHITECTED_API Choice(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Choice& 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 Choice& WithChoiceId(ChoiceIdT&& value) {
48 SetChoiceId(std::forward<ChoiceIdT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetTitle() const { return m_title; }
56 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
57 template <typename TitleT = Aws::String>
58 void SetTitle(TitleT&& value) {
59 m_titleHasBeenSet = true;
60 m_title = std::forward<TitleT>(value);
61 }
62 template <typename TitleT = Aws::String>
63 Choice& WithTitle(TitleT&& value) {
64 SetTitle(std::forward<TitleT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
79 Choice& WithDescription(DescriptionT&& value) {
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
91 inline const ChoiceContent& GetHelpfulResource() const { return m_helpfulResource; }
92 inline bool HelpfulResourceHasBeenSet() const { return m_helpfulResourceHasBeenSet; }
93 template <typename HelpfulResourceT = ChoiceContent>
94 void SetHelpfulResource(HelpfulResourceT&& value) {
95 m_helpfulResourceHasBeenSet = true;
96 m_helpfulResource = std::forward<HelpfulResourceT>(value);
97 }
98 template <typename HelpfulResourceT = ChoiceContent>
99 Choice& WithHelpfulResource(HelpfulResourceT&& value) {
100 SetHelpfulResource(std::forward<HelpfulResourceT>(value));
101 return *this;
102 }
104
106
111 inline const ChoiceContent& GetImprovementPlan() const { return m_improvementPlan; }
112 inline bool ImprovementPlanHasBeenSet() const { return m_improvementPlanHasBeenSet; }
113 template <typename ImprovementPlanT = ChoiceContent>
114 void SetImprovementPlan(ImprovementPlanT&& value) {
115 m_improvementPlanHasBeenSet = true;
116 m_improvementPlan = std::forward<ImprovementPlanT>(value);
117 }
118 template <typename ImprovementPlanT = ChoiceContent>
119 Choice& WithImprovementPlan(ImprovementPlanT&& value) {
120 SetImprovementPlan(std::forward<ImprovementPlanT>(value));
121 return *this;
122 }
124
126
131 inline const Aws::Vector<AdditionalResources>& GetAdditionalResources() const { return m_additionalResources; }
132 inline bool AdditionalResourcesHasBeenSet() const { return m_additionalResourcesHasBeenSet; }
133 template <typename AdditionalResourcesT = Aws::Vector<AdditionalResources>>
134 void SetAdditionalResources(AdditionalResourcesT&& value) {
135 m_additionalResourcesHasBeenSet = true;
136 m_additionalResources = std::forward<AdditionalResourcesT>(value);
137 }
138 template <typename AdditionalResourcesT = Aws::Vector<AdditionalResources>>
139 Choice& WithAdditionalResources(AdditionalResourcesT&& value) {
140 SetAdditionalResources(std::forward<AdditionalResourcesT>(value));
141 return *this;
142 }
143 template <typename AdditionalResourcesT = AdditionalResources>
144 Choice& AddAdditionalResources(AdditionalResourcesT&& value) {
145 m_additionalResourcesHasBeenSet = true;
146 m_additionalResources.emplace_back(std::forward<AdditionalResourcesT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_choiceId;
152
153 Aws::String m_title;
154
155 Aws::String m_description;
156
157 ChoiceContent m_helpfulResource;
158
159 ChoiceContent m_improvementPlan;
160
161 Aws::Vector<AdditionalResources> m_additionalResources;
162 bool m_choiceIdHasBeenSet = false;
163 bool m_titleHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_helpfulResourceHasBeenSet = false;
166 bool m_improvementPlanHasBeenSet = false;
167 bool m_additionalResourcesHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace WellArchitected
172} // namespace Aws
void SetChoiceId(ChoiceIdT &&value)
Definition Choice.h:42
AWS_WELLARCHITECTED_API Choice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Choice()=default
const Aws::Vector< AdditionalResources > & GetAdditionalResources() const
Definition Choice.h:131
const Aws::String & GetTitle() const
Definition Choice.h:55
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
Choice & WithAdditionalResources(AdditionalResourcesT &&value)
Definition Choice.h:139
void SetImprovementPlan(ImprovementPlanT &&value)
Definition Choice.h:114
Choice & WithHelpfulResource(HelpfulResourceT &&value)
Definition Choice.h:99
bool AdditionalResourcesHasBeenSet() const
Definition Choice.h:132
void SetTitle(TitleT &&value)
Definition Choice.h:58
const Aws::String & GetChoiceId() const
Definition Choice.h:39
const ChoiceContent & GetImprovementPlan() const
Definition Choice.h:111
Choice & WithTitle(TitleT &&value)
Definition Choice.h:63
void SetDescription(DescriptionT &&value)
Definition Choice.h:74
Choice & WithImprovementPlan(ImprovementPlanT &&value)
Definition Choice.h:119
Choice & WithDescription(DescriptionT &&value)
Definition Choice.h:79
Choice & AddAdditionalResources(AdditionalResourcesT &&value)
Definition Choice.h:144
void SetAdditionalResources(AdditionalResourcesT &&value)
Definition Choice.h:134
bool HelpfulResourceHasBeenSet() const
Definition Choice.h:92
Choice & WithChoiceId(ChoiceIdT &&value)
Definition Choice.h:47
AWS_WELLARCHITECTED_API Choice(Aws::Utils::Json::JsonView jsonValue)
void SetHelpfulResource(HelpfulResourceT &&value)
Definition Choice.h:94
const Aws::String & GetDescription() const
Definition Choice.h:71
const ChoiceContent & GetHelpfulResource() const
Definition Choice.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue