AWS SDK for C++  1.9.108
AWS SDK for C++
ListHandshakesForAccountResult.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 Organizations
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<Handshake>& GetHandshakes() const{ return m_handshakes; }
42 
47  inline void SetHandshakes(const Aws::Vector<Handshake>& value) { m_handshakes = value; }
48 
53  inline void SetHandshakes(Aws::Vector<Handshake>&& value) { m_handshakes = std::move(value); }
54 
59  inline ListHandshakesForAccountResult& WithHandshakes(const Aws::Vector<Handshake>& value) { SetHandshakes(value); return *this;}
60 
65  inline ListHandshakesForAccountResult& WithHandshakes(Aws::Vector<Handshake>&& value) { SetHandshakes(std::move(value)); return *this;}
66 
71  inline ListHandshakesForAccountResult& AddHandshakes(const Handshake& value) { m_handshakes.push_back(value); return *this; }
72 
77  inline ListHandshakesForAccountResult& AddHandshakes(Handshake&& value) { m_handshakes.push_back(std::move(value)); return *this; }
78 
79 
87  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 
96  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
97 
105  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
106 
114  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
115 
123  inline ListHandshakesForAccountResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
124 
132  inline ListHandshakesForAccountResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
141  inline ListHandshakesForAccountResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143  private:
144 
145  Aws::Vector<Handshake> m_handshakes;
146 
147  Aws::String m_nextToken;
148  };
149 
150 } // namespace Model
151 } // namespace Organizations
152 } // namespace Aws
Aws::Organizations::Model::ListHandshakesForAccountResult
Definition: ListHandshakesForAccountResult.h:30
Aws::Organizations::Model::ListHandshakesForAccountResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListHandshakesForAccountResult.h:87
Aws::Organizations::Model::ListHandshakesForAccountResult::operator=
ListHandshakesForAccountResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListHandshakesForAccountResult::SetHandshakes
void SetHandshakes(const Aws::Vector< Handshake > &value)
Definition: ListHandshakesForAccountResult.h:47
Aws::Organizations::Model::ListHandshakesForAccountResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListHandshakesForAccountResult.h:96
Aws::Organizations::Model::ListHandshakesForAccountResult::WithNextToken
ListHandshakesForAccountResult & WithNextToken(Aws::String &&value)
Definition: ListHandshakesForAccountResult.h:132
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListHandshakesForAccountResult::WithHandshakes
ListHandshakesForAccountResult & WithHandshakes(const Aws::Vector< Handshake > &value)
Definition: ListHandshakesForAccountResult.h:59
Aws::Organizations::Model::Handshake
Definition: Handshake.h:45
Aws::Organizations::Model::ListHandshakesForAccountResult::GetHandshakes
const Aws::Vector< Handshake > & GetHandshakes() const
Definition: ListHandshakesForAccountResult.h:41
Aws::Organizations::Model::ListHandshakesForAccountResult::AddHandshakes
ListHandshakesForAccountResult & AddHandshakes(Handshake &&value)
Definition: ListHandshakesForAccountResult.h:77
AWSVector.h
Aws::Organizations::Model::ListHandshakesForAccountResult::AddHandshakes
ListHandshakesForAccountResult & AddHandshakes(const Handshake &value)
Definition: ListHandshakesForAccountResult.h:71
Handshake.h
Aws::Organizations::Model::ListHandshakesForAccountResult::ListHandshakesForAccountResult
ListHandshakesForAccountResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListHandshakesForAccountResult::SetHandshakes
void SetHandshakes(Aws::Vector< Handshake > &&value)
Definition: ListHandshakesForAccountResult.h:53
Aws::Organizations::Model::ListHandshakesForAccountResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListHandshakesForAccountResult.h:114
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListHandshakesForAccountResult::ListHandshakesForAccountResult
ListHandshakesForAccountResult()
Aws::Organizations::Model::ListHandshakesForAccountResult::WithNextToken
ListHandshakesForAccountResult & WithNextToken(const Aws::String &value)
Definition: ListHandshakesForAccountResult.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::ListHandshakesForAccountResult::WithNextToken
ListHandshakesForAccountResult & WithNextToken(const char *value)
Definition: ListHandshakesForAccountResult.h:141
Organizations_EXPORTS.h
Aws::Organizations::Model::ListHandshakesForAccountResult::WithHandshakes
ListHandshakesForAccountResult & WithHandshakes(Aws::Vector< Handshake > &&value)
Definition: ListHandshakesForAccountResult.h:65
Aws::Organizations::Model::ListHandshakesForAccountResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListHandshakesForAccountResult.h:105