AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyFpgaImageAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/FpgaImageAttributeName.h>
11#include <aws/ec2/model/OperationType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/LoadPermissionModifications.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyFpgaImageAttribute"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline ModifyFpgaImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::String& GetFpgaImageId() const{ return m_fpgaImageId; }
61 inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; }
62 inline void SetFpgaImageId(const Aws::String& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = value; }
63 inline void SetFpgaImageId(Aws::String&& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = std::move(value); }
64 inline void SetFpgaImageId(const char* value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId.assign(value); }
65 inline ModifyFpgaImageAttributeRequest& WithFpgaImageId(const Aws::String& value) { SetFpgaImageId(value); return *this;}
66 inline ModifyFpgaImageAttributeRequest& WithFpgaImageId(Aws::String&& value) { SetFpgaImageId(std::move(value)); return *this;}
67 inline ModifyFpgaImageAttributeRequest& WithFpgaImageId(const char* value) { SetFpgaImageId(value); return *this;}
69
71
74 inline const FpgaImageAttributeName& GetAttribute() const{ return m_attribute; }
75 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
76 inline void SetAttribute(const FpgaImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
77 inline void SetAttribute(FpgaImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
79 inline ModifyFpgaImageAttributeRequest& WithAttribute(FpgaImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
81
83
86 inline const OperationType& GetOperationType() const{ return m_operationType; }
87 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
88 inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
89 inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
91 inline ModifyFpgaImageAttributeRequest& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;}
93
95
99 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
100 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
101 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
102 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
104 inline ModifyFpgaImageAttributeRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
105 inline ModifyFpgaImageAttributeRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
106 inline ModifyFpgaImageAttributeRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
107 inline ModifyFpgaImageAttributeRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
109
111
115 inline const Aws::Vector<Aws::String>& GetUserGroups() const{ return m_userGroups; }
116 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
117 inline void SetUserGroups(const Aws::Vector<Aws::String>& value) { m_userGroupsHasBeenSet = true; m_userGroups = value; }
118 inline void SetUserGroups(Aws::Vector<Aws::String>&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::move(value); }
121 inline ModifyFpgaImageAttributeRequest& AddUserGroups(const Aws::String& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
122 inline ModifyFpgaImageAttributeRequest& AddUserGroups(Aws::String&& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(std::move(value)); return *this; }
123 inline ModifyFpgaImageAttributeRequest& AddUserGroups(const char* value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
125
127
132 inline const Aws::Vector<Aws::String>& GetProductCodes() const{ return m_productCodes; }
133 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
134 inline void SetProductCodes(const Aws::Vector<Aws::String>& value) { m_productCodesHasBeenSet = true; m_productCodes = value; }
135 inline void SetProductCodes(Aws::Vector<Aws::String>&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::move(value); }
138 inline ModifyFpgaImageAttributeRequest& AddProductCodes(const Aws::String& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; }
139 inline ModifyFpgaImageAttributeRequest& AddProductCodes(Aws::String&& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(std::move(value)); return *this; }
140 inline ModifyFpgaImageAttributeRequest& AddProductCodes(const char* value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; }
142
144
147 inline const LoadPermissionModifications& GetLoadPermission() const{ return m_loadPermission; }
148 inline bool LoadPermissionHasBeenSet() const { return m_loadPermissionHasBeenSet; }
149 inline void SetLoadPermission(const LoadPermissionModifications& value) { m_loadPermissionHasBeenSet = true; m_loadPermission = value; }
150 inline void SetLoadPermission(LoadPermissionModifications&& value) { m_loadPermissionHasBeenSet = true; m_loadPermission = std::move(value); }
154
156
159 inline const Aws::String& GetDescription() const{ return m_description; }
160 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
161 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
162 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
163 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
164 inline ModifyFpgaImageAttributeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
165 inline ModifyFpgaImageAttributeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
166 inline ModifyFpgaImageAttributeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
168
170
173 inline const Aws::String& GetName() const{ return m_name; }
174 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
175 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
176 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
177 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
178 inline ModifyFpgaImageAttributeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
179 inline ModifyFpgaImageAttributeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
180 inline ModifyFpgaImageAttributeRequest& WithName(const char* value) { SetName(value); return *this;}
182 private:
183
184 bool m_dryRun;
185 bool m_dryRunHasBeenSet = false;
186
187 Aws::String m_fpgaImageId;
188 bool m_fpgaImageIdHasBeenSet = false;
189
190 FpgaImageAttributeName m_attribute;
191 bool m_attributeHasBeenSet = false;
192
193 OperationType m_operationType;
194 bool m_operationTypeHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_userIds;
197 bool m_userIdsHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_userGroups;
200 bool m_userGroupsHasBeenSet = false;
201
202 Aws::Vector<Aws::String> m_productCodes;
203 bool m_productCodesHasBeenSet = false;
204
205 LoadPermissionModifications m_loadPermission;
206 bool m_loadPermissionHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace EC2
217} // namespace Aws
ModifyFpgaImageAttributeRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
ModifyFpgaImageAttributeRequest & WithDescription(Aws::String &&value)
ModifyFpgaImageAttributeRequest & WithUserGroups(Aws::Vector< Aws::String > &&value)
ModifyFpgaImageAttributeRequest & WithName(const Aws::String &value)
ModifyFpgaImageAttributeRequest & WithAttribute(FpgaImageAttributeName &&value)
ModifyFpgaImageAttributeRequest & AddUserGroups(const Aws::String &value)
ModifyFpgaImageAttributeRequest & WithFpgaImageId(const Aws::String &value)
ModifyFpgaImageAttributeRequest & WithDryRun(bool value)
void SetLoadPermission(const LoadPermissionModifications &value)
const Aws::Vector< Aws::String > & GetUserGroups() const
const Aws::Vector< Aws::String > & GetUserIds() const
ModifyFpgaImageAttributeRequest & WithOperationType(const OperationType &value)
const Aws::Vector< Aws::String > & GetProductCodes() const
ModifyFpgaImageAttributeRequest & WithOperationType(OperationType &&value)
void SetUserGroups(const Aws::Vector< Aws::String > &value)
ModifyFpgaImageAttributeRequest & AddProductCodes(Aws::String &&value)
ModifyFpgaImageAttributeRequest & WithAttribute(const FpgaImageAttributeName &value)
ModifyFpgaImageAttributeRequest & AddUserIds(Aws::String &&value)
ModifyFpgaImageAttributeRequest & WithFpgaImageId(Aws::String &&value)
ModifyFpgaImageAttributeRequest & WithLoadPermission(const LoadPermissionModifications &value)
void SetProductCodes(const Aws::Vector< Aws::String > &value)
const LoadPermissionModifications & GetLoadPermission() const
ModifyFpgaImageAttributeRequest & WithUserGroups(const Aws::Vector< Aws::String > &value)
ModifyFpgaImageAttributeRequest & WithProductCodes(const Aws::Vector< Aws::String > &value)
ModifyFpgaImageAttributeRequest & WithName(const char *value)
ModifyFpgaImageAttributeRequest & WithDescription(const char *value)
ModifyFpgaImageAttributeRequest & WithLoadPermission(LoadPermissionModifications &&value)
ModifyFpgaImageAttributeRequest & WithDescription(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyFpgaImageAttributeRequest & AddUserGroups(const char *value)
ModifyFpgaImageAttributeRequest & AddUserIds(const char *value)
ModifyFpgaImageAttributeRequest & AddProductCodes(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyFpgaImageAttributeRequest & AddProductCodes(const char *value)
ModifyFpgaImageAttributeRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
ModifyFpgaImageAttributeRequest & WithFpgaImageId(const char *value)
ModifyFpgaImageAttributeRequest & WithName(Aws::String &&value)
void SetLoadPermission(LoadPermissionModifications &&value)
ModifyFpgaImageAttributeRequest & WithProductCodes(Aws::Vector< Aws::String > &&value)
ModifyFpgaImageAttributeRequest & AddUserIds(const Aws::String &value)
ModifyFpgaImageAttributeRequest & AddUserGroups(Aws::String &&value)
void SetUserIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector