AWS SDK for C++  1.9.129
AWS SDK for C++
CreateFpgaImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateFpgaImage"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline CreateFpgaImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
79  inline const StorageLocation& GetInputStorageLocation() const{ return m_inputStorageLocation; }
80 
85  inline bool InputStorageLocationHasBeenSet() const { return m_inputStorageLocationHasBeenSet; }
86 
91  inline void SetInputStorageLocation(const StorageLocation& value) { m_inputStorageLocationHasBeenSet = true; m_inputStorageLocation = value; }
92 
97  inline void SetInputStorageLocation(StorageLocation&& value) { m_inputStorageLocationHasBeenSet = true; m_inputStorageLocation = std::move(value); }
98 
103  inline CreateFpgaImageRequest& WithInputStorageLocation(const StorageLocation& value) { SetInputStorageLocation(value); return *this;}
104 
109  inline CreateFpgaImageRequest& WithInputStorageLocation(StorageLocation&& value) { SetInputStorageLocation(std::move(value)); return *this;}
110 
111 
115  inline const StorageLocation& GetLogsStorageLocation() const{ return m_logsStorageLocation; }
116 
120  inline bool LogsStorageLocationHasBeenSet() const { return m_logsStorageLocationHasBeenSet; }
121 
125  inline void SetLogsStorageLocation(const StorageLocation& value) { m_logsStorageLocationHasBeenSet = true; m_logsStorageLocation = value; }
126 
130  inline void SetLogsStorageLocation(StorageLocation&& value) { m_logsStorageLocationHasBeenSet = true; m_logsStorageLocation = std::move(value); }
131 
135  inline CreateFpgaImageRequest& WithLogsStorageLocation(const StorageLocation& value) { SetLogsStorageLocation(value); return *this;}
136 
140  inline CreateFpgaImageRequest& WithLogsStorageLocation(StorageLocation&& value) { SetLogsStorageLocation(std::move(value)); return *this;}
141 
142 
146  inline const Aws::String& GetDescription() const{ return m_description; }
147 
151  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
152 
156  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
157 
161  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
162 
166  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
167 
171  inline CreateFpgaImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
172 
176  inline CreateFpgaImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
177 
181  inline CreateFpgaImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
182 
183 
187  inline const Aws::String& GetName() const{ return m_name; }
188 
192  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
193 
197  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
198 
202  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
203 
207  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
208 
212  inline CreateFpgaImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
213 
217  inline CreateFpgaImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
218 
222  inline CreateFpgaImageRequest& WithName(const char* value) { SetName(value); return *this;}
223 
224 
231  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
232 
239  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
240 
247  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
248 
255  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
256 
263  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
264 
271  inline CreateFpgaImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
272 
279  inline CreateFpgaImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
280 
287  inline CreateFpgaImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
288 
289 
293  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
294 
298  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
299 
303  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
304 
308  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
309 
313  inline CreateFpgaImageRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
314 
318  inline CreateFpgaImageRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
319 
323  inline CreateFpgaImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
324 
328  inline CreateFpgaImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
329 
330  private:
331 
332  bool m_dryRun;
333  bool m_dryRunHasBeenSet;
334 
335  StorageLocation m_inputStorageLocation;
336  bool m_inputStorageLocationHasBeenSet;
337 
338  StorageLocation m_logsStorageLocation;
339  bool m_logsStorageLocationHasBeenSet;
340 
341  Aws::String m_description;
342  bool m_descriptionHasBeenSet;
343 
344  Aws::String m_name;
345  bool m_nameHasBeenSet;
346 
347  Aws::String m_clientToken;
348  bool m_clientTokenHasBeenSet;
349 
350  Aws::Vector<TagSpecification> m_tagSpecifications;
351  bool m_tagSpecificationsHasBeenSet;
352  };
353 
354 } // namespace Model
355 } // namespace EC2
356 } // namespace Aws
Aws::EC2::Model::CreateFpgaImageRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateFpgaImageRequest.h:192
Aws::EC2::Model::CreateFpgaImageRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateFpgaImageRequest.h:151
TagSpecification.h
Aws::EC2::Model::CreateFpgaImageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateFpgaImageRequest::WithDryRun
CreateFpgaImageRequest & WithDryRun(bool value)
Definition: CreateFpgaImageRequest.h:72
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateFpgaImageRequest::WithLogsStorageLocation
CreateFpgaImageRequest & WithLogsStorageLocation(const StorageLocation &value)
Definition: CreateFpgaImageRequest.h:135
Aws::EC2::Model::CreateFpgaImageRequest::WithClientToken
CreateFpgaImageRequest & WithClientToken(const char *value)
Definition: CreateFpgaImageRequest.h:287
Aws::EC2::Model::CreateFpgaImageRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateFpgaImageRequest.h:197
Aws::EC2::Model::CreateFpgaImageRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateFpgaImageRequest.h:166
Aws::EC2::Model::CreateFpgaImageRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateFpgaImageRequest.h:303
Aws::EC2::Model::CreateFpgaImageRequest::WithName
CreateFpgaImageRequest & WithName(const Aws::String &value)
Definition: CreateFpgaImageRequest.h:212
Aws::EC2::Model::CreateFpgaImageRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateFpgaImageRequest.h:298
Aws::EC2::Model::CreateFpgaImageRequest::WithName
CreateFpgaImageRequest & WithName(Aws::String &&value)
Definition: CreateFpgaImageRequest.h:217
Aws::EC2::Model::CreateFpgaImageRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateFpgaImageRequest.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateFpgaImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFpgaImageRequest.h:33
Aws::EC2::Model::CreateFpgaImageRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateFpgaImageRequest.h:202
Aws::EC2::Model::CreateFpgaImageRequest::InputStorageLocationHasBeenSet
bool InputStorageLocationHasBeenSet() const
Definition: CreateFpgaImageRequest.h:85
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateFpgaImageRequest::SetName
void SetName(const char *value)
Definition: CreateFpgaImageRequest.h:207
Aws::EC2::Model::CreateFpgaImageRequest::SetInputStorageLocation
void SetInputStorageLocation(const StorageLocation &value)
Definition: CreateFpgaImageRequest.h:91
Aws::EC2::Model::CreateFpgaImageRequest::LogsStorageLocationHasBeenSet
bool LogsStorageLocationHasBeenSet() const
Definition: CreateFpgaImageRequest.h:120
AWSVector.h
Aws::EC2::Model::CreateFpgaImageRequest::GetInputStorageLocation
const StorageLocation & GetInputStorageLocation() const
Definition: CreateFpgaImageRequest.h:79
Aws::EC2::Model::CreateFpgaImageRequest::WithTagSpecifications
CreateFpgaImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateFpgaImageRequest.h:318
Aws::EC2::Model::CreateFpgaImageRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateFpgaImageRequest.h:308
Aws::EC2::Model::CreateFpgaImageRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateFpgaImageRequest.h:247
Aws::EC2::Model::CreateFpgaImageRequest::SetLogsStorageLocation
void SetLogsStorageLocation(StorageLocation &&value)
Definition: CreateFpgaImageRequest.h:130
Aws::EC2::Model::CreateFpgaImageRequest::WithName
CreateFpgaImageRequest & WithName(const char *value)
Definition: CreateFpgaImageRequest.h:222
Aws::EC2::Model::CreateFpgaImageRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateFpgaImageRequest.h:255
Aws::EC2::Model::CreateFpgaImageRequest::SetLogsStorageLocation
void SetLogsStorageLocation(const StorageLocation &value)
Definition: CreateFpgaImageRequest.h:125
Aws::EC2::Model::CreateFpgaImageRequest::SetInputStorageLocation
void SetInputStorageLocation(StorageLocation &&value)
Definition: CreateFpgaImageRequest.h:97
Aws::EC2::Model::CreateFpgaImageRequest::WithClientToken
CreateFpgaImageRequest & WithClientToken(Aws::String &&value)
Definition: CreateFpgaImageRequest.h:279
Aws::EC2::Model::CreateFpgaImageRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateFpgaImageRequest.h:161
Aws::EC2::Model::CreateFpgaImageRequest::WithTagSpecifications
CreateFpgaImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateFpgaImageRequest.h:313
EC2Request.h
Aws::EC2::Model::CreateFpgaImageRequest::WithClientToken
CreateFpgaImageRequest & WithClientToken(const Aws::String &value)
Definition: CreateFpgaImageRequest.h:271
Aws::EC2::Model::CreateFpgaImageRequest::AddTagSpecifications
CreateFpgaImageRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateFpgaImageRequest.h:323
Aws::EC2::Model::CreateFpgaImageRequest::CreateFpgaImageRequest
CreateFpgaImageRequest()
Aws::EC2::Model::CreateFpgaImageRequest::WithDescription
CreateFpgaImageRequest & WithDescription(Aws::String &&value)
Definition: CreateFpgaImageRequest.h:176
AWSString.h
StorageLocation.h
Aws::EC2::Model::CreateFpgaImageRequest::GetName
const Aws::String & GetName() const
Definition: CreateFpgaImageRequest.h:187
Aws::EC2::Model::CreateFpgaImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::StorageLocation
Definition: StorageLocation.h:32
Aws::EC2::Model::CreateFpgaImageRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateFpgaImageRequest.h:146
Aws::EC2::Model::CreateFpgaImageRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateFpgaImageRequest.h:231
Aws::EC2::Model::CreateFpgaImageRequest::GetDryRun
bool GetDryRun() const
Definition: CreateFpgaImageRequest.h:48
Aws::EC2::Model::CreateFpgaImageRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateFpgaImageRequest.h:64
Aws::EC2::Model::CreateFpgaImageRequest::WithLogsStorageLocation
CreateFpgaImageRequest & WithLogsStorageLocation(StorageLocation &&value)
Definition: CreateFpgaImageRequest.h:140
Aws::EC2::Model::CreateFpgaImageRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateFpgaImageRequest.h:263
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateFpgaImageRequest::WithInputStorageLocation
CreateFpgaImageRequest & WithInputStorageLocation(StorageLocation &&value)
Definition: CreateFpgaImageRequest.h:109
Aws::EC2::Model::CreateFpgaImageRequest::GetLogsStorageLocation
const StorageLocation & GetLogsStorageLocation() const
Definition: CreateFpgaImageRequest.h:115
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateFpgaImageRequest::WithDescription
CreateFpgaImageRequest & WithDescription(const Aws::String &value)
Definition: CreateFpgaImageRequest.h:171
Aws::EC2::Model::CreateFpgaImageRequest::AddTagSpecifications
CreateFpgaImageRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateFpgaImageRequest.h:328
Aws::EC2::Model::CreateFpgaImageRequest::WithInputStorageLocation
CreateFpgaImageRequest & WithInputStorageLocation(const StorageLocation &value)
Definition: CreateFpgaImageRequest.h:103
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateFpgaImageRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateFpgaImageRequest.h:239
Aws::EC2::Model::CreateFpgaImageRequest
Definition: CreateFpgaImageRequest.h:25
Aws::EC2::Model::CreateFpgaImageRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateFpgaImageRequest.h:293
Aws::EC2::Model::CreateFpgaImageRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateFpgaImageRequest.h:156
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateFpgaImageRequest::WithDescription
CreateFpgaImageRequest & WithDescription(const char *value)
Definition: CreateFpgaImageRequest.h:181
EC2_EXPORTS.h