AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DiskNameT = Aws::String>
49 void SetDiskName(DiskNameT&& value) { m_diskNameHasBeenSet = true; m_diskName = std::forward<DiskNameT>(value); }
50 template<typename DiskNameT = Aws::String>
51 CreateDiskSnapshotRequest& WithDiskName(DiskNameT&& value) { SetDiskName(std::forward<DiskNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDiskSnapshotName() const { return m_diskSnapshotName; }
60 inline bool DiskSnapshotNameHasBeenSet() const { return m_diskSnapshotNameHasBeenSet; }
61 template<typename DiskSnapshotNameT = Aws::String>
62 void SetDiskSnapshotName(DiskSnapshotNameT&& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = std::forward<DiskSnapshotNameT>(value); }
63 template<typename DiskSnapshotNameT = Aws::String>
64 CreateDiskSnapshotRequest& WithDiskSnapshotName(DiskSnapshotNameT&& value) { SetDiskSnapshotName(std::forward<DiskSnapshotNameT>(value)); return *this;}
66
68
76 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
77 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
78 template<typename InstanceNameT = Aws::String>
79 void SetInstanceName(InstanceNameT&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::forward<InstanceNameT>(value); }
80 template<typename InstanceNameT = Aws::String>
81 CreateDiskSnapshotRequest& WithInstanceName(InstanceNameT&& value) { SetInstanceName(std::forward<InstanceNameT>(value)); return *this;}
83
85
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template<typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
94 template<typename TagsT = Aws::Vector<Tag>>
95 CreateDiskSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsT = Tag>
97 CreateDiskSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99 private:
100
101 Aws::String m_diskName;
102 bool m_diskNameHasBeenSet = false;
103
104 Aws::String m_diskSnapshotName;
105 bool m_diskSnapshotNameHasBeenSet = false;
106
107 Aws::String m_instanceName;
108 bool m_instanceNameHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Lightsail
116} // 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