AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateSnapshotRequest.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/storagegateway/StorageGatewayRequest.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11#include <aws/storagegateway/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace StorageGateway {
17namespace Model {
18
27 public:
28 AWS_STORAGEGATEWAY_API CreateSnapshotRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
35
36 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
37
38 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
45 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
46 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
47 template <typename VolumeARNT = Aws::String>
48 void SetVolumeARN(VolumeARNT&& value) {
49 m_volumeARNHasBeenSet = true;
50 m_volumeARN = std::forward<VolumeARNT>(value);
51 }
52 template <typename VolumeARNT = Aws::String>
53 CreateSnapshotRequest& WithVolumeARN(VolumeARNT&& value) {
54 SetVolumeARN(std::forward<VolumeARNT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetSnapshotDescription() const { return m_snapshotDescription; }
66 inline bool SnapshotDescriptionHasBeenSet() const { return m_snapshotDescriptionHasBeenSet; }
67 template <typename SnapshotDescriptionT = Aws::String>
68 void SetSnapshotDescription(SnapshotDescriptionT&& value) {
69 m_snapshotDescriptionHasBeenSet = true;
70 m_snapshotDescription = std::forward<SnapshotDescriptionT>(value);
71 }
72 template <typename SnapshotDescriptionT = Aws::String>
73 CreateSnapshotRequest& WithSnapshotDescription(SnapshotDescriptionT&& value) {
74 SetSnapshotDescription(std::forward<SnapshotDescriptionT>(value));
75 return *this;
76 }
78
80
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template <typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags = std::forward<TagsT>(value);
93 }
94 template <typename TagsT = Aws::Vector<Tag>>
96 SetTags(std::forward<TagsT>(value));
97 return *this;
98 }
99 template <typename TagsT = Tag>
101 m_tagsHasBeenSet = true;
102 m_tags.emplace_back(std::forward<TagsT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_volumeARN;
108
109 Aws::String m_snapshotDescription;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_volumeARNHasBeenSet = false;
113 bool m_snapshotDescriptionHasBeenSet = false;
114 bool m_tagsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace StorageGateway
119} // namespace Aws
void SetSnapshotDescription(SnapshotDescriptionT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_STORAGEGATEWAY_API CreateSnapshotRequest()=default
CreateSnapshotRequest & WithVolumeARN(VolumeARNT &&value)
CreateSnapshotRequest & AddTags(TagsT &&value)
CreateSnapshotRequest & WithSnapshotDescription(SnapshotDescriptionT &&value)
CreateSnapshotRequest & WithTags(TagsT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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