AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Choice.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/ChoiceContent.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/model/AdditionalResources.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WellArchitected
25{
26namespace Model
27{
28
34 class Choice
35 {
36 public:
37 AWS_WELLARCHITECTED_API Choice();
38 AWS_WELLARCHITECTED_API Choice(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Choice& 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 inline void SetChoiceId(const Aws::String& value) { m_choiceIdHasBeenSet = true; m_choiceId = value; }
48 inline void SetChoiceId(Aws::String&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::move(value); }
49 inline void SetChoiceId(const char* value) { m_choiceIdHasBeenSet = true; m_choiceId.assign(value); }
50 inline Choice& WithChoiceId(const Aws::String& value) { SetChoiceId(value); return *this;}
51 inline Choice& WithChoiceId(Aws::String&& value) { SetChoiceId(std::move(value)); return *this;}
52 inline Choice& WithChoiceId(const char* value) { SetChoiceId(value); return *this;}
54
56
57 inline const Aws::String& GetTitle() const{ return m_title; }
58 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
59 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
60 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
61 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
62 inline Choice& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
63 inline Choice& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
64 inline Choice& WithTitle(const char* value) { SetTitle(value); return *this;}
66
68
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline Choice& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline Choice& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline Choice& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
85 inline const ChoiceContent& GetHelpfulResource() const{ return m_helpfulResource; }
86 inline bool HelpfulResourceHasBeenSet() const { return m_helpfulResourceHasBeenSet; }
87 inline void SetHelpfulResource(const ChoiceContent& value) { m_helpfulResourceHasBeenSet = true; m_helpfulResource = value; }
88 inline void SetHelpfulResource(ChoiceContent&& value) { m_helpfulResourceHasBeenSet = true; m_helpfulResource = std::move(value); }
89 inline Choice& WithHelpfulResource(const ChoiceContent& value) { SetHelpfulResource(value); return *this;}
90 inline Choice& WithHelpfulResource(ChoiceContent&& value) { SetHelpfulResource(std::move(value)); return *this;}
92
94
99 inline const ChoiceContent& GetImprovementPlan() const{ return m_improvementPlan; }
100 inline bool ImprovementPlanHasBeenSet() const { return m_improvementPlanHasBeenSet; }
101 inline void SetImprovementPlan(const ChoiceContent& value) { m_improvementPlanHasBeenSet = true; m_improvementPlan = value; }
102 inline void SetImprovementPlan(ChoiceContent&& value) { m_improvementPlanHasBeenSet = true; m_improvementPlan = std::move(value); }
103 inline Choice& WithImprovementPlan(const ChoiceContent& value) { SetImprovementPlan(value); return *this;}
104 inline Choice& WithImprovementPlan(ChoiceContent&& value) { SetImprovementPlan(std::move(value)); return *this;}
106
108
113 inline const Aws::Vector<AdditionalResources>& GetAdditionalResources() const{ return m_additionalResources; }
114 inline bool AdditionalResourcesHasBeenSet() const { return m_additionalResourcesHasBeenSet; }
115 inline void SetAdditionalResources(const Aws::Vector<AdditionalResources>& value) { m_additionalResourcesHasBeenSet = true; m_additionalResources = value; }
116 inline void SetAdditionalResources(Aws::Vector<AdditionalResources>&& value) { m_additionalResourcesHasBeenSet = true; m_additionalResources = std::move(value); }
119 inline Choice& AddAdditionalResources(const AdditionalResources& value) { m_additionalResourcesHasBeenSet = true; m_additionalResources.push_back(value); return *this; }
120 inline Choice& AddAdditionalResources(AdditionalResources&& value) { m_additionalResourcesHasBeenSet = true; m_additionalResources.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::String m_choiceId;
125 bool m_choiceIdHasBeenSet = false;
126
127 Aws::String m_title;
128 bool m_titleHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 ChoiceContent m_helpfulResource;
134 bool m_helpfulResourceHasBeenSet = false;
135
136 ChoiceContent m_improvementPlan;
137 bool m_improvementPlanHasBeenSet = false;
138
139 Aws::Vector<AdditionalResources> m_additionalResources;
140 bool m_additionalResourcesHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace WellArchitected
145} // namespace Aws
AWS_WELLARCHITECTED_API Choice & operator=(Aws::Utils::Json::JsonView jsonValue)
Choice & WithDescription(const Aws::String &value)
Definition Choice.h:74
void SetHelpfulResource(const ChoiceContent &value)
Definition Choice.h:87
Choice & WithTitle(const char *value)
Definition Choice.h:64
void SetTitle(const Aws::String &value)
Definition Choice.h:59
Choice & AddAdditionalResources(const AdditionalResources &value)
Definition Choice.h:119
const Aws::Vector< AdditionalResources > & GetAdditionalResources() const
Definition Choice.h:113
const Aws::String & GetTitle() const
Definition Choice.h:57
Choice & WithDescription(const char *value)
Definition Choice.h:76
Choice & WithImprovementPlan(ChoiceContent &&value)
Definition Choice.h:104
Choice & WithAdditionalResources(Aws::Vector< AdditionalResources > &&value)
Definition Choice.h:118
Choice & WithAdditionalResources(const Aws::Vector< AdditionalResources > &value)
Definition Choice.h:117
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
Choice & WithTitle(Aws::String &&value)
Definition Choice.h:63
void SetImprovementPlan(ChoiceContent &&value)
Definition Choice.h:102
void SetChoiceId(Aws::String &&value)
Definition Choice.h:48
bool AdditionalResourcesHasBeenSet() const
Definition Choice.h:114
const Aws::String & GetChoiceId() const
Definition Choice.h:45
const ChoiceContent & GetImprovementPlan() const
Definition Choice.h:99
Choice & AddAdditionalResources(AdditionalResources &&value)
Definition Choice.h:120
Choice & WithDescription(Aws::String &&value)
Definition Choice.h:75
Choice & WithChoiceId(const Aws::String &value)
Definition Choice.h:50
Choice & WithChoiceId(Aws::String &&value)
Definition Choice.h:51
void SetImprovementPlan(const ChoiceContent &value)
Definition Choice.h:101
Choice & WithImprovementPlan(const ChoiceContent &value)
Definition Choice.h:103
void SetDescription(const char *value)
Definition Choice.h:73
void SetDescription(const Aws::String &value)
Definition Choice.h:71
void SetDescription(Aws::String &&value)
Definition Choice.h:72
bool HelpfulResourceHasBeenSet() const
Definition Choice.h:86
Choice & WithHelpfulResource(ChoiceContent &&value)
Definition Choice.h:90
void SetChoiceId(const Aws::String &value)
Definition Choice.h:47
Choice & WithHelpfulResource(const ChoiceContent &value)
Definition Choice.h:89
void SetAdditionalResources(Aws::Vector< AdditionalResources > &&value)
Definition Choice.h:116
AWS_WELLARCHITECTED_API Choice(Aws::Utils::Json::JsonView jsonValue)
void SetTitle(const char *value)
Definition Choice.h:61
void SetTitle(Aws::String &&value)
Definition Choice.h:60
void SetChoiceId(const char *value)
Definition Choice.h:49
const Aws::String & GetDescription() const
Definition Choice.h:69
void SetAdditionalResources(const Aws::Vector< AdditionalResources > &value)
Definition Choice.h:115
Choice & WithTitle(const Aws::String &value)
Definition Choice.h:62
const ChoiceContent & GetHelpfulResource() const
Definition Choice.h:85
Choice & WithChoiceId(const char *value)
Definition Choice.h:52
void SetHelpfulResource(ChoiceContent &&value)
Definition Choice.h:88
AWS_WELLARCHITECTED_API Choice()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue