AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
28 AWS_EC2_API ModifyFpgaImageAttributeRequest() = default;
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 template<typename FpgaImageIdT = Aws::String>
63 void SetFpgaImageId(FpgaImageIdT&& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = std::forward<FpgaImageIdT>(value); }
64 template<typename FpgaImageIdT = Aws::String>
65 ModifyFpgaImageAttributeRequest& WithFpgaImageId(FpgaImageIdT&& value) { SetFpgaImageId(std::forward<FpgaImageIdT>(value)); return *this;}
67
69
72 inline FpgaImageAttributeName GetAttribute() const { return m_attribute; }
73 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
74 inline void SetAttribute(FpgaImageAttributeName value) { m_attributeHasBeenSet = true; m_attribute = value; }
77
79
82 inline OperationType GetOperationType() const { return m_operationType; }
83 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
84 inline void SetOperationType(OperationType value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
87
89
93 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
94 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
95 template<typename UserIdsT = Aws::Vector<Aws::String>>
96 void SetUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds = std::forward<UserIdsT>(value); }
97 template<typename UserIdsT = Aws::Vector<Aws::String>>
98 ModifyFpgaImageAttributeRequest& WithUserIds(UserIdsT&& value) { SetUserIds(std::forward<UserIdsT>(value)); return *this;}
99 template<typename UserIdsT = Aws::String>
100 ModifyFpgaImageAttributeRequest& AddUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds.emplace_back(std::forward<UserIdsT>(value)); return *this; }
102
104
108 inline const Aws::Vector<Aws::String>& GetUserGroups() const { return m_userGroups; }
109 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
110 template<typename UserGroupsT = Aws::Vector<Aws::String>>
111 void SetUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::forward<UserGroupsT>(value); }
112 template<typename UserGroupsT = Aws::Vector<Aws::String>>
113 ModifyFpgaImageAttributeRequest& WithUserGroups(UserGroupsT&& value) { SetUserGroups(std::forward<UserGroupsT>(value)); return *this;}
114 template<typename UserGroupsT = Aws::String>
115 ModifyFpgaImageAttributeRequest& AddUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups.emplace_back(std::forward<UserGroupsT>(value)); return *this; }
117
119
124 inline const Aws::Vector<Aws::String>& GetProductCodes() const { return m_productCodes; }
125 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
126 template<typename ProductCodesT = Aws::Vector<Aws::String>>
127 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::forward<ProductCodesT>(value); }
128 template<typename ProductCodesT = Aws::Vector<Aws::String>>
129 ModifyFpgaImageAttributeRequest& WithProductCodes(ProductCodesT&& value) { SetProductCodes(std::forward<ProductCodesT>(value)); return *this;}
130 template<typename ProductCodesT = Aws::String>
131 ModifyFpgaImageAttributeRequest& AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value)); return *this; }
133
135
138 inline const LoadPermissionModifications& GetLoadPermission() const { return m_loadPermission; }
139 inline bool LoadPermissionHasBeenSet() const { return m_loadPermissionHasBeenSet; }
140 template<typename LoadPermissionT = LoadPermissionModifications>
141 void SetLoadPermission(LoadPermissionT&& value) { m_loadPermissionHasBeenSet = true; m_loadPermission = std::forward<LoadPermissionT>(value); }
142 template<typename LoadPermissionT = LoadPermissionModifications>
143 ModifyFpgaImageAttributeRequest& WithLoadPermission(LoadPermissionT&& value) { SetLoadPermission(std::forward<LoadPermissionT>(value)); return *this;}
145
147
150 inline const Aws::String& GetDescription() const { return m_description; }
151 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
152 template<typename DescriptionT = Aws::String>
153 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
154 template<typename DescriptionT = Aws::String>
155 ModifyFpgaImageAttributeRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
157
159
162 inline const Aws::String& GetName() const { return m_name; }
163 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
164 template<typename NameT = Aws::String>
165 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
166 template<typename NameT = Aws::String>
167 ModifyFpgaImageAttributeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
169 private:
170
171 bool m_dryRun{false};
172 bool m_dryRunHasBeenSet = false;
173
174 Aws::String m_fpgaImageId;
175 bool m_fpgaImageIdHasBeenSet = false;
176
178 bool m_attributeHasBeenSet = false;
179
180 OperationType m_operationType{OperationType::NOT_SET};
181 bool m_operationTypeHasBeenSet = false;
182
183 Aws::Vector<Aws::String> m_userIds;
184 bool m_userIdsHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_userGroups;
187 bool m_userGroupsHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_productCodes;
190 bool m_productCodesHasBeenSet = false;
191
192 LoadPermissionModifications m_loadPermission;
193 bool m_loadPermissionHasBeenSet = false;
194
195 Aws::String m_description;
196 bool m_descriptionHasBeenSet = false;
197
198 Aws::String m_name;
199 bool m_nameHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace EC2
204} // 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 > & GetUserIds() 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