AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/s3files/S3FilesRequest.h>
11#include <aws/s3files/S3Files_EXPORTS.h>
12#include <aws/s3files/model/PosixUser.h>
13#include <aws/s3files/model/RootDirectory.h>
14#include <aws/s3files/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace S3Files {
20namespace Model {
21
25 public:
26 AWS_S3FILES_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_S3FILES_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Vector<Tag>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Vector<Tag>>
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsT = Tag>
75 m_tagsHasBeenSet = true;
76 m_tags.emplace_back(std::forward<TagsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
86 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
87 template <typename FileSystemIdT = Aws::String>
88 void SetFileSystemId(FileSystemIdT&& value) {
89 m_fileSystemIdHasBeenSet = true;
90 m_fileSystemId = std::forward<FileSystemIdT>(value);
91 }
92 template <typename FileSystemIdT = Aws::String>
94 SetFileSystemId(std::forward<FileSystemIdT>(value));
95 return *this;
96 }
98
100
104 inline const PosixUser& GetPosixUser() const { return m_posixUser; }
105 inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
106 template <typename PosixUserT = PosixUser>
107 void SetPosixUser(PosixUserT&& value) {
108 m_posixUserHasBeenSet = true;
109 m_posixUser = std::forward<PosixUserT>(value);
110 }
111 template <typename PosixUserT = PosixUser>
113 SetPosixUser(std::forward<PosixUserT>(value));
114 return *this;
115 }
117
119
123 inline const RootDirectory& GetRootDirectory() const { return m_rootDirectory; }
124 inline bool RootDirectoryHasBeenSet() const { return m_rootDirectoryHasBeenSet; }
125 template <typename RootDirectoryT = RootDirectory>
126 void SetRootDirectory(RootDirectoryT&& value) {
127 m_rootDirectoryHasBeenSet = true;
128 m_rootDirectory = std::forward<RootDirectoryT>(value);
129 }
130 template <typename RootDirectoryT = RootDirectory>
132 SetRootDirectory(std::forward<RootDirectoryT>(value));
133 return *this;
134 }
136 private:
138
139 Aws::Vector<Tag> m_tags;
140
141 Aws::String m_fileSystemId;
142
143 PosixUser m_posixUser;
144
145 RootDirectory m_rootDirectory;
146 bool m_clientTokenHasBeenSet = true;
147 bool m_tagsHasBeenSet = false;
148 bool m_fileSystemIdHasBeenSet = false;
149 bool m_posixUserHasBeenSet = false;
150 bool m_rootDirectoryHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace S3Files
155} // namespace Aws
CreateAccessPointRequest & WithPosixUser(PosixUserT &&value)
CreateAccessPointRequest & AddTags(TagsT &&value)
AWS_S3FILES_API CreateAccessPointRequest()=default
CreateAccessPointRequest & WithFileSystemId(FileSystemIdT &&value)
AWS_S3FILES_API Aws::String SerializePayload() const override
CreateAccessPointRequest & WithRootDirectory(RootDirectoryT &&value)
virtual const char * GetServiceRequestName() const override
CreateAccessPointRequest & WithTags(TagsT &&value)
CreateAccessPointRequest & WithClientToken(ClientTokenT &&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