AWS SDK for C++  1.9.66
AWS SDK for C++
CopyFpgaImageRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CopyFpgaImage"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline CopyFpgaImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
75  inline const Aws::String& GetSourceFpgaImageId() const{ return m_sourceFpgaImageId; }
76 
80  inline bool SourceFpgaImageIdHasBeenSet() const { return m_sourceFpgaImageIdHasBeenSet; }
81 
85  inline void SetSourceFpgaImageId(const Aws::String& value) { m_sourceFpgaImageIdHasBeenSet = true; m_sourceFpgaImageId = value; }
86 
90  inline void SetSourceFpgaImageId(Aws::String&& value) { m_sourceFpgaImageIdHasBeenSet = true; m_sourceFpgaImageId = std::move(value); }
91 
95  inline void SetSourceFpgaImageId(const char* value) { m_sourceFpgaImageIdHasBeenSet = true; m_sourceFpgaImageId.assign(value); }
96 
100  inline CopyFpgaImageRequest& WithSourceFpgaImageId(const Aws::String& value) { SetSourceFpgaImageId(value); return *this;}
101 
105  inline CopyFpgaImageRequest& WithSourceFpgaImageId(Aws::String&& value) { SetSourceFpgaImageId(std::move(value)); return *this;}
106 
110  inline CopyFpgaImageRequest& WithSourceFpgaImageId(const char* value) { SetSourceFpgaImageId(value); return *this;}
111 
112 
116  inline const Aws::String& GetDescription() const{ return m_description; }
117 
121  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 
126  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
127 
131  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
132 
136  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
137 
141  inline CopyFpgaImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
142 
146  inline CopyFpgaImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
147 
151  inline CopyFpgaImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
152 
153 
157  inline const Aws::String& GetName() const{ return m_name; }
158 
162  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
163 
167  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
168 
172  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
173 
177  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
178 
182  inline CopyFpgaImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
183 
187  inline CopyFpgaImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
188 
192  inline CopyFpgaImageRequest& WithName(const char* value) { SetName(value); return *this;}
193 
194 
198  inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
199 
203  inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
204 
208  inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
209 
213  inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
214 
218  inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
219 
223  inline CopyFpgaImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
224 
228  inline CopyFpgaImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
229 
233  inline CopyFpgaImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
234 
235 
242  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
243 
250  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
251 
258  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
259 
266  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
267 
274  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
275 
282  inline CopyFpgaImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
283 
290  inline CopyFpgaImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
291 
298  inline CopyFpgaImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
299 
300  private:
301 
302  bool m_dryRun;
303  bool m_dryRunHasBeenSet;
304 
305  Aws::String m_sourceFpgaImageId;
306  bool m_sourceFpgaImageIdHasBeenSet;
307 
308  Aws::String m_description;
309  bool m_descriptionHasBeenSet;
310 
311  Aws::String m_name;
312  bool m_nameHasBeenSet;
313 
314  Aws::String m_sourceRegion;
315  bool m_sourceRegionHasBeenSet;
316 
317  Aws::String m_clientToken;
318  bool m_clientTokenHasBeenSet;
319  };
320 
321 } // namespace Model
322 } // namespace EC2
323 } // namespace Aws
Aws::EC2::Model::CopyFpgaImageRequest::WithDescription
CopyFpgaImageRequest & WithDescription(const char *value)
Definition: CopyFpgaImageRequest.h:151
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CopyFpgaImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CopyFpgaImageRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:126
Aws::EC2::Model::CopyFpgaImageRequest::SetSourceFpgaImageId
void SetSourceFpgaImageId(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:90
Aws::EC2::Model::CopyFpgaImageRequest::WithClientToken
CopyFpgaImageRequest & WithClientToken(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:282
Aws::EC2::Model::CopyFpgaImageRequest::WithSourceFpgaImageId
CopyFpgaImageRequest & WithSourceFpgaImageId(const char *value)
Definition: CopyFpgaImageRequest.h:110
Aws::EC2::Model::CopyFpgaImageRequest::SetSourceFpgaImageId
void SetSourceFpgaImageId(const char *value)
Definition: CopyFpgaImageRequest.h:95
Aws::EC2::Model::CopyFpgaImageRequest::WithName
CopyFpgaImageRequest & WithName(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:182
Aws::EC2::Model::CopyFpgaImageRequest::SetDryRun
void SetDryRun(bool value)
Definition: CopyFpgaImageRequest.h:61
Aws::EC2::Model::CopyFpgaImageRequest::SetSourceRegion
void SetSourceRegion(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:208
Aws::EC2::Model::CopyFpgaImageRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CopyFpgaImageRequest.h:250
Aws::EC2::Model::CopyFpgaImageRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:131
Aws::EC2::Model::CopyFpgaImageRequest::WithClientToken
CopyFpgaImageRequest & WithClientToken(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:290
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CopyFpgaImageRequest
Definition: CopyFpgaImageRequest.h:22
Aws::EC2::Model::CopyFpgaImageRequest::SetSourceRegion
void SetSourceRegion(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:213
Aws::EC2::Model::CopyFpgaImageRequest::WithDescription
CopyFpgaImageRequest & WithDescription(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:141
Aws::EC2::Model::CopyFpgaImageRequest::GetSourceRegion
const Aws::String & GetSourceRegion() const
Definition: CopyFpgaImageRequest.h:198
Aws::EC2::Model::CopyFpgaImageRequest::WithDryRun
CopyFpgaImageRequest & WithDryRun(bool value)
Definition: CopyFpgaImageRequest.h:69
Aws::EC2::Model::CopyFpgaImageRequest::SetName
void SetName(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:172
Aws::EC2::Model::CopyFpgaImageRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:266
Aws::EC2::Model::CopyFpgaImageRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:258
EC2Request.h
Aws::EC2::Model::CopyFpgaImageRequest::SetSourceFpgaImageId
void SetSourceFpgaImageId(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:85
Aws::EC2::Model::CopyFpgaImageRequest::SetSourceRegion
void SetSourceRegion(const char *value)
Definition: CopyFpgaImageRequest.h:218
AWSString.h
Aws::EC2::Model::CopyFpgaImageRequest::SetName
void SetName(const char *value)
Definition: CopyFpgaImageRequest.h:177
Aws::EC2::Model::CopyFpgaImageRequest::WithSourceFpgaImageId
CopyFpgaImageRequest & WithSourceFpgaImageId(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:100
Aws::EC2::Model::CopyFpgaImageRequest::CopyFpgaImageRequest
CopyFpgaImageRequest()
Aws::EC2::Model::CopyFpgaImageRequest::GetSourceFpgaImageId
const Aws::String & GetSourceFpgaImageId() const
Definition: CopyFpgaImageRequest.h:75
Aws::EC2::Model::CopyFpgaImageRequest::WithSourceRegion
CopyFpgaImageRequest & WithSourceRegion(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:228
Aws::EC2::Model::CopyFpgaImageRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CopyFpgaImageRequest.h:116
Aws::EC2::Model::CopyFpgaImageRequest::WithSourceRegion
CopyFpgaImageRequest & WithSourceRegion(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:223
Aws::EC2::Model::CopyFpgaImageRequest::WithDescription
CopyFpgaImageRequest & WithDescription(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:146
Aws::EC2::Model::CopyFpgaImageRequest::WithName
CopyFpgaImageRequest & WithName(const char *value)
Definition: CopyFpgaImageRequest.h:192
Aws::EC2::Model::CopyFpgaImageRequest::WithSourceRegion
CopyFpgaImageRequest & WithSourceRegion(const char *value)
Definition: CopyFpgaImageRequest.h:233
Aws::EC2::Model::CopyFpgaImageRequest::GetName
const Aws::String & GetName() const
Definition: CopyFpgaImageRequest.h:157
Aws::EC2::Model::CopyFpgaImageRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CopyFpgaImageRequest.h:162
Aws::EC2::Model::CopyFpgaImageRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CopyFpgaImageRequest.h:242
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CopyFpgaImageRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CopyFpgaImageRequest.h:274
Aws::EC2::Model::CopyFpgaImageRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CopyFpgaImageRequest.h:53
Aws::EC2::Model::CopyFpgaImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CopyFpgaImageRequest.h:30
Aws::EC2::Model::CopyFpgaImageRequest::WithSourceFpgaImageId
CopyFpgaImageRequest & WithSourceFpgaImageId(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:105
Aws::EC2::Model::CopyFpgaImageRequest::SourceFpgaImageIdHasBeenSet
bool SourceFpgaImageIdHasBeenSet() const
Definition: CopyFpgaImageRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CopyFpgaImageRequest::WithName
CopyFpgaImageRequest & WithName(Aws::String &&value)
Definition: CopyFpgaImageRequest.h:187
Aws::EC2::Model::CopyFpgaImageRequest::GetDryRun
bool GetDryRun() const
Definition: CopyFpgaImageRequest.h:45
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CopyFpgaImageRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CopyFpgaImageRequest.h:121
Aws::EC2::Model::CopyFpgaImageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CopyFpgaImageRequest::WithClientToken
CopyFpgaImageRequest & WithClientToken(const char *value)
Definition: CopyFpgaImageRequest.h:298
EC2_EXPORTS.h
Aws::EC2::Model::CopyFpgaImageRequest::SourceRegionHasBeenSet
bool SourceRegionHasBeenSet() const
Definition: CopyFpgaImageRequest.h:203
Aws::EC2::Model::CopyFpgaImageRequest::SetName
void SetName(const Aws::String &value)
Definition: CopyFpgaImageRequest.h:167
Aws::EC2::Model::CopyFpgaImageRequest::SetDescription
void SetDescription(const char *value)
Definition: CopyFpgaImageRequest.h:136