AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateBackupRequest.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
27 public:
28 AWS_FSX_API CreateBackupRequest() = 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 "CreateBackup"; }
35
36 AWS_FSX_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
45 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
46 template <typename FileSystemIdT = Aws::String>
47 void SetFileSystemId(FileSystemIdT&& value) {
48 m_fileSystemIdHasBeenSet = true;
49 m_fileSystemId = std::forward<FileSystemIdT>(value);
50 }
51 template <typename FileSystemIdT = Aws::String>
52 CreateBackupRequest& WithFileSystemId(FileSystemIdT&& value) {
53 SetFileSystemId(std::forward<FileSystemIdT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 template <typename ClientRequestTokenT = Aws::String>
67 void SetClientRequestToken(ClientRequestTokenT&& value) {
68 m_clientRequestTokenHasBeenSet = true;
69 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
70 }
71 template <typename ClientRequestTokenT = Aws::String>
72 CreateBackupRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
73 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template <typename TagsT = Aws::Vector<Tag>>
89 void SetTags(TagsT&& value) {
90 m_tagsHasBeenSet = true;
91 m_tags = std::forward<TagsT>(value);
92 }
93 template <typename TagsT = Aws::Vector<Tag>>
94 CreateBackupRequest& WithTags(TagsT&& value) {
95 SetTags(std::forward<TagsT>(value));
96 return *this;
97 }
98 template <typename TagsT = Tag>
99 CreateBackupRequest& AddTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags.emplace_back(std::forward<TagsT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
111 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
112 template <typename VolumeIdT = Aws::String>
113 void SetVolumeId(VolumeIdT&& value) {
114 m_volumeIdHasBeenSet = true;
115 m_volumeId = std::forward<VolumeIdT>(value);
116 }
117 template <typename VolumeIdT = Aws::String>
118 CreateBackupRequest& WithVolumeId(VolumeIdT&& value) {
119 SetVolumeId(std::forward<VolumeIdT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_fileSystemId;
125
126 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
127
128 Aws::Vector<Tag> m_tags;
129
130 Aws::String m_volumeId;
131 bool m_fileSystemIdHasBeenSet = false;
132 bool m_clientRequestTokenHasBeenSet = true;
133 bool m_tagsHasBeenSet = false;
134 bool m_volumeIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace FSx
139} // namespace Aws
const Aws::String & GetFileSystemId() const
CreateBackupRequest & WithFileSystemId(FileSystemIdT &&value)
CreateBackupRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetVolumeId() const
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateBackupRequest & WithVolumeId(VolumeIdT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetClientRequestToken() const
AWS_FSX_API CreateBackupRequest()=default
void SetFileSystemId(FileSystemIdT &&value)
CreateBackupRequest & WithTags(TagsT &&value)
CreateBackupRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FSX_API Aws::String SerializePayload() const override
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