AWS SDK for C++  1.9.156
AWS SDK for C++
ListContactsResult.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 SESV2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Contact>& GetContacts() const{ return m_contacts; }
41 
45  inline void SetContacts(const Aws::Vector<Contact>& value) { m_contacts = value; }
46 
50  inline void SetContacts(Aws::Vector<Contact>&& value) { m_contacts = std::move(value); }
51 
55  inline ListContactsResult& WithContacts(const Aws::Vector<Contact>& value) { SetContacts(value); return *this;}
56 
60  inline ListContactsResult& WithContacts(Aws::Vector<Contact>&& value) { SetContacts(std::move(value)); return *this;}
61 
65  inline ListContactsResult& AddContacts(const Contact& value) { m_contacts.push_back(value); return *this; }
66 
70  inline ListContactsResult& AddContacts(Contact&& value) { m_contacts.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 ListContactsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListContactsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListContactsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Contact> m_contacts;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace SESV2
131 } // namespace Aws
Contact.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SESV2::Model::ListContactsResult::AddContacts
ListContactsResult & AddContacts(Contact &&value)
Definition: ListContactsResult.h:70
Aws::SESV2::Model::ListContactsResult::WithNextToken
ListContactsResult & WithNextToken(Aws::String &&value)
Definition: ListContactsResult.h:113
Aws::SESV2::Model::ListContactsResult::ListContactsResult
ListContactsResult()
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::ListContactsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListContactsResult.h:78
Aws::SESV2::Model::ListContactsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListContactsResult.h:92
Aws::SESV2::Model::Contact
Definition: Contact.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::ListContactsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListContactsResult.h:85
Aws::SESV2::Model::ListContactsResult::WithContacts
ListContactsResult & WithContacts(const Aws::Vector< Contact > &value)
Definition: ListContactsResult.h:55
AWSVector.h
Aws::SESV2::Model::ListContactsResult::WithNextToken
ListContactsResult & WithNextToken(const char *value)
Definition: ListContactsResult.h:120
Aws::SESV2::Model::ListContactsResult::ListContactsResult
ListContactsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SESV2::Model::ListContactsResult::SetContacts
void SetContacts(Aws::Vector< Contact > &&value)
Definition: ListContactsResult.h:50
AWSString.h
Aws::SESV2::Model::ListContactsResult::SetContacts
void SetContacts(const Aws::Vector< Contact > &value)
Definition: ListContactsResult.h:45
SESV2_EXPORTS.h
Aws::SESV2::Model::ListContactsResult::operator=
ListContactsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::ListContactsResult::WithNextToken
ListContactsResult & WithNextToken(const Aws::String &value)
Definition: ListContactsResult.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::ListContactsResult::AddContacts
ListContactsResult & AddContacts(const Contact &value)
Definition: ListContactsResult.h:65
Aws::SESV2::Model::ListContactsResult::GetContacts
const Aws::Vector< Contact > & GetContacts() const
Definition: ListContactsResult.h:40
Aws::SESV2::Model::ListContactsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListContactsResult.h:99
Aws::SESV2::Model::ListContactsResult::WithContacts
ListContactsResult & WithContacts(Aws::Vector< Contact > &&value)
Definition: ListContactsResult.h:60
Aws::SESV2::Model::ListContactsResult
Definition: ListContactsResult.h:30