AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAccessPointRequest.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/elasticfilesystem/EFSRequest.h>
11#include <aws/elasticfilesystem/EFS_EXPORTS.h>
12#include <aws/elasticfilesystem/model/PosixUser.h>
13#include <aws/elasticfilesystem/model/RootDirectory.h>
14#include <aws/elasticfilesystem/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace EFS {
20namespace Model {
21
25 public:
26 AWS_EFS_API CreateAccessPointRequest() = 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 "CreateAccessPoint"; }
33
34 AWS_EFS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 template <typename TagsT = Aws::Vector<Tag>>
66 void SetTags(TagsT&& value) {
67 m_tagsHasBeenSet = true;
68 m_tags = std::forward<TagsT>(value);
69 }
70 template <typename TagsT = Aws::Vector<Tag>>
72 SetTags(std::forward<TagsT>(value));
73 return *this;
74 }
75 template <typename TagsT = Tag>
77 m_tagsHasBeenSet = true;
78 m_tags.emplace_back(std::forward<TagsT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
88 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
89 template <typename FileSystemIdT = Aws::String>
90 void SetFileSystemId(FileSystemIdT&& value) {
91 m_fileSystemIdHasBeenSet = true;
92 m_fileSystemId = std::forward<FileSystemIdT>(value);
93 }
94 template <typename FileSystemIdT = Aws::String>
96 SetFileSystemId(std::forward<FileSystemIdT>(value));
97 return *this;
98 }
100
102
106 inline const PosixUser& GetPosixUser() const { return m_posixUser; }
107 inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
108 template <typename PosixUserT = PosixUser>
109 void SetPosixUser(PosixUserT&& value) {
110 m_posixUserHasBeenSet = true;
111 m_posixUser = std::forward<PosixUserT>(value);
112 }
113 template <typename PosixUserT = PosixUser>
115 SetPosixUser(std::forward<PosixUserT>(value));
116 return *this;
117 }
119
121
135 inline const RootDirectory& GetRootDirectory() const { return m_rootDirectory; }
136 inline bool RootDirectoryHasBeenSet() const { return m_rootDirectoryHasBeenSet; }
137 template <typename RootDirectoryT = RootDirectory>
138 void SetRootDirectory(RootDirectoryT&& value) {
139 m_rootDirectoryHasBeenSet = true;
140 m_rootDirectory = std::forward<RootDirectoryT>(value);
141 }
142 template <typename RootDirectoryT = RootDirectory>
144 SetRootDirectory(std::forward<RootDirectoryT>(value));
145 return *this;
146 }
148 private:
150
151 Aws::Vector<Tag> m_tags;
152
153 Aws::String m_fileSystemId;
154
155 PosixUser m_posixUser;
156
157 RootDirectory m_rootDirectory;
158 bool m_clientTokenHasBeenSet = true;
159 bool m_tagsHasBeenSet = false;
160 bool m_fileSystemIdHasBeenSet = false;
161 bool m_posixUserHasBeenSet = false;
162 bool m_rootDirectoryHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace EFS
167} // namespace Aws
CreateAccessPointRequest & WithRootDirectory(RootDirectoryT &&value)
CreateAccessPointRequest & WithPosixUser(PosixUserT &&value)
AWS_EFS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateAccessPointRequest & AddTags(TagsT &&value)
AWS_EFS_API CreateAccessPointRequest()=default
CreateAccessPointRequest & WithFileSystemId(FileSystemIdT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateAccessPointRequest & WithClientToken(ClientTokenT &&value)
CreateAccessPointRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector