AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAccessPointRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticfilesystem/model/PosixUser.h>
12#include <aws/elasticfilesystem/model/RootDirectory.h>
13#include <aws/elasticfilesystem/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EFS
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EFS_API CreateAccessPointRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessPoint"; }
36
37 AWS_EFS_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreateAccessPointRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
65 template<typename TagsT = Aws::Vector<Tag>>
66 CreateAccessPointRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
67 template<typename TagsT = Tag>
68 CreateAccessPointRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
70
72
75 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
76 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
77 template<typename FileSystemIdT = Aws::String>
78 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
79 template<typename FileSystemIdT = Aws::String>
80 CreateAccessPointRequest& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
82
84
88 inline const PosixUser& GetPosixUser() const { return m_posixUser; }
89 inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
90 template<typename PosixUserT = PosixUser>
91 void SetPosixUser(PosixUserT&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::forward<PosixUserT>(value); }
92 template<typename PosixUserT = PosixUser>
93 CreateAccessPointRequest& WithPosixUser(PosixUserT&& value) { SetPosixUser(std::forward<PosixUserT>(value)); return *this;}
95
97
111 inline const RootDirectory& GetRootDirectory() const { return m_rootDirectory; }
112 inline bool RootDirectoryHasBeenSet() const { return m_rootDirectoryHasBeenSet; }
113 template<typename RootDirectoryT = RootDirectory>
114 void SetRootDirectory(RootDirectoryT&& value) { m_rootDirectoryHasBeenSet = true; m_rootDirectory = std::forward<RootDirectoryT>(value); }
115 template<typename RootDirectoryT = RootDirectory>
116 CreateAccessPointRequest& WithRootDirectory(RootDirectoryT&& value) { SetRootDirectory(std::forward<RootDirectoryT>(value)); return *this;}
118 private:
119
121 bool m_clientTokenHasBeenSet = true;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_tagsHasBeenSet = false;
125
126 Aws::String m_fileSystemId;
127 bool m_fileSystemIdHasBeenSet = false;
128
129 PosixUser m_posixUser;
130 bool m_posixUserHasBeenSet = false;
131
132 RootDirectory m_rootDirectory;
133 bool m_rootDirectoryHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace EFS
138} // 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