AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateAccessPointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateAccessPointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateAccessPointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
63 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
66 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
67 inline CreateAccessPointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
68 inline CreateAccessPointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
69 inline CreateAccessPointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
70 inline CreateAccessPointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
78 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
79 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
80 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
81 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
82 inline CreateAccessPointRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
83 inline CreateAccessPointRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
84 inline CreateAccessPointRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
86
88
92 inline const PosixUser& GetPosixUser() const{ return m_posixUser; }
93 inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
94 inline void SetPosixUser(const PosixUser& value) { m_posixUserHasBeenSet = true; m_posixUser = value; }
95 inline void SetPosixUser(PosixUser&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::move(value); }
96 inline CreateAccessPointRequest& WithPosixUser(const PosixUser& value) { SetPosixUser(value); return *this;}
97 inline CreateAccessPointRequest& WithPosixUser(PosixUser&& value) { SetPosixUser(std::move(value)); return *this;}
99
101
115 inline const RootDirectory& GetRootDirectory() const{ return m_rootDirectory; }
116 inline bool RootDirectoryHasBeenSet() const { return m_rootDirectoryHasBeenSet; }
117 inline void SetRootDirectory(const RootDirectory& value) { m_rootDirectoryHasBeenSet = true; m_rootDirectory = value; }
118 inline void SetRootDirectory(RootDirectory&& value) { m_rootDirectoryHasBeenSet = true; m_rootDirectory = std::move(value); }
119 inline CreateAccessPointRequest& WithRootDirectory(const RootDirectory& value) { SetRootDirectory(value); return *this;}
120 inline CreateAccessPointRequest& WithRootDirectory(RootDirectory&& value) { SetRootDirectory(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_clientToken;
125 bool m_clientTokenHasBeenSet = false;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_tagsHasBeenSet = false;
129
130 Aws::String m_fileSystemId;
131 bool m_fileSystemIdHasBeenSet = false;
132
133 PosixUser m_posixUser;
134 bool m_posixUserHasBeenSet = false;
135
136 RootDirectory m_rootDirectory;
137 bool m_rootDirectoryHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace EFS
142} // namespace Aws
CreateAccessPointRequest & WithFileSystemId(const Aws::String &value)
CreateAccessPointRequest & WithFileSystemId(const char *value)
CreateAccessPointRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAccessPointRequest & WithClientToken(const Aws::String &value)
void SetRootDirectory(const RootDirectory &value)
CreateAccessPointRequest & WithFileSystemId(Aws::String &&value)
CreateAccessPointRequest & WithRootDirectory(const RootDirectory &value)
CreateAccessPointRequest & WithClientToken(const char *value)
AWS_EFS_API Aws::String SerializePayload() const override
CreateAccessPointRequest & WithPosixUser(PosixUser &&value)
virtual const char * GetServiceRequestName() const override
CreateAccessPointRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateAccessPointRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAccessPointRequest & AddTags(const Tag &value)
CreateAccessPointRequest & AddTags(Tag &&value)
CreateAccessPointRequest & WithPosixUser(const PosixUser &value)
CreateAccessPointRequest & WithRootDirectory(RootDirectory &&value)
void SetTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector