AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ModifyFpgaImageAttributeRequest.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/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/FpgaImageAttributeName.h>
12#include <aws/ec2/model/LoadPermissionModifications.h>
13#include <aws/ec2/model/OperationType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EC2 {
19namespace Model {
20
24 public:
25 AWS_EC2_API ModifyFpgaImageAttributeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyFpgaImageAttribute"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
53 SetDryRun(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFpgaImageId() const { return m_fpgaImageId; }
63 inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; }
64 template <typename FpgaImageIdT = Aws::String>
65 void SetFpgaImageId(FpgaImageIdT&& value) {
66 m_fpgaImageIdHasBeenSet = true;
67 m_fpgaImageId = std::forward<FpgaImageIdT>(value);
68 }
69 template <typename FpgaImageIdT = Aws::String>
71 SetFpgaImageId(std::forward<FpgaImageIdT>(value));
72 return *this;
73 }
75
77
80 inline FpgaImageAttributeName GetAttribute() const { return m_attribute; }
81 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
83 m_attributeHasBeenSet = true;
84 m_attribute = value;
85 }
87 SetAttribute(value);
88 return *this;
89 }
91
93
96 inline OperationType GetOperationType() const { return m_operationType; }
97 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
98 inline void SetOperationType(OperationType value) {
99 m_operationTypeHasBeenSet = true;
100 m_operationType = value;
101 }
103 SetOperationType(value);
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
114 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
115 template <typename UserIdsT = Aws::Vector<Aws::String>>
116 void SetUserIds(UserIdsT&& value) {
117 m_userIdsHasBeenSet = true;
118 m_userIds = std::forward<UserIdsT>(value);
119 }
120 template <typename UserIdsT = Aws::Vector<Aws::String>>
122 SetUserIds(std::forward<UserIdsT>(value));
123 return *this;
124 }
125 template <typename UserIdsT = Aws::String>
127 m_userIdsHasBeenSet = true;
128 m_userIds.emplace_back(std::forward<UserIdsT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Vector<Aws::String>& GetUserGroups() const { return m_userGroups; }
139 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
140 template <typename UserGroupsT = Aws::Vector<Aws::String>>
141 void SetUserGroups(UserGroupsT&& value) {
142 m_userGroupsHasBeenSet = true;
143 m_userGroups = std::forward<UserGroupsT>(value);
144 }
145 template <typename UserGroupsT = Aws::Vector<Aws::String>>
147 SetUserGroups(std::forward<UserGroupsT>(value));
148 return *this;
149 }
150 template <typename UserGroupsT = Aws::String>
152 m_userGroupsHasBeenSet = true;
153 m_userGroups.emplace_back(std::forward<UserGroupsT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::Vector<Aws::String>& GetProductCodes() const { return m_productCodes; }
165 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
166 template <typename ProductCodesT = Aws::Vector<Aws::String>>
167 void SetProductCodes(ProductCodesT&& value) {
168 m_productCodesHasBeenSet = true;
169 m_productCodes = std::forward<ProductCodesT>(value);
170 }
171 template <typename ProductCodesT = Aws::Vector<Aws::String>>
173 SetProductCodes(std::forward<ProductCodesT>(value));
174 return *this;
175 }
176 template <typename ProductCodesT = Aws::String>
178 m_productCodesHasBeenSet = true;
179 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
180 return *this;
181 }
183
185
188 inline const LoadPermissionModifications& GetLoadPermission() const { return m_loadPermission; }
189 inline bool LoadPermissionHasBeenSet() const { return m_loadPermissionHasBeenSet; }
190 template <typename LoadPermissionT = LoadPermissionModifications>
191 void SetLoadPermission(LoadPermissionT&& value) {
192 m_loadPermissionHasBeenSet = true;
193 m_loadPermission = std::forward<LoadPermissionT>(value);
194 }
195 template <typename LoadPermissionT = LoadPermissionModifications>
197 SetLoadPermission(std::forward<LoadPermissionT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetDescription() const { return m_description; }
207 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
208 template <typename DescriptionT = Aws::String>
209 void SetDescription(DescriptionT&& value) {
210 m_descriptionHasBeenSet = true;
211 m_description = std::forward<DescriptionT>(value);
212 }
213 template <typename DescriptionT = Aws::String>
215 SetDescription(std::forward<DescriptionT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetName() const { return m_name; }
225 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
226 template <typename NameT = Aws::String>
227 void SetName(NameT&& value) {
228 m_nameHasBeenSet = true;
229 m_name = std::forward<NameT>(value);
230 }
231 template <typename NameT = Aws::String>
233 SetName(std::forward<NameT>(value));
234 return *this;
235 }
237 private:
238 bool m_dryRun{false};
239
240 Aws::String m_fpgaImageId;
241
243
244 OperationType m_operationType{OperationType::NOT_SET};
245
246 Aws::Vector<Aws::String> m_userIds;
247
248 Aws::Vector<Aws::String> m_userGroups;
249
250 Aws::Vector<Aws::String> m_productCodes;
251
252 LoadPermissionModifications m_loadPermission;
253
254 Aws::String m_description;
255
256 Aws::String m_name;
257 bool m_dryRunHasBeenSet = false;
258 bool m_fpgaImageIdHasBeenSet = false;
259 bool m_attributeHasBeenSet = false;
260 bool m_operationTypeHasBeenSet = false;
261 bool m_userIdsHasBeenSet = false;
262 bool m_userGroupsHasBeenSet = false;
263 bool m_productCodesHasBeenSet = false;
264 bool m_loadPermissionHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_nameHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace EC2
271} // namespace Aws
ModifyFpgaImageAttributeRequest & WithOperationType(OperationType value)
ModifyFpgaImageAttributeRequest & WithDryRun(bool value)
ModifyFpgaImageAttributeRequest & WithUserIds(UserIdsT &&value)
ModifyFpgaImageAttributeRequest & WithFpgaImageId(FpgaImageIdT &&value)
const Aws::Vector< Aws::String > & GetUserGroups() const
const Aws::Vector< Aws::String > & GetProductCodes() const
ModifyFpgaImageAttributeRequest & WithName(NameT &&value)
const LoadPermissionModifications & GetLoadPermission() const
ModifyFpgaImageAttributeRequest & AddProductCodes(ProductCodesT &&value)
ModifyFpgaImageAttributeRequest & AddUserIds(UserIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyFpgaImageAttributeRequest & WithProductCodes(ProductCodesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyFpgaImageAttributeRequest & WithDescription(DescriptionT &&value)
ModifyFpgaImageAttributeRequest & WithAttribute(FpgaImageAttributeName value)
ModifyFpgaImageAttributeRequest & WithUserGroups(UserGroupsT &&value)
ModifyFpgaImageAttributeRequest & WithLoadPermission(LoadPermissionT &&value)
ModifyFpgaImageAttributeRequest & AddUserGroups(UserGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector