AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fsx/FSxRequest.h>
11#include <aws/fsx/FSx_EXPORTS.h>
12#include <aws/fsx/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace FSx {
18namespace Model {
19
23 public:
24 AWS_FSX_API CreateSnapshotRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
31
32 AWS_FSX_API Aws::String SerializePayload() const override;
33
35
37
38 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
39 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
40 template <typename ClientRequestTokenT = Aws::String>
41 void SetClientRequestToken(ClientRequestTokenT&& value) {
42 m_clientRequestTokenHasBeenSet = true;
43 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
44 }
45 template <typename ClientRequestTokenT = Aws::String>
46 CreateSnapshotRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
47 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
75 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
76 template <typename VolumeIdT = Aws::String>
77 void SetVolumeId(VolumeIdT&& value) {
78 m_volumeIdHasBeenSet = true;
79 m_volumeId = std::forward<VolumeIdT>(value);
80 }
81 template <typename VolumeIdT = Aws::String>
82 CreateSnapshotRequest& WithVolumeId(VolumeIdT&& value) {
83 SetVolumeId(std::forward<VolumeIdT>(value));
84 return *this;
85 }
87
89
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) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Vector<Tag>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsT = Tag>
104 m_tagsHasBeenSet = true;
105 m_tags.emplace_back(std::forward<TagsT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
111
112 Aws::String m_name;
113
114 Aws::String m_volumeId;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_clientRequestTokenHasBeenSet = true;
118 bool m_nameHasBeenSet = false;
119 bool m_volumeIdHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace FSx
125} // namespace Aws
CreateSnapshotRequest & AddTags(TagsT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API CreateSnapshotRequest()=default
AWS_FSX_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & WithVolumeId(VolumeIdT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateSnapshotRequest & WithTags(TagsT &&value)
const Aws::String & GetClientRequestToken() const
CreateSnapshotRequest & WithName(NameT &&value)
CreateSnapshotRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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