AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DeploymentSpecificationsField.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/launch-wizard/LaunchWizard_EXPORTS.h>
10#include <aws/launch-wizard/model/DeploymentConditionalField.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LaunchWizard {
22namespace Model {
23
31 public:
32 AWS_LAUNCHWIZARD_API DeploymentSpecificationsField() = default;
35 AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
78 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
79 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
80 void SetAllowedValues(AllowedValuesT&& value) {
81 m_allowedValuesHasBeenSet = true;
82 m_allowedValues = std::forward<AllowedValuesT>(value);
83 }
84 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
86 SetAllowedValues(std::forward<AllowedValuesT>(value));
87 return *this;
88 }
89 template <typename AllowedValuesT = Aws::String>
91 m_allowedValuesHasBeenSet = true;
92 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetRequired() const { return m_required; }
102 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
103 template <typename RequiredT = Aws::String>
104 void SetRequired(RequiredT&& value) {
105 m_requiredHasBeenSet = true;
106 m_required = std::forward<RequiredT>(value);
107 }
108 template <typename RequiredT = Aws::String>
110 SetRequired(std::forward<RequiredT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<DeploymentConditionalField>& GetConditionals() const { return m_conditionals; }
120 inline bool ConditionalsHasBeenSet() const { return m_conditionalsHasBeenSet; }
121 template <typename ConditionalsT = Aws::Vector<DeploymentConditionalField>>
122 void SetConditionals(ConditionalsT&& value) {
123 m_conditionalsHasBeenSet = true;
124 m_conditionals = std::forward<ConditionalsT>(value);
125 }
126 template <typename ConditionalsT = Aws::Vector<DeploymentConditionalField>>
128 SetConditionals(std::forward<ConditionalsT>(value));
129 return *this;
130 }
131 template <typename ConditionalsT = DeploymentConditionalField>
133 m_conditionalsHasBeenSet = true;
134 m_conditionals.emplace_back(std::forward<ConditionalsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_name;
140
141 Aws::String m_description;
142
143 Aws::Vector<Aws::String> m_allowedValues;
144
145 Aws::String m_required;
146
148 bool m_nameHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_allowedValuesHasBeenSet = false;
151 bool m_requiredHasBeenSet = false;
152 bool m_conditionalsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace LaunchWizard
157} // namespace Aws
DeploymentSpecificationsField & WithAllowedValues(AllowedValuesT &&value)
DeploymentSpecificationsField & WithRequired(RequiredT &&value)
DeploymentSpecificationsField & WithName(NameT &&value)
AWS_LAUNCHWIZARD_API DeploymentSpecificationsField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAUNCHWIZARD_API DeploymentSpecificationsField()=default
DeploymentSpecificationsField & AddConditionals(ConditionalsT &&value)
AWS_LAUNCHWIZARD_API DeploymentSpecificationsField(Aws::Utils::Json::JsonView jsonValue)
DeploymentSpecificationsField & AddAllowedValues(AllowedValuesT &&value)
const Aws::Vector< DeploymentConditionalField > & GetConditionals() const
DeploymentSpecificationsField & WithConditionals(ConditionalsT &&value)
DeploymentSpecificationsField & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue