AWS SDK for C++  1.9.104
AWS SDK for C++
ListResourceDelegatesResult.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<Delegate>& GetDelegates() const{ return m_delegates; }
41 
45  inline void SetDelegates(const Aws::Vector<Delegate>& value) { m_delegates = value; }
46 
50  inline void SetDelegates(Aws::Vector<Delegate>&& value) { m_delegates = std::move(value); }
51 
55  inline ListResourceDelegatesResult& WithDelegates(const Aws::Vector<Delegate>& value) { SetDelegates(value); return *this;}
56 
60  inline ListResourceDelegatesResult& WithDelegates(Aws::Vector<Delegate>&& value) { SetDelegates(std::move(value)); return *this;}
61 
65  inline ListResourceDelegatesResult& AddDelegates(const Delegate& value) { m_delegates.push_back(value); return *this; }
66 
70  inline ListResourceDelegatesResult& AddDelegates(Delegate&& value) { m_delegates.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline ListResourceDelegatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListResourceDelegatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListResourceDelegatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Delegate> m_delegates;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace WorkMail
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListResourceDelegatesResult::GetDelegates
const Aws::Vector< Delegate > & GetDelegates() const
Definition: ListResourceDelegatesResult.h:40
Aws::WorkMail::Model::ListResourceDelegatesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListResourceDelegatesResult.h:78
Aws::WorkMail::Model::ListResourceDelegatesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListResourceDelegatesResult.h:92
Aws::WorkMail::Model::ListResourceDelegatesResult::WithDelegates
ListResourceDelegatesResult & WithDelegates(Aws::Vector< Delegate > &&value)
Definition: ListResourceDelegatesResult.h:60
Aws::WorkMail::Model::ListResourceDelegatesResult::SetDelegates
void SetDelegates(const Aws::Vector< Delegate > &value)
Definition: ListResourceDelegatesResult.h:45
Aws::WorkMail::Model::ListResourceDelegatesResult::AddDelegates
ListResourceDelegatesResult & AddDelegates(Delegate &&value)
Definition: ListResourceDelegatesResult.h:70
Aws::WorkMail::Model::ListResourceDelegatesResult::ListResourceDelegatesResult
ListResourceDelegatesResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
AWSVector.h
Aws::WorkMail::Model::ListResourceDelegatesResult::WithDelegates
ListResourceDelegatesResult & WithDelegates(const Aws::Vector< Delegate > &value)
Definition: ListResourceDelegatesResult.h:55
Aws::WorkMail::Model::ListResourceDelegatesResult::WithNextToken
ListResourceDelegatesResult & WithNextToken(const char *value)
Definition: ListResourceDelegatesResult.h:120
Aws::WorkMail::Model::ListResourceDelegatesResult::WithNextToken
ListResourceDelegatesResult & WithNextToken(Aws::String &&value)
Definition: ListResourceDelegatesResult.h:113
Aws::WorkMail::Model::ListResourceDelegatesResult::ListResourceDelegatesResult
ListResourceDelegatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::Delegate
Definition: Delegate.h:34
Aws::WorkMail::Model::ListResourceDelegatesResult::operator=
ListResourceDelegatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::WorkMail::Model::ListResourceDelegatesResult::WithNextToken
ListResourceDelegatesResult & WithNextToken(const Aws::String &value)
Definition: ListResourceDelegatesResult.h:106
Aws::WorkMail::Model::ListResourceDelegatesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListResourceDelegatesResult.h:99
Aws::WorkMail::Model::ListResourceDelegatesResult::SetDelegates
void SetDelegates(Aws::Vector< Delegate > &&value)
Definition: ListResourceDelegatesResult.h:50
Aws::WorkMail::Model::ListResourceDelegatesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListResourceDelegatesResult.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::ListResourceDelegatesResult
Definition: ListResourceDelegatesResult.h:30
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Delegate.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::ListResourceDelegatesResult::AddDelegates
ListResourceDelegatesResult & AddDelegates(const Delegate &value)
Definition: ListResourceDelegatesResult.h:65