AWS SDK for C++  1.9.155
AWS SDK for C++
ListBranchesResult.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 Amplify
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<Branch>& GetBranches() const{ return m_branches; }
47 
51  inline void SetBranches(const Aws::Vector<Branch>& value) { m_branches = value; }
52 
56  inline void SetBranches(Aws::Vector<Branch>&& value) { m_branches = std::move(value); }
57 
61  inline ListBranchesResult& WithBranches(const Aws::Vector<Branch>& value) { SetBranches(value); return *this;}
62 
66  inline ListBranchesResult& WithBranches(Aws::Vector<Branch>&& value) { SetBranches(std::move(value)); return *this;}
67 
71  inline ListBranchesResult& AddBranches(const Branch& value) { m_branches.push_back(value); return *this; }
72 
76  inline ListBranchesResult& AddBranches(Branch&& value) { m_branches.push_back(std::move(value)); return *this; }
77 
78 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
95  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
96 
101  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
102 
107  inline ListBranchesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
108 
113  inline ListBranchesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
119  inline ListBranchesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
120 
121  private:
122 
123  Aws::Vector<Branch> m_branches;
124 
125  Aws::String m_nextToken;
126  };
127 
128 } // namespace Model
129 } // namespace Amplify
130 } // namespace Aws
Amplify_EXPORTS.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Amplify::Model::ListBranchesResult::WithNextToken
ListBranchesResult & WithNextToken(const Aws::String &value)
Definition: ListBranchesResult.h:107
Aws::Amplify::Model::ListBranchesResult::GetBranches
const Aws::Vector< Branch > & GetBranches() const
Definition: ListBranchesResult.h:46
Aws::Amplify::Model::ListBranchesResult::WithBranches
ListBranchesResult & WithBranches(Aws::Vector< Branch > &&value)
Definition: ListBranchesResult.h:66
Aws::Amplify::Model::ListBranchesResult::WithNextToken
ListBranchesResult & WithNextToken(Aws::String &&value)
Definition: ListBranchesResult.h:113
Aws::Amplify::Model::ListBranchesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListBranchesResult.h:101
Aws::Amplify::Model::ListBranchesResult::SetBranches
void SetBranches(const Aws::Vector< Branch > &value)
Definition: ListBranchesResult.h:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Amplify::Model::ListBranchesResult::AddBranches
ListBranchesResult & AddBranches(Branch &&value)
Definition: ListBranchesResult.h:76
Aws::Amplify::Model::ListBranchesResult::AddBranches
ListBranchesResult & AddBranches(const Branch &value)
Definition: ListBranchesResult.h:71
AWSVector.h
Branch.h
Aws::Amplify::Model::ListBranchesResult::WithNextToken
ListBranchesResult & WithNextToken(const char *value)
Definition: ListBranchesResult.h:119
Aws::Amplify::Model::ListBranchesResult::SetBranches
void SetBranches(Aws::Vector< Branch > &&value)
Definition: ListBranchesResult.h:56
Aws::Amplify::Model::ListBranchesResult::ListBranchesResult
ListBranchesResult()
AWSString.h
Aws::Amplify::Model::ListBranchesResult::WithBranches
ListBranchesResult & WithBranches(const Aws::Vector< Branch > &value)
Definition: ListBranchesResult.h:61
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::ListBranchesResult::ListBranchesResult
ListBranchesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Amplify::Model::Branch
Definition: Branch.h:37
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::ListBranchesResult
Definition: ListBranchesResult.h:36
Aws::Amplify::Model::ListBranchesResult::operator=
ListBranchesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Amplify::Model::ListBranchesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListBranchesResult.h:95
Aws::Amplify::Model::ListBranchesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListBranchesResult.h:83
Aws::Amplify::Model::ListBranchesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListBranchesResult.h:89
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28