AWS SDK for C++  1.9.15
AWS SDK for C++
CreateSnapshotsRequest.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>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace 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 "CreateSnapshots"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetDescription() const{ return m_description; }
47 
51  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
52 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
61  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 
66  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 
71  inline CreateSnapshotsRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 
76  inline CreateSnapshotsRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 
81  inline CreateSnapshotsRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82 
83 
88  inline const InstanceSpecification& GetInstanceSpecification() const{ return m_instanceSpecification; }
89 
94  inline bool InstanceSpecificationHasBeenSet() const { return m_instanceSpecificationHasBeenSet; }
95 
100  inline void SetInstanceSpecification(const InstanceSpecification& value) { m_instanceSpecificationHasBeenSet = true; m_instanceSpecification = value; }
101 
106  inline void SetInstanceSpecification(InstanceSpecification&& value) { m_instanceSpecificationHasBeenSet = true; m_instanceSpecification = std::move(value); }
107 
112  inline CreateSnapshotsRequest& WithInstanceSpecification(const InstanceSpecification& value) { SetInstanceSpecification(value); return *this;}
113 
118  inline CreateSnapshotsRequest& WithInstanceSpecification(InstanceSpecification&& value) { SetInstanceSpecification(std::move(value)); return *this;}
119 
120 
135  inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
136 
151  inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
152 
167  inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
168 
183  inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
184 
199  inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
200 
215  inline CreateSnapshotsRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
216 
231  inline CreateSnapshotsRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
232 
247  inline CreateSnapshotsRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
248 
249 
253  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
254 
258  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
259 
263  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
264 
268  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
269 
273  inline CreateSnapshotsRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
274 
278  inline CreateSnapshotsRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
279 
283  inline CreateSnapshotsRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
284 
288  inline CreateSnapshotsRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
289 
290 
297  inline bool GetDryRun() const{ return m_dryRun; }
298 
305  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
306 
313  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
314 
321  inline CreateSnapshotsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
322 
323 
327  inline const CopyTagsFromSource& GetCopyTagsFromSource() const{ return m_copyTagsFromSource; }
328 
332  inline bool CopyTagsFromSourceHasBeenSet() const { return m_copyTagsFromSourceHasBeenSet; }
333 
337  inline void SetCopyTagsFromSource(const CopyTagsFromSource& value) { m_copyTagsFromSourceHasBeenSet = true; m_copyTagsFromSource = value; }
338 
342  inline void SetCopyTagsFromSource(CopyTagsFromSource&& value) { m_copyTagsFromSourceHasBeenSet = true; m_copyTagsFromSource = std::move(value); }
343 
347  inline CreateSnapshotsRequest& WithCopyTagsFromSource(const CopyTagsFromSource& value) { SetCopyTagsFromSource(value); return *this;}
348 
352  inline CreateSnapshotsRequest& WithCopyTagsFromSource(CopyTagsFromSource&& value) { SetCopyTagsFromSource(std::move(value)); return *this;}
353 
354  private:
355 
356  Aws::String m_description;
357  bool m_descriptionHasBeenSet;
358 
359  InstanceSpecification m_instanceSpecification;
360  bool m_instanceSpecificationHasBeenSet;
361 
362  Aws::String m_outpostArn;
363  bool m_outpostArnHasBeenSet;
364 
365  Aws::Vector<TagSpecification> m_tagSpecifications;
366  bool m_tagSpecificationsHasBeenSet;
367 
368  bool m_dryRun;
369  bool m_dryRunHasBeenSet;
370 
371  CopyTagsFromSource m_copyTagsFromSource;
372  bool m_copyTagsFromSourceHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace EC2
377 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateSnapshotsRequest::InstanceSpecificationHasBeenSet
bool InstanceSpecificationHasBeenSet() const
Definition: CreateSnapshotsRequest.h:94
Aws::EC2::Model::CreateSnapshotsRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateSnapshotsRequest.h:258
Aws::EC2::Model::CreateSnapshotsRequest
Definition: CreateSnapshotsRequest.h:26
Aws::EC2::Model::CreateSnapshotsRequest::WithTagSpecifications
CreateSnapshotsRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateSnapshotsRequest.h:278
Aws::EC2::Model::CreateSnapshotsRequest::AddTagSpecifications
CreateSnapshotsRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateSnapshotsRequest.h:288
Aws::EC2::Model::CreateSnapshotsRequest::AddTagSpecifications
CreateSnapshotsRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateSnapshotsRequest.h:283
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateSnapshotsRequest::SetOutpostArn
void SetOutpostArn(const Aws::String &value)
Definition: CreateSnapshotsRequest.h:167
InstanceSpecification.h
Aws::EC2::Model::CreateSnapshotsRequest::SetOutpostArn
void SetOutpostArn(const char *value)
Definition: CreateSnapshotsRequest.h:199
Aws::EC2::Model::CreateSnapshotsRequest::WithInstanceSpecification
CreateSnapshotsRequest & WithInstanceSpecification(InstanceSpecification &&value)
Definition: CreateSnapshotsRequest.h:118
Aws::EC2::Model::CreateSnapshotsRequest::WithOutpostArn
CreateSnapshotsRequest & WithOutpostArn(Aws::String &&value)
Definition: CreateSnapshotsRequest.h:231
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateSnapshotsRequest::CopyTagsFromSourceHasBeenSet
bool CopyTagsFromSourceHasBeenSet() const
Definition: CreateSnapshotsRequest.h:332
Aws::EC2::Model::CreateSnapshotsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateSnapshotsRequest.h:305
Aws::EC2::Model::CreateSnapshotsRequest::GetDryRun
bool GetDryRun() const
Definition: CreateSnapshotsRequest.h:297
Aws::EC2::Model::CreateSnapshotsRequest::WithOutpostArn
CreateSnapshotsRequest & WithOutpostArn(const Aws::String &value)
Definition: CreateSnapshotsRequest.h:215
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CopyTagsFromSource
CopyTagsFromSource
Definition: CopyTagsFromSource.h:17
Aws::EC2::Model::CreateSnapshotsRequest::GetInstanceSpecification
const InstanceSpecification & GetInstanceSpecification() const
Definition: CreateSnapshotsRequest.h:88
AWSVector.h
Aws::EC2::Model::CreateSnapshotsRequest::GetCopyTagsFromSource
const CopyTagsFromSource & GetCopyTagsFromSource() const
Definition: CreateSnapshotsRequest.h:327
Aws::EC2::Model::CreateSnapshotsRequest::SetCopyTagsFromSource
void SetCopyTagsFromSource(const CopyTagsFromSource &value)
Definition: CreateSnapshotsRequest.h:337
Aws::EC2::Model::CreateSnapshotsRequest::WithCopyTagsFromSource
CreateSnapshotsRequest & WithCopyTagsFromSource(CopyTagsFromSource &&value)
Definition: CreateSnapshotsRequest.h:352
Aws::EC2::Model::CreateSnapshotsRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateSnapshotsRequest.h:66
Aws::EC2::Model::CreateSnapshotsRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateSnapshotsRequest.h:268
Aws::EC2::Model::CreateSnapshotsRequest::SetInstanceSpecification
void SetInstanceSpecification(const InstanceSpecification &value)
Definition: CreateSnapshotsRequest.h:100
Aws::EC2::Model::CreateSnapshotsRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateSnapshotsRequest.h:61
Aws::EC2::Model::CreateSnapshotsRequest::SetInstanceSpecification
void SetInstanceSpecification(InstanceSpecification &&value)
Definition: CreateSnapshotsRequest.h:106
Aws::EC2::Model::CreateSnapshotsRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateSnapshotsRequest.h:263
Aws::EC2::Model::CreateSnapshotsRequest::WithDescription
CreateSnapshotsRequest & WithDescription(const Aws::String &value)
Definition: CreateSnapshotsRequest.h:71
Aws::EC2::Model::CreateSnapshotsRequest::SetOutpostArn
void SetOutpostArn(Aws::String &&value)
Definition: CreateSnapshotsRequest.h:183
Aws::EC2::Model::InstanceSpecification
Definition: InstanceSpecification.h:33
Aws::EC2::Model::CreateSnapshotsRequest::WithCopyTagsFromSource
CreateSnapshotsRequest & WithCopyTagsFromSource(const CopyTagsFromSource &value)
Definition: CreateSnapshotsRequest.h:347
EC2Request.h
Aws::EC2::Model::CreateSnapshotsRequest::WithOutpostArn
CreateSnapshotsRequest & WithOutpostArn(const char *value)
Definition: CreateSnapshotsRequest.h:247
CopyTagsFromSource.h
AWSString.h
Aws::EC2::Model::CreateSnapshotsRequest::WithDescription
CreateSnapshotsRequest & WithDescription(Aws::String &&value)
Definition: CreateSnapshotsRequest.h:76
Aws::EC2::Model::CreateSnapshotsRequest::OutpostArnHasBeenSet
bool OutpostArnHasBeenSet() const
Definition: CreateSnapshotsRequest.h:151
Aws::EC2::Model::CreateSnapshotsRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateSnapshotsRequest.h:46
Aws::EC2::Model::CreateSnapshotsRequest::CreateSnapshotsRequest
CreateSnapshotsRequest()
Aws::EC2::Model::CreateSnapshotsRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateSnapshotsRequest.h:56
Aws::EC2::Model::CreateSnapshotsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateSnapshotsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateSnapshotsRequest::SetCopyTagsFromSource
void SetCopyTagsFromSource(CopyTagsFromSource &&value)
Definition: CreateSnapshotsRequest.h:342
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateSnapshotsRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateSnapshotsRequest.h:51
Aws::EC2::Model::CreateSnapshotsRequest::GetOutpostArn
const Aws::String & GetOutpostArn() const
Definition: CreateSnapshotsRequest.h:135
Aws::EC2::Model::CreateSnapshotsRequest::WithDryRun
CreateSnapshotsRequest & WithDryRun(bool value)
Definition: CreateSnapshotsRequest.h:321
Aws::EC2::Model::CreateSnapshotsRequest::WithInstanceSpecification
CreateSnapshotsRequest & WithInstanceSpecification(const InstanceSpecification &value)
Definition: CreateSnapshotsRequest.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateSnapshotsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSnapshotsRequest.h:34
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateSnapshotsRequest::WithTagSpecifications
CreateSnapshotsRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateSnapshotsRequest.h:273
Aws::EC2::Model::CreateSnapshotsRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateSnapshotsRequest.h:253
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateSnapshotsRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateSnapshotsRequest.h:313
Aws::EC2::Model::CreateSnapshotsRequest::WithDescription
CreateSnapshotsRequest & WithDescription(const char *value)
Definition: CreateSnapshotsRequest.h:81