AWS SDK for C++  1.9.104
AWS SDK for C++
CreateDiskSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateDiskSnapshot"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
45  inline const Aws::String& GetDiskName() const{ return m_diskName; }
46 
53  inline bool DiskNameHasBeenSet() const { return m_diskNameHasBeenSet; }
54 
61  inline void SetDiskName(const Aws::String& value) { m_diskNameHasBeenSet = true; m_diskName = value; }
62 
69  inline void SetDiskName(Aws::String&& value) { m_diskNameHasBeenSet = true; m_diskName = std::move(value); }
70 
77  inline void SetDiskName(const char* value) { m_diskNameHasBeenSet = true; m_diskName.assign(value); }
78 
85  inline CreateDiskSnapshotRequest& WithDiskName(const Aws::String& value) { SetDiskName(value); return *this;}
86 
93  inline CreateDiskSnapshotRequest& WithDiskName(Aws::String&& value) { SetDiskName(std::move(value)); return *this;}
94 
101  inline CreateDiskSnapshotRequest& WithDiskName(const char* value) { SetDiskName(value); return *this;}
102 
103 
108  inline const Aws::String& GetDiskSnapshotName() const{ return m_diskSnapshotName; }
109 
114  inline bool DiskSnapshotNameHasBeenSet() const { return m_diskSnapshotNameHasBeenSet; }
115 
120  inline void SetDiskSnapshotName(const Aws::String& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = value; }
121 
126  inline void SetDiskSnapshotName(Aws::String&& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = std::move(value); }
127 
132  inline void SetDiskSnapshotName(const char* value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName.assign(value); }
133 
138  inline CreateDiskSnapshotRequest& WithDiskSnapshotName(const Aws::String& value) { SetDiskSnapshotName(value); return *this;}
139 
144  inline CreateDiskSnapshotRequest& WithDiskSnapshotName(Aws::String&& value) { SetDiskSnapshotName(std::move(value)); return *this;}
145 
150  inline CreateDiskSnapshotRequest& WithDiskSnapshotName(const char* value) { SetDiskSnapshotName(value); return *this;}
151 
152 
161  inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
162 
171  inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
172 
181  inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
182 
191  inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
192 
201  inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
202 
211  inline CreateDiskSnapshotRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
212 
221  inline CreateDiskSnapshotRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
222 
231  inline CreateDiskSnapshotRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
232 
233 
239  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
240 
246  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
247 
253  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
254 
260  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
261 
267  inline CreateDiskSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
268 
274  inline CreateDiskSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
275 
281  inline CreateDiskSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
282 
288  inline CreateDiskSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
289 
290  private:
291 
292  Aws::String m_diskName;
293  bool m_diskNameHasBeenSet;
294 
295  Aws::String m_diskSnapshotName;
296  bool m_diskSnapshotNameHasBeenSet;
297 
298  Aws::String m_instanceName;
299  bool m_instanceNameHasBeenSet;
300 
301  Aws::Vector<Tag> m_tags;
302  bool m_tagsHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace Lightsail
307 } // namespace Aws
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetDiskName
void SetDiskName(const char *value)
Definition: CreateDiskSnapshotRequest.h:77
Aws::Lightsail::Model::CreateDiskSnapshotRequest::CreateDiskSnapshotRequest
CreateDiskSnapshotRequest()
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithDiskSnapshotName
CreateDiskSnapshotRequest & WithDiskSnapshotName(const Aws::String &value)
Definition: CreateDiskSnapshotRequest.h:138
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetDiskSnapshotName
void SetDiskSnapshotName(const Aws::String &value)
Definition: CreateDiskSnapshotRequest.h:120
Aws::Lightsail::Model::CreateDiskSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDiskSnapshotRequest.h:246
Aws::Lightsail::Model::CreateDiskSnapshotRequest::AddTags
CreateDiskSnapshotRequest & AddTags(Tag &&value)
Definition: CreateDiskSnapshotRequest.h:288
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetDiskName
void SetDiskName(const Aws::String &value)
Definition: CreateDiskSnapshotRequest.h:61
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDiskSnapshotRequest.h:253
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithDiskName
CreateDiskSnapshotRequest & WithDiskName(Aws::String &&value)
Definition: CreateDiskSnapshotRequest.h:93
Aws::Lightsail::Model::CreateDiskSnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateDiskSnapshotRequest::AddTags
CreateDiskSnapshotRequest & AddTags(const Tag &value)
Definition: CreateDiskSnapshotRequest.h:281
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetDiskSnapshotName
void SetDiskSnapshotName(Aws::String &&value)
Definition: CreateDiskSnapshotRequest.h:126
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithInstanceName
CreateDiskSnapshotRequest & WithInstanceName(const Aws::String &value)
Definition: CreateDiskSnapshotRequest.h:211
Aws::Lightsail::Model::CreateDiskSnapshotRequest::DiskSnapshotNameHasBeenSet
bool DiskSnapshotNameHasBeenSet() const
Definition: CreateDiskSnapshotRequest.h:114
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithDiskSnapshotName
CreateDiskSnapshotRequest & WithDiskSnapshotName(Aws::String &&value)
Definition: CreateDiskSnapshotRequest.h:144
Tag.h
Aws::Lightsail::Model::CreateDiskSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDiskSnapshotRequest.h:239
Aws::Lightsail::Model::CreateDiskSnapshotRequest
Definition: CreateDiskSnapshotRequest.h:24
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithTags
CreateDiskSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDiskSnapshotRequest.h:274
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithTags
CreateDiskSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDiskSnapshotRequest.h:267
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithInstanceName
CreateDiskSnapshotRequest & WithInstanceName(Aws::String &&value)
Definition: CreateDiskSnapshotRequest.h:221
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateDiskSnapshotRequest::GetDiskSnapshotName
const Aws::String & GetDiskSnapshotName() const
Definition: CreateDiskSnapshotRequest.h:108
Aws::Lightsail::Model::CreateDiskSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDiskSnapshotRequest.h:32
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetInstanceName
void SetInstanceName(const Aws::String &value)
Definition: CreateDiskSnapshotRequest.h:181
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateDiskSnapshotRequest::GetDiskName
const Aws::String & GetDiskName() const
Definition: CreateDiskSnapshotRequest.h:45
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithDiskName
CreateDiskSnapshotRequest & WithDiskName(const Aws::String &value)
Definition: CreateDiskSnapshotRequest.h:85
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithDiskSnapshotName
CreateDiskSnapshotRequest & WithDiskSnapshotName(const char *value)
Definition: CreateDiskSnapshotRequest.h:150
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateDiskSnapshotRequest::InstanceNameHasBeenSet
bool InstanceNameHasBeenSet() const
Definition: CreateDiskSnapshotRequest.h:171
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDiskSnapshotRequest.h:260
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetInstanceName
void SetInstanceName(Aws::String &&value)
Definition: CreateDiskSnapshotRequest.h:191
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetInstanceName
void SetInstanceName(const char *value)
Definition: CreateDiskSnapshotRequest.h:201
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithDiskName
CreateDiskSnapshotRequest & WithDiskName(const char *value)
Definition: CreateDiskSnapshotRequest.h:101
Aws::Lightsail::Model::CreateDiskSnapshotRequest::DiskNameHasBeenSet
bool DiskNameHasBeenSet() const
Definition: CreateDiskSnapshotRequest.h:53
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetDiskSnapshotName
void SetDiskSnapshotName(const char *value)
Definition: CreateDiskSnapshotRequest.h:132
Aws::Lightsail::Model::CreateDiskSnapshotRequest::WithInstanceName
CreateDiskSnapshotRequest & WithInstanceName(const char *value)
Definition: CreateDiskSnapshotRequest.h:231
Aws::Lightsail::Model::CreateDiskSnapshotRequest::GetInstanceName
const Aws::String & GetInstanceName() const
Definition: CreateDiskSnapshotRequest.h:161
Aws::Lightsail::Model::CreateDiskSnapshotRequest::SetDiskName
void SetDiskName(Aws::String &&value)
Definition: CreateDiskSnapshotRequest.h:69