AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDiskSnapshotRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LIGHTSAIL_API CreateDiskSnapshotRequest();
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetDiskName() const{ return m_diskName; }
47 inline bool DiskNameHasBeenSet() const { return m_diskNameHasBeenSet; }
48 inline void SetDiskName(const Aws::String& value) { m_diskNameHasBeenSet = true; m_diskName = value; }
49 inline void SetDiskName(Aws::String&& value) { m_diskNameHasBeenSet = true; m_diskName = std::move(value); }
50 inline void SetDiskName(const char* value) { m_diskNameHasBeenSet = true; m_diskName.assign(value); }
51 inline CreateDiskSnapshotRequest& WithDiskName(const Aws::String& value) { SetDiskName(value); return *this;}
52 inline CreateDiskSnapshotRequest& WithDiskName(Aws::String&& value) { SetDiskName(std::move(value)); return *this;}
53 inline CreateDiskSnapshotRequest& WithDiskName(const char* value) { SetDiskName(value); return *this;}
55
57
61 inline const Aws::String& GetDiskSnapshotName() const{ return m_diskSnapshotName; }
62 inline bool DiskSnapshotNameHasBeenSet() const { return m_diskSnapshotNameHasBeenSet; }
63 inline void SetDiskSnapshotName(const Aws::String& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = value; }
64 inline void SetDiskSnapshotName(Aws::String&& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = std::move(value); }
65 inline void SetDiskSnapshotName(const char* value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName.assign(value); }
67 inline CreateDiskSnapshotRequest& WithDiskSnapshotName(Aws::String&& value) { SetDiskSnapshotName(std::move(value)); return *this;}
68 inline CreateDiskSnapshotRequest& WithDiskSnapshotName(const char* value) { SetDiskSnapshotName(value); return *this;}
70
72
80 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
81 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
82 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
83 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
84 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
85 inline CreateDiskSnapshotRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
86 inline CreateDiskSnapshotRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
87 inline CreateDiskSnapshotRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
89
91
96 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
99 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
100 inline CreateDiskSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
101 inline CreateDiskSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
102 inline CreateDiskSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
103 inline CreateDiskSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
105 private:
106
107 Aws::String m_diskName;
108 bool m_diskNameHasBeenSet = false;
109
110 Aws::String m_diskSnapshotName;
111 bool m_diskSnapshotNameHasBeenSet = false;
112
113 Aws::String m_instanceName;
114 bool m_instanceNameHasBeenSet = false;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Lightsail
122} // namespace Aws
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateDiskSnapshotRequest & WithDiskName(const char *value)
CreateDiskSnapshotRequest & WithDiskSnapshotName(const char *value)
CreateDiskSnapshotRequest & WithInstanceName(const char *value)
CreateDiskSnapshotRequest & WithInstanceName(Aws::String &&value)
CreateDiskSnapshotRequest & WithDiskSnapshotName(Aws::String &&value)
CreateDiskSnapshotRequest & WithDiskSnapshotName(const Aws::String &value)
CreateDiskSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDiskSnapshotRequest & WithInstanceName(const Aws::String &value)
CreateDiskSnapshotRequest & WithDiskName(const Aws::String &value)
CreateDiskSnapshotRequest & AddTags(Tag &&value)
CreateDiskSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDiskSnapshotRequest & AddTags(const Tag &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateDiskSnapshotRequest & WithDiskName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector