AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateDiskSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Lightsail {
17namespace Model {
18
22 public:
23 AWS_LIGHTSAIL_API CreateDiskSnapshotRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDiskSnapshot"; }
30
31 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetDiskName() const { return m_diskName; }
43 inline bool DiskNameHasBeenSet() const { return m_diskNameHasBeenSet; }
44 template <typename DiskNameT = Aws::String>
45 void SetDiskName(DiskNameT&& value) {
46 m_diskNameHasBeenSet = true;
47 m_diskName = std::forward<DiskNameT>(value);
48 }
49 template <typename DiskNameT = Aws::String>
51 SetDiskName(std::forward<DiskNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDiskSnapshotName() const { return m_diskSnapshotName; }
62 inline bool DiskSnapshotNameHasBeenSet() const { return m_diskSnapshotNameHasBeenSet; }
63 template <typename DiskSnapshotNameT = Aws::String>
64 void SetDiskSnapshotName(DiskSnapshotNameT&& value) {
65 m_diskSnapshotNameHasBeenSet = true;
66 m_diskSnapshotName = std::forward<DiskSnapshotNameT>(value);
67 }
68 template <typename DiskSnapshotNameT = Aws::String>
69 CreateDiskSnapshotRequest& WithDiskSnapshotName(DiskSnapshotNameT&& value) {
70 SetDiskSnapshotName(std::forward<DiskSnapshotNameT>(value));
71 return *this;
72 }
74
76
84 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
85 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
86 template <typename InstanceNameT = Aws::String>
87 void SetInstanceName(InstanceNameT&& value) {
88 m_instanceNameHasBeenSet = true;
89 m_instanceName = std::forward<InstanceNameT>(value);
90 }
91 template <typename InstanceNameT = Aws::String>
93 SetInstanceName(std::forward<InstanceNameT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template <typename TagsT = Aws::Vector<Tag>>
107 void SetTags(TagsT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags = std::forward<TagsT>(value);
110 }
111 template <typename TagsT = Aws::Vector<Tag>>
113 SetTags(std::forward<TagsT>(value));
114 return *this;
115 }
116 template <typename TagsT = Tag>
118 m_tagsHasBeenSet = true;
119 m_tags.emplace_back(std::forward<TagsT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_diskName;
125
126 Aws::String m_diskSnapshotName;
127
128 Aws::String m_instanceName;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_diskNameHasBeenSet = false;
132 bool m_diskSnapshotNameHasBeenSet = false;
133 bool m_instanceNameHasBeenSet = false;
134 bool m_tagsHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Lightsail
139} // namespace Aws
CreateDiskSnapshotRequest & WithDiskName(DiskNameT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateDiskSnapshotRequest & AddTags(TagsT &&value)
AWS_LIGHTSAIL_API CreateDiskSnapshotRequest()=default
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateDiskSnapshotRequest & WithDiskSnapshotName(DiskSnapshotNameT &&value)
CreateDiskSnapshotRequest & WithInstanceName(InstanceNameT &&value)
CreateDiskSnapshotRequest & WithTags(TagsT &&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