AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSnapshotsRequest.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/InstanceSpecification.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/CopyTagsFromSource.h>
13#include <aws/ec2/model/TagSpecification.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 "CreateSnapshots"; }
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
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline CreateSnapshotsRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline CreateSnapshotsRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline CreateSnapshotsRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
62 inline const InstanceSpecification& GetInstanceSpecification() const{ return m_instanceSpecification; }
63 inline bool InstanceSpecificationHasBeenSet() const { return m_instanceSpecificationHasBeenSet; }
64 inline void SetInstanceSpecification(const InstanceSpecification& value) { m_instanceSpecificationHasBeenSet = true; m_instanceSpecification = value; }
65 inline void SetInstanceSpecification(InstanceSpecification&& value) { m_instanceSpecificationHasBeenSet = true; m_instanceSpecification = std::move(value); }
69
71
85 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
86 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
87 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
88 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
89 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
90 inline CreateSnapshotsRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
91 inline CreateSnapshotsRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
92 inline CreateSnapshotsRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
94
96
99 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
100 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
101 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
102 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
105 inline CreateSnapshotsRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
106 inline CreateSnapshotsRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
108
110
116 inline bool GetDryRun() const{ return m_dryRun; }
117 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
118 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
119 inline CreateSnapshotsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
121
123
126 inline const CopyTagsFromSource& GetCopyTagsFromSource() const{ return m_copyTagsFromSource; }
127 inline bool CopyTagsFromSourceHasBeenSet() const { return m_copyTagsFromSourceHasBeenSet; }
128 inline void SetCopyTagsFromSource(const CopyTagsFromSource& value) { m_copyTagsFromSourceHasBeenSet = true; m_copyTagsFromSource = value; }
129 inline void SetCopyTagsFromSource(CopyTagsFromSource&& value) { m_copyTagsFromSourceHasBeenSet = true; m_copyTagsFromSource = std::move(value); }
133 private:
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 InstanceSpecification m_instanceSpecification;
139 bool m_instanceSpecificationHasBeenSet = false;
140
141 Aws::String m_outpostArn;
142 bool m_outpostArnHasBeenSet = false;
143
144 Aws::Vector<TagSpecification> m_tagSpecifications;
145 bool m_tagSpecificationsHasBeenSet = false;
146
147 bool m_dryRun;
148 bool m_dryRunHasBeenSet = false;
149
150 CopyTagsFromSource m_copyTagsFromSource;
151 bool m_copyTagsFromSourceHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace EC2
156} // namespace Aws
CreateSnapshotsRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetInstanceSpecification(InstanceSpecification &&value)
void SetOutpostArn(const Aws::String &value)
CreateSnapshotsRequest & WithInstanceSpecification(const InstanceSpecification &value)
const CopyTagsFromSource & GetCopyTagsFromSource() const
CreateSnapshotsRequest & WithDryRun(bool value)
void SetCopyTagsFromSource(const CopyTagsFromSource &value)
CreateSnapshotsRequest & AddTagSpecifications(TagSpecification &&value)
CreateSnapshotsRequest & WithDescription(const Aws::String &value)
CreateSnapshotsRequest & WithInstanceSpecification(InstanceSpecification &&value)
const InstanceSpecification & GetInstanceSpecification() const
void SetInstanceSpecification(const InstanceSpecification &value)
CreateSnapshotsRequest & WithOutpostArn(const Aws::String &value)
CreateSnapshotsRequest & WithDescription(const char *value)
CreateSnapshotsRequest & WithOutpostArn(const char *value)
CreateSnapshotsRequest & WithCopyTagsFromSource(CopyTagsFromSource &&value)
virtual const char * GetServiceRequestName() const override
CreateSnapshotsRequest & WithOutpostArn(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateSnapshotsRequest & WithCopyTagsFromSource(const CopyTagsFromSource &value)
void SetDescription(const Aws::String &value)
CreateSnapshotsRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetCopyTagsFromSource(CopyTagsFromSource &&value)
CreateSnapshotsRequest & WithDescription(Aws::String &&value)
CreateSnapshotsRequest & AddTagSpecifications(const TagSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector