AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 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 Choice& WithChoiceId(ChoiceIdT&& value) { SetChoiceId(std::forward<ChoiceIdT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
59 template<typename TitleT = Aws::String>
60 Choice& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
62
64
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 Choice& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
79 inline const ChoiceContent& GetHelpfulResource() const { return m_helpfulResource; }
80 inline bool HelpfulResourceHasBeenSet() const { return m_helpfulResourceHasBeenSet; }
81 template<typename HelpfulResourceT = ChoiceContent>
82 void SetHelpfulResource(HelpfulResourceT&& value) { m_helpfulResourceHasBeenSet = true; m_helpfulResource = std::forward<HelpfulResourceT>(value); }
83 template<typename HelpfulResourceT = ChoiceContent>
84 Choice& WithHelpfulResource(HelpfulResourceT&& value) { SetHelpfulResource(std::forward<HelpfulResourceT>(value)); return *this;}
86
88
93 inline const ChoiceContent& GetImprovementPlan() const { return m_improvementPlan; }
94 inline bool ImprovementPlanHasBeenSet() const { return m_improvementPlanHasBeenSet; }
95 template<typename ImprovementPlanT = ChoiceContent>
96 void SetImprovementPlan(ImprovementPlanT&& value) { m_improvementPlanHasBeenSet = true; m_improvementPlan = std::forward<ImprovementPlanT>(value); }
97 template<typename ImprovementPlanT = ChoiceContent>
98 Choice& WithImprovementPlan(ImprovementPlanT&& value) { SetImprovementPlan(std::forward<ImprovementPlanT>(value)); return *this;}
100
102
107 inline const Aws::Vector<AdditionalResources>& GetAdditionalResources() const { return m_additionalResources; }
108 inline bool AdditionalResourcesHasBeenSet() const { return m_additionalResourcesHasBeenSet; }
109 template<typename AdditionalResourcesT = Aws::Vector<AdditionalResources>>
110 void SetAdditionalResources(AdditionalResourcesT&& value) { m_additionalResourcesHasBeenSet = true; m_additionalResources = std::forward<AdditionalResourcesT>(value); }
111 template<typename AdditionalResourcesT = Aws::Vector<AdditionalResources>>
112 Choice& WithAdditionalResources(AdditionalResourcesT&& value) { SetAdditionalResources(std::forward<AdditionalResourcesT>(value)); return *this;}
113 template<typename AdditionalResourcesT = AdditionalResources>
114 Choice& AddAdditionalResources(AdditionalResourcesT&& value) { m_additionalResourcesHasBeenSet = true; m_additionalResources.emplace_back(std::forward<AdditionalResourcesT>(value)); return *this; }
116 private:
117
118 Aws::String m_choiceId;
119 bool m_choiceIdHasBeenSet = false;
120
121 Aws::String m_title;
122 bool m_titleHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 ChoiceContent m_helpfulResource;
128 bool m_helpfulResourceHasBeenSet = false;
129
130 ChoiceContent m_improvementPlan;
131 bool m_improvementPlanHasBeenSet = false;
132
133 Aws::Vector<AdditionalResources> m_additionalResources;
134 bool m_additionalResourcesHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace WellArchitected
139} // namespace Aws
void SetChoiceId(ChoiceIdT &&value)
Definition Choice.h:48
AWS_WELLARCHITECTED_API Choice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Choice()=default
const Aws::Vector< AdditionalResources > & GetAdditionalResources() const
Definition Choice.h:107
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:112
void SetImprovementPlan(ImprovementPlanT &&value)
Definition Choice.h:96
Choice & WithHelpfulResource(HelpfulResourceT &&value)
Definition Choice.h:84
bool AdditionalResourcesHasBeenSet() const
Definition Choice.h:108
void SetTitle(TitleT &&value)
Definition Choice.h:58
const Aws::String & GetChoiceId() const
Definition Choice.h:45
const ChoiceContent & GetImprovementPlan() const
Definition Choice.h:93
Choice & WithTitle(TitleT &&value)
Definition Choice.h:60
void SetDescription(DescriptionT &&value)
Definition Choice.h:68
Choice & WithImprovementPlan(ImprovementPlanT &&value)
Definition Choice.h:98
Choice & WithDescription(DescriptionT &&value)
Definition Choice.h:70
Choice & AddAdditionalResources(AdditionalResourcesT &&value)
Definition Choice.h:114
void SetAdditionalResources(AdditionalResourcesT &&value)
Definition Choice.h:110
bool ImprovementPlanHasBeenSet() const
Definition Choice.h:94
bool HelpfulResourceHasBeenSet() const
Definition Choice.h:80
Choice & WithChoiceId(ChoiceIdT &&value)
Definition Choice.h:50
AWS_WELLARCHITECTED_API Choice(Aws::Utils::Json::JsonView jsonValue)
void SetHelpfulResource(HelpfulResourceT &&value)
Definition Choice.h:82
const Aws::String & GetDescription() const
Definition Choice.h:65
const ChoiceContent & GetHelpfulResource() const
Definition Choice.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue