AWS SDK for C++  1.9.105
AWS SDK for C++
ListMailboxPermissionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace WorkMail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Permission>& GetPermissions() const{ return m_permissions; }
41 
45  inline void SetPermissions(const Aws::Vector<Permission>& value) { m_permissions = value; }
46 
50  inline void SetPermissions(Aws::Vector<Permission>&& value) { m_permissions = std::move(value); }
51 
55  inline ListMailboxPermissionsResult& WithPermissions(const Aws::Vector<Permission>& value) { SetPermissions(value); return *this;}
56 
60  inline ListMailboxPermissionsResult& WithPermissions(Aws::Vector<Permission>&& value) { SetPermissions(std::move(value)); return *this;}
61 
65  inline ListMailboxPermissionsResult& AddPermissions(const Permission& value) { m_permissions.push_back(value); return *this; }
66 
70  inline ListMailboxPermissionsResult& AddPermissions(Permission&& value) { m_permissions.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListMailboxPermissionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListMailboxPermissionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListMailboxPermissionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<Permission> m_permissions;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace WorkMail
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListMailboxPermissionsResult::SetPermissions
void SetPermissions(const Aws::Vector< Permission > &value)
Definition: ListMailboxPermissionsResult.h:45
Aws::WorkMail::Model::ListMailboxPermissionsResult::WithPermissions
ListMailboxPermissionsResult & WithPermissions(const Aws::Vector< Permission > &value)
Definition: ListMailboxPermissionsResult.h:55
Aws::WorkMail::Model::ListMailboxPermissionsResult::SetPermissions
void SetPermissions(Aws::Vector< Permission > &&value)
Definition: ListMailboxPermissionsResult.h:50
Aws::WorkMail::Model::ListMailboxPermissionsResult::GetPermissions
const Aws::Vector< Permission > & GetPermissions() const
Definition: ListMailboxPermissionsResult.h:40
Aws::WorkMail::Model::ListMailboxPermissionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListMailboxPermissionsResult.h:77
Aws::WorkMail::Model::ListMailboxPermissionsResult::WithNextToken
ListMailboxPermissionsResult & WithNextToken(const Aws::String &value)
Definition: ListMailboxPermissionsResult.h:101
Aws::WorkMail::Model::ListMailboxPermissionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListMailboxPermissionsResult.h:89
Aws::WorkMail::Model::Permission
Definition: Permission.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
Aws::WorkMail::Model::ListMailboxPermissionsResult::AddPermissions
ListMailboxPermissionsResult & AddPermissions(const Permission &value)
Definition: ListMailboxPermissionsResult.h:65
Aws::WorkMail::Model::ListMailboxPermissionsResult::AddPermissions
ListMailboxPermissionsResult & AddPermissions(Permission &&value)
Definition: ListMailboxPermissionsResult.h:70
AWSVector.h
Permission.h
Aws::WorkMail::Model::ListMailboxPermissionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListMailboxPermissionsResult.h:83
Aws::WorkMail::Model::ListMailboxPermissionsResult::WithNextToken
ListMailboxPermissionsResult & WithNextToken(const char *value)
Definition: ListMailboxPermissionsResult.h:113
Aws::WorkMail::Model::ListMailboxPermissionsResult::WithNextToken
ListMailboxPermissionsResult & WithNextToken(Aws::String &&value)
Definition: ListMailboxPermissionsResult.h:107
Aws::WorkMail::Model::ListMailboxPermissionsResult::ListMailboxPermissionsResult
ListMailboxPermissionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::WorkMail::Model::ListMailboxPermissionsResult::ListMailboxPermissionsResult
ListMailboxPermissionsResult()
Aws::WorkMail::Model::ListMailboxPermissionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListMailboxPermissionsResult.h:95
Aws::WorkMail::Model::ListMailboxPermissionsResult::WithPermissions
ListMailboxPermissionsResult & WithPermissions(Aws::Vector< Permission > &&value)
Definition: ListMailboxPermissionsResult.h:60
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::ListMailboxPermissionsResult
Definition: ListMailboxPermissionsResult.h:30
Aws::WorkMail::Model::ListMailboxPermissionsResult::operator=
ListMailboxPermissionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)