AWS SDK for C++  1.9.157
AWS SDK for C++
ListMailDomainsResult.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 
42  inline const Aws::Vector<MailDomainSummary>& GetMailDomains() const{ return m_mailDomains; }
43 
49  inline void SetMailDomains(const Aws::Vector<MailDomainSummary>& value) { m_mailDomains = value; }
50 
56  inline void SetMailDomains(Aws::Vector<MailDomainSummary>&& value) { m_mailDomains = std::move(value); }
57 
63  inline ListMailDomainsResult& WithMailDomains(const Aws::Vector<MailDomainSummary>& value) { SetMailDomains(value); return *this;}
64 
70  inline ListMailDomainsResult& WithMailDomains(Aws::Vector<MailDomainSummary>&& value) { SetMailDomains(std::move(value)); return *this;}
71 
77  inline ListMailDomainsResult& AddMailDomains(const MailDomainSummary& value) { m_mailDomains.push_back(value); return *this; }
78 
84  inline ListMailDomainsResult& AddMailDomains(MailDomainSummary&& value) { m_mailDomains.push_back(std::move(value)); return *this; }
85 
86 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
97  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
98 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
104 
109  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
110 
115  inline ListMailDomainsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
121  inline ListMailDomainsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
127  inline ListMailDomainsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<MailDomainSummary> m_mailDomains;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace WorkMail
138 } // namespace Aws
Aws::WorkMail::Model::ListMailDomainsResult::WithMailDomains
ListMailDomainsResult & WithMailDomains(const Aws::Vector< MailDomainSummary > &value)
Definition: ListMailDomainsResult.h:63
Aws::WorkMail::Model::ListMailDomainsResult::WithNextToken
ListMailDomainsResult & WithNextToken(const Aws::String &value)
Definition: ListMailDomainsResult.h:115
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListMailDomainsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListMailDomainsResult.h:97
Aws::WorkMail::Model::ListMailDomainsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListMailDomainsResult.h:109
Aws::WorkMail::Model::ListMailDomainsResult
Definition: ListMailDomainsResult.h:30
Aws::WorkMail::Model::ListMailDomainsResult::WithNextToken
ListMailDomainsResult & WithNextToken(const char *value)
Definition: ListMailDomainsResult.h:127
Aws::WorkMail::Model::ListMailDomainsResult::WithMailDomains
ListMailDomainsResult & WithMailDomains(Aws::Vector< MailDomainSummary > &&value)
Definition: ListMailDomainsResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
AWSVector.h
Aws::WorkMail::Model::ListMailDomainsResult::operator=
ListMailDomainsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
MailDomainSummary.h
AWSString.h
Aws::WorkMail::Model::ListMailDomainsResult::ListMailDomainsResult
ListMailDomainsResult()
Aws::WorkMail::Model::ListMailDomainsResult::SetMailDomains
void SetMailDomains(Aws::Vector< MailDomainSummary > &&value)
Definition: ListMailDomainsResult.h:56
Aws::WorkMail::Model::ListMailDomainsResult::ListMailDomainsResult
ListMailDomainsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListMailDomainsResult::AddMailDomains
ListMailDomainsResult & AddMailDomains(MailDomainSummary &&value)
Definition: ListMailDomainsResult.h:84
Aws::WorkMail::Model::ListMailDomainsResult::WithNextToken
ListMailDomainsResult & WithNextToken(Aws::String &&value)
Definition: ListMailDomainsResult.h:121
Aws::WorkMail::Model::ListMailDomainsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListMailDomainsResult.h:103
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
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::MailDomainSummary
Definition: MailDomainSummary.h:32
Aws::WorkMail::Model::ListMailDomainsResult::AddMailDomains
ListMailDomainsResult & AddMailDomains(const MailDomainSummary &value)
Definition: ListMailDomainsResult.h:77
Aws::WorkMail::Model::ListMailDomainsResult::GetMailDomains
const Aws::Vector< MailDomainSummary > & GetMailDomains() const
Definition: ListMailDomainsResult.h:42
Aws::WorkMail::Model::ListMailDomainsResult::SetMailDomains
void SetMailDomains(const Aws::Vector< MailDomainSummary > &value)
Definition: ListMailDomainsResult.h:49
Aws::WorkMail::Model::ListMailDomainsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListMailDomainsResult.h:91