AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartSnapshotRequest.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/ebs/EBSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ebs/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EBS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EBS_API StartSnapshotRequest();
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 "StartSnapshot"; }
34
35 AWS_EBS_API Aws::String SerializePayload() const override;
36
37
39
43 inline long long GetVolumeSize() const{ return m_volumeSize; }
44 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
45 inline void SetVolumeSize(long long value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
46 inline StartSnapshotRequest& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;}
48
50
70 inline const Aws::String& GetParentSnapshotId() const{ return m_parentSnapshotId; }
71 inline bool ParentSnapshotIdHasBeenSet() const { return m_parentSnapshotIdHasBeenSet; }
72 inline void SetParentSnapshotId(const Aws::String& value) { m_parentSnapshotIdHasBeenSet = true; m_parentSnapshotId = value; }
73 inline void SetParentSnapshotId(Aws::String&& value) { m_parentSnapshotIdHasBeenSet = true; m_parentSnapshotId = std::move(value); }
74 inline void SetParentSnapshotId(const char* value) { m_parentSnapshotIdHasBeenSet = true; m_parentSnapshotId.assign(value); }
75 inline StartSnapshotRequest& WithParentSnapshotId(const Aws::String& value) { SetParentSnapshotId(value); return *this;}
76 inline StartSnapshotRequest& WithParentSnapshotId(Aws::String&& value) { SetParentSnapshotId(std::move(value)); return *this;}
77 inline StartSnapshotRequest& WithParentSnapshotId(const char* value) { SetParentSnapshotId(value); return *this;}
79
81
84 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
87 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
88 inline StartSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
89 inline StartSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
90 inline StartSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
91 inline StartSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline StartSnapshotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline StartSnapshotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline StartSnapshotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
121 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
122 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
124 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
125 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
126 inline StartSnapshotRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
127 inline StartSnapshotRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
128 inline StartSnapshotRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
130
132
150 inline bool GetEncrypted() const{ return m_encrypted; }
151 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
152 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
153 inline StartSnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
155
157
173 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
174 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
175 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
176 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
177 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
178 inline StartSnapshotRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
179 inline StartSnapshotRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
180 inline StartSnapshotRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
182
184
191 inline int GetTimeout() const{ return m_timeout; }
192 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
193 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
194 inline StartSnapshotRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
196 private:
197
198 long long m_volumeSize;
199 bool m_volumeSizeHasBeenSet = false;
200
201 Aws::String m_parentSnapshotId;
202 bool m_parentSnapshotIdHasBeenSet = false;
203
204 Aws::Vector<Tag> m_tags;
205 bool m_tagsHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 Aws::String m_clientToken;
211 bool m_clientTokenHasBeenSet = false;
212
213 bool m_encrypted;
214 bool m_encryptedHasBeenSet = false;
215
216 Aws::String m_kmsKeyArn;
217 bool m_kmsKeyArnHasBeenSet = false;
218
219 int m_timeout;
220 bool m_timeoutHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace EBS
225} // namespace Aws
void SetClientToken(const Aws::String &value)
StartSnapshotRequest & WithVolumeSize(long long value)
StartSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
void SetKmsKeyArn(const Aws::String &value)
void SetParentSnapshotId(Aws::String &&value)
StartSnapshotRequest & WithClientToken(const char *value)
StartSnapshotRequest & WithClientToken(const Aws::String &value)
StartSnapshotRequest & WithEncrypted(bool value)
StartSnapshotRequest & WithKmsKeyArn(const Aws::String &value)
StartSnapshotRequest & WithDescription(const char *value)
StartSnapshotRequest & WithKmsKeyArn(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientToken() const
StartSnapshotRequest & WithTimeout(int value)
AWS_EBS_API Aws::String SerializePayload() const override
StartSnapshotRequest & WithDescription(Aws::String &&value)
StartSnapshotRequest & WithDescription(const Aws::String &value)
const Aws::String & GetParentSnapshotId() const
void SetParentSnapshotId(const Aws::String &value)
StartSnapshotRequest & WithParentSnapshotId(const char *value)
StartSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
StartSnapshotRequest & WithParentSnapshotId(const Aws::String &value)
StartSnapshotRequest & WithParentSnapshotId(Aws::String &&value)
StartSnapshotRequest & WithKmsKeyArn(const char *value)
StartSnapshotRequest & AddTags(const Tag &value)
StartSnapshotRequest & AddTags(Tag &&value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(Aws::Vector< Tag > &&value)
void SetDescription(const Aws::String &value)
StartSnapshotRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector