AWS SDK for C++  1.9.104
AWS SDK for C++
ListAccountAssignmentsResult.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 SSOAdmin
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<AccountAssignment>& GetAccountAssignments() const{ return m_accountAssignments; }
42 
47  inline void SetAccountAssignments(const Aws::Vector<AccountAssignment>& value) { m_accountAssignments = value; }
48 
53  inline void SetAccountAssignments(Aws::Vector<AccountAssignment>&& value) { m_accountAssignments = std::move(value); }
54 
59  inline ListAccountAssignmentsResult& WithAccountAssignments(const Aws::Vector<AccountAssignment>& value) { SetAccountAssignments(value); return *this;}
60 
65  inline ListAccountAssignmentsResult& WithAccountAssignments(Aws::Vector<AccountAssignment>&& value) { SetAccountAssignments(std::move(value)); return *this;}
66 
71  inline ListAccountAssignmentsResult& AddAccountAssignments(const AccountAssignment& value) { m_accountAssignments.push_back(value); return *this; }
72 
77  inline ListAccountAssignmentsResult& AddAccountAssignments(AccountAssignment&& value) { m_accountAssignments.push_back(std::move(value)); return *this; }
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
102  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
108  inline ListAccountAssignmentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline ListAccountAssignmentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline ListAccountAssignmentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<AccountAssignment> m_accountAssignments;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace SSOAdmin
131 } // namespace Aws
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::WithNextToken
ListAccountAssignmentsResult & WithNextToken(const char *value)
Definition: ListAccountAssignmentsResult.h:120
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccountAssignmentsResult.h:96
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::WithNextToken
ListAccountAssignmentsResult & WithNextToken(Aws::String &&value)
Definition: ListAccountAssignmentsResult.h:114
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::WithAccountAssignments
ListAccountAssignmentsResult & WithAccountAssignments(Aws::Vector< AccountAssignment > &&value)
Definition: ListAccountAssignmentsResult.h:65
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccountAssignmentsResult.h:102
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccountAssignmentsResult.h:84
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::SetAccountAssignments
void SetAccountAssignments(Aws::Vector< AccountAssignment > &&value)
Definition: ListAccountAssignmentsResult.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::ListAccountAssignmentsResult
ListAccountAssignmentsResult()
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccountAssignmentsResult.h:90
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::WithNextToken
ListAccountAssignmentsResult & WithNextToken(const Aws::String &value)
Definition: ListAccountAssignmentsResult.h:108
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
AWSVector.h
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::ListAccountAssignmentsResult
Definition: ListAccountAssignmentsResult.h:30
AWSString.h
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::SetAccountAssignments
void SetAccountAssignments(const Aws::Vector< AccountAssignment > &value)
Definition: ListAccountAssignmentsResult.h:47
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::AddAccountAssignments
ListAccountAssignmentsResult & AddAccountAssignments(const AccountAssignment &value)
Definition: ListAccountAssignmentsResult.h:71
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::AddAccountAssignments
ListAccountAssignmentsResult & AddAccountAssignments(AccountAssignment &&value)
Definition: ListAccountAssignmentsResult.h:77
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::WithAccountAssignments
ListAccountAssignmentsResult & WithAccountAssignments(const Aws::Vector< AccountAssignment > &value)
Definition: ListAccountAssignmentsResult.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::GetAccountAssignments
const Aws::Vector< AccountAssignment > & GetAccountAssignments() const
Definition: ListAccountAssignmentsResult.h:41
Aws::SSOAdmin::Model::AccountAssignment
Definition: AccountAssignment.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::operator=
ListAccountAssignmentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SSOAdmin::Model::ListAccountAssignmentsResult::ListAccountAssignmentsResult
ListAccountAssignmentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AccountAssignment.h