AWS SDK for C++  1.9.124
AWS SDK for C++
ListGroupsResult.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<Group>& GetGroups() const{ return m_groups; }
41 
45  inline void SetGroups(const Aws::Vector<Group>& value) { m_groups = value; }
46 
50  inline void SetGroups(Aws::Vector<Group>&& value) { m_groups = std::move(value); }
51 
55  inline ListGroupsResult& WithGroups(const Aws::Vector<Group>& value) { SetGroups(value); return *this;}
56 
60  inline ListGroupsResult& WithGroups(Aws::Vector<Group>&& value) { SetGroups(std::move(value)); return *this;}
61 
65  inline ListGroupsResult& AddGroups(const Group& value) { m_groups.push_back(value); return *this; }
66 
70  inline ListGroupsResult& AddGroups(Group&& value) { m_groups.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 ListGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<Group> m_groups;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace WorkMail
124 } // namespace Aws
Aws::WorkMail::Model::ListGroupsResult::AddGroups
ListGroupsResult & AddGroups(const Group &value)
Definition: ListGroupsResult.h:65
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListGroupsResult::GetGroups
const Aws::Vector< Group > & GetGroups() const
Definition: ListGroupsResult.h:40
Aws::WorkMail::Model::ListGroupsResult::SetGroups
void SetGroups(const Aws::Vector< Group > &value)
Definition: ListGroupsResult.h:45
Aws::WorkMail::Model::ListGroupsResult::operator=
ListGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListGroupsResult::ListGroupsResult
ListGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkMail::Model::ListGroupsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListGroupsResult.h:83
WorkMail_EXPORTS.h
Aws::WorkMail::Model::ListGroupsResult::SetGroups
void SetGroups(Aws::Vector< Group > &&value)
Definition: ListGroupsResult.h:50
AWSVector.h
Aws::WorkMail::Model::ListGroupsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListGroupsResult.h:95
Aws::WorkMail::Model::ListGroupsResult::AddGroups
ListGroupsResult & AddGroups(Group &&value)
Definition: ListGroupsResult.h:70
Aws::WorkMail::Model::ListGroupsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListGroupsResult.h:77
Group.h
Aws::WorkMail::Model::ListGroupsResult
Definition: ListGroupsResult.h:30
Aws::WorkMail::Model::ListGroupsResult::WithGroups
ListGroupsResult & WithGroups(Aws::Vector< Group > &&value)
Definition: ListGroupsResult.h:60
Aws::WorkMail::Model::ListGroupsResult::WithGroups
ListGroupsResult & WithGroups(const Aws::Vector< Group > &value)
Definition: ListGroupsResult.h:55
AWSString.h
Aws::WorkMail::Model::ListGroupsResult::WithNextToken
ListGroupsResult & WithNextToken(const char *value)
Definition: ListGroupsResult.h:113
Aws::WorkMail::Model::ListGroupsResult::ListGroupsResult
ListGroupsResult()
Aws::WorkMail::Model::ListGroupsResult::WithNextToken
ListGroupsResult & WithNextToken(Aws::String &&value)
Definition: ListGroupsResult.h:107
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::ListGroupsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListGroupsResult.h:89
Aws::WorkMail::Model::Group
Definition: Group.h:34
Aws::WorkMail::Model::ListGroupsResult::WithNextToken
ListGroupsResult & WithNextToken(const Aws::String &value)
Definition: ListGroupsResult.h:101