AWS SDK for C++  1.9.108
AWS SDK for C++
ListOrganizationsResult.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 
41  inline const Aws::Vector<OrganizationSummary>& GetOrganizationSummaries() const{ return m_organizationSummaries; }
42 
47  inline void SetOrganizationSummaries(const Aws::Vector<OrganizationSummary>& value) { m_organizationSummaries = value; }
48 
53  inline void SetOrganizationSummaries(Aws::Vector<OrganizationSummary>&& value) { m_organizationSummaries = std::move(value); }
54 
59  inline ListOrganizationsResult& WithOrganizationSummaries(const Aws::Vector<OrganizationSummary>& value) { SetOrganizationSummaries(value); return *this;}
60 
65  inline ListOrganizationsResult& WithOrganizationSummaries(Aws::Vector<OrganizationSummary>&& value) { SetOrganizationSummaries(std::move(value)); return *this;}
66 
71  inline ListOrganizationsResult& AddOrganizationSummaries(const OrganizationSummary& value) { m_organizationSummaries.push_back(value); return *this; }
72 
77  inline ListOrganizationsResult& AddOrganizationSummaries(OrganizationSummary&& value) { m_organizationSummaries.push_back(std::move(value)); return *this; }
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
102  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
108  inline ListOrganizationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline ListOrganizationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline ListOrganizationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<OrganizationSummary> m_organizationSummaries;
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::ListOrganizationsResult::GetOrganizationSummaries
const Aws::Vector< OrganizationSummary > & GetOrganizationSummaries() const
Definition: ListOrganizationsResult.h:41
Aws::WorkMail::Model::ListOrganizationsResult::ListOrganizationsResult
ListOrganizationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListOrganizationsResult::AddOrganizationSummaries
ListOrganizationsResult & AddOrganizationSummaries(const OrganizationSummary &value)
Definition: ListOrganizationsResult.h:71
Aws::WorkMail::Model::ListOrganizationsResult::WithOrganizationSummaries
ListOrganizationsResult & WithOrganizationSummaries(const Aws::Vector< OrganizationSummary > &value)
Definition: ListOrganizationsResult.h:59
Aws::WorkMail::Model::ListOrganizationsResult
Definition: ListOrganizationsResult.h:30
Aws::WorkMail::Model::ListOrganizationsResult::WithNextToken
ListOrganizationsResult & WithNextToken(const Aws::String &value)
Definition: ListOrganizationsResult.h:108
Aws::WorkMail::Model::ListOrganizationsResult::SetOrganizationSummaries
void SetOrganizationSummaries(Aws::Vector< OrganizationSummary > &&value)
Definition: ListOrganizationsResult.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
AWSVector.h
Aws::WorkMail::Model::ListOrganizationsResult::operator=
ListOrganizationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListOrganizationsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOrganizationsResult.h:84
OrganizationSummary.h
Aws::WorkMail::Model::ListOrganizationsResult::WithNextToken
ListOrganizationsResult & WithNextToken(const char *value)
Definition: ListOrganizationsResult.h:120
Aws::WorkMail::Model::ListOrganizationsResult::WithOrganizationSummaries
ListOrganizationsResult & WithOrganizationSummaries(Aws::Vector< OrganizationSummary > &&value)
Definition: ListOrganizationsResult.h:65
AWSString.h
Aws::WorkMail::Model::ListOrganizationsResult::AddOrganizationSummaries
ListOrganizationsResult & AddOrganizationSummaries(OrganizationSummary &&value)
Definition: ListOrganizationsResult.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::ListOrganizationsResult::SetOrganizationSummaries
void SetOrganizationSummaries(const Aws::Vector< OrganizationSummary > &value)
Definition: ListOrganizationsResult.h:47
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::OrganizationSummary
Definition: OrganizationSummary.h:32
Aws::WorkMail::Model::ListOrganizationsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOrganizationsResult.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::ListOrganizationsResult::WithNextToken
ListOrganizationsResult & WithNextToken(Aws::String &&value)
Definition: ListOrganizationsResult.h:114
Aws::WorkMail::Model::ListOrganizationsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOrganizationsResult.h:96
Aws::WorkMail::Model::ListOrganizationsResult::ListOrganizationsResult
ListOrganizationsResult()
Aws::WorkMail::Model::ListOrganizationsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOrganizationsResult.h:90