AWS SDK for C++  1.9.108
AWS SDK for C++
ListAliasesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace WorkMail
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Aws::String>& GetAliases() const{ return m_aliases; }
40 
44  inline void SetAliases(const Aws::Vector<Aws::String>& value) { m_aliases = value; }
45 
49  inline void SetAliases(Aws::Vector<Aws::String>&& value) { m_aliases = std::move(value); }
50 
54  inline ListAliasesResult& WithAliases(const Aws::Vector<Aws::String>& value) { SetAliases(value); return *this;}
55 
59  inline ListAliasesResult& WithAliases(Aws::Vector<Aws::String>&& value) { SetAliases(std::move(value)); return *this;}
60 
64  inline ListAliasesResult& AddAliases(const Aws::String& value) { m_aliases.push_back(value); return *this; }
65 
69  inline ListAliasesResult& AddAliases(Aws::String&& value) { m_aliases.push_back(std::move(value)); return *this; }
70 
74  inline ListAliasesResult& AddAliases(const char* value) { m_aliases.push_back(value); return *this; }
75 
76 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
87  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
88 
93  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
94 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
105  inline ListAliasesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
106 
111  inline ListAliasesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 
117  inline ListAliasesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118 
119  private:
120 
121  Aws::Vector<Aws::String> m_aliases;
122 
123  Aws::String m_nextToken;
124  };
125 
126 } // namespace Model
127 } // namespace WorkMail
128 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListAliasesResult::WithNextToken
ListAliasesResult & WithNextToken(const char *value)
Definition: ListAliasesResult.h:117
Aws::WorkMail::Model::ListAliasesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAliasesResult.h:93
Aws::WorkMail::Model::ListAliasesResult::SetAliases
void SetAliases(const Aws::Vector< Aws::String > &value)
Definition: ListAliasesResult.h:44
Aws::WorkMail::Model::ListAliasesResult::ListAliasesResult
ListAliasesResult()
Aws::WorkMail::Model::ListAliasesResult::ListAliasesResult
ListAliasesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
Aws::WorkMail::Model::ListAliasesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAliasesResult.h:81
AWSVector.h
Aws::WorkMail::Model::ListAliasesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAliasesResult.h:99
Aws::WorkMail::Model::ListAliasesResult::GetAliases
const Aws::Vector< Aws::String > & GetAliases() const
Definition: ListAliasesResult.h:39
Aws::WorkMail::Model::ListAliasesResult::WithNextToken
ListAliasesResult & WithNextToken(const Aws::String &value)
Definition: ListAliasesResult.h:105
Aws::WorkMail::Model::ListAliasesResult::WithAliases
ListAliasesResult & WithAliases(Aws::Vector< Aws::String > &&value)
Definition: ListAliasesResult.h:59
Aws::WorkMail::Model::ListAliasesResult::AddAliases
ListAliasesResult & AddAliases(Aws::String &&value)
Definition: ListAliasesResult.h:69
Aws::WorkMail::Model::ListAliasesResult::SetAliases
void SetAliases(Aws::Vector< Aws::String > &&value)
Definition: ListAliasesResult.h:49
AWSString.h
Aws::WorkMail::Model::ListAliasesResult::WithAliases
ListAliasesResult & WithAliases(const Aws::Vector< Aws::String > &value)
Definition: ListAliasesResult.h:54
Aws::WorkMail::Model::ListAliasesResult
Definition: ListAliasesResult.h:29
Aws::WorkMail::Model::ListAliasesResult::operator=
ListAliasesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListAliasesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAliasesResult.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::ListAliasesResult::WithNextToken
ListAliasesResult & WithNextToken(Aws::String &&value)
Definition: ListAliasesResult.h:111
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::ListAliasesResult::AddAliases
ListAliasesResult & AddAliases(const char *value)
Definition: ListAliasesResult.h:74
Aws::WorkMail::Model::ListAliasesResult::AddAliases
ListAliasesResult & AddAliases(const Aws::String &value)
Definition: ListAliasesResult.h:64