AWS SDK for C++  1.9.46
AWS SDK for C++
ListMembersResult.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 GuardDuty
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Member>& GetMembers() const{ return m_members; }
41 
45  inline void SetMembers(const Aws::Vector<Member>& value) { m_members = value; }
46 
50  inline void SetMembers(Aws::Vector<Member>&& value) { m_members = std::move(value); }
51 
55  inline ListMembersResult& WithMembers(const Aws::Vector<Member>& value) { SetMembers(value); return *this;}
56 
60  inline ListMembersResult& WithMembers(Aws::Vector<Member>&& value) { SetMembers(std::move(value)); return *this;}
61 
65  inline ListMembersResult& AddMembers(const Member& value) { m_members.push_back(value); return *this; }
66 
70  inline ListMembersResult& AddMembers(Member&& value) { m_members.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 ListMembersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListMembersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListMembersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<Member> m_members;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace GuardDuty
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GuardDuty::Model::ListMembersResult::GetMembers
const Aws::Vector< Member > & GetMembers() const
Definition: ListMembersResult.h:40
Aws::GuardDuty::Model::ListMembersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListMembersResult.h:89
Aws::GuardDuty::Model::ListMembersResult::AddMembers
ListMembersResult & AddMembers(Member &&value)
Definition: ListMembersResult.h:70
Aws::GuardDuty::Model::ListMembersResult::operator=
ListMembersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::ListMembersResult::SetMembers
void SetMembers(const Aws::Vector< Member > &value)
Definition: ListMembersResult.h:45
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GuardDuty::Model::ListMembersResult::AddMembers
ListMembersResult & AddMembers(const Member &value)
Definition: ListMembersResult.h:65
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListMembersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListMembersResult.h:83
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Member
Definition: Member.h:32
Aws::GuardDuty::Model::ListMembersResult::ListMembersResult
ListMembersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::ListMembersResult::WithMembers
ListMembersResult & WithMembers(const Aws::Vector< Member > &value)
Definition: ListMembersResult.h:55
AWSString.h
Member.h
Aws::GuardDuty::Model::ListMembersResult::WithNextToken
ListMembersResult & WithNextToken(const Aws::String &value)
Definition: ListMembersResult.h:101
Aws::GuardDuty::Model::ListMembersResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListMembersResult.h:95
Aws::GuardDuty::Model::ListMembersResult::SetMembers
void SetMembers(Aws::Vector< Member > &&value)
Definition: ListMembersResult.h:50
Aws::GuardDuty::Model::ListMembersResult
Definition: ListMembersResult.h:30
Aws::GuardDuty::Model::ListMembersResult::WithMembers
ListMembersResult & WithMembers(Aws::Vector< Member > &&value)
Definition: ListMembersResult.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ListMembersResult::ListMembersResult
ListMembersResult()
Aws::GuardDuty::Model::ListMembersResult::WithNextToken
ListMembersResult & WithNextToken(const char *value)
Definition: ListMembersResult.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListMembersResult::WithNextToken
ListMembersResult & WithNextToken(Aws::String &&value)
Definition: ListMembersResult.h:107
Aws::GuardDuty::Model::ListMembersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListMembersResult.h:77