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