AWS SDK for C++  1.8.152
AWS SDK for C++
ListBranchesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeCommit
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Aws::String>& GetBranches() const{ return m_branches; }
46 
50  inline void SetBranches(const Aws::Vector<Aws::String>& value) { m_branches = value; }
51 
55  inline void SetBranches(Aws::Vector<Aws::String>&& value) { m_branches = std::move(value); }
56 
60  inline ListBranchesResult& WithBranches(const Aws::Vector<Aws::String>& value) { SetBranches(value); return *this;}
61 
65  inline ListBranchesResult& WithBranches(Aws::Vector<Aws::String>&& value) { SetBranches(std::move(value)); return *this;}
66 
70  inline ListBranchesResult& AddBranches(const Aws::String& value) { m_branches.push_back(value); return *this; }
71 
75  inline ListBranchesResult& AddBranches(Aws::String&& value) { m_branches.push_back(std::move(value)); return *this; }
76 
80  inline ListBranchesResult& AddBranches(const char* value) { m_branches.push_back(value); return *this; }
81 
82 
86  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
101  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
102 
106  inline ListBranchesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
111  inline ListBranchesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 
116  inline ListBranchesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117 
118  private:
119 
120  Aws::Vector<Aws::String> m_branches;
121 
122  Aws::String m_nextToken;
123  };
124 
125 } // namespace Model
126 } // namespace CodeCommit
127 } // namespace Aws
Aws::CodeCommit::Model::ListBranchesResult::WithNextToken
ListBranchesResult & WithNextToken(const char *value)
Definition: ListBranchesResult.h:116
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ListBranchesResult::AddBranches
ListBranchesResult & AddBranches(const char *value)
Definition: ListBranchesResult.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CodeCommit::Model::ListBranchesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListBranchesResult.h:101
Aws::CodeCommit::Model::ListBranchesResult::WithBranches
ListBranchesResult & WithBranches(Aws::Vector< Aws::String > &&value)
Definition: ListBranchesResult.h:65
Aws::CodeCommit::Model::ListBranchesResult::GetBranches
const Aws::Vector< Aws::String > & GetBranches() const
Definition: ListBranchesResult.h:45
Aws::CodeCommit::Model::ListBranchesResult::ListBranchesResult
ListBranchesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::ListBranchesResult::AddBranches
ListBranchesResult & AddBranches(const Aws::String &value)
Definition: ListBranchesResult.h:70
Aws::CodeCommit::Model::ListBranchesResult
Definition: ListBranchesResult.h:35
Aws::CodeCommit::Model::ListBranchesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListBranchesResult.h:96
Aws::CodeCommit::Model::ListBranchesResult::WithNextToken
ListBranchesResult & WithNextToken(const Aws::String &value)
Definition: ListBranchesResult.h:106
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListBranchesResult::SetBranches
void SetBranches(const Aws::Vector< Aws::String > &value)
Definition: ListBranchesResult.h:50
Aws::CodeCommit::Model::ListBranchesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListBranchesResult.h:86
Aws::CodeCommit::Model::ListBranchesResult::ListBranchesResult
ListBranchesResult()
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ListBranchesResult::SetBranches
void SetBranches(Aws::Vector< Aws::String > &&value)
Definition: ListBranchesResult.h:55
Aws::CodeCommit::Model::ListBranchesResult::AddBranches
ListBranchesResult & AddBranches(Aws::String &&value)
Definition: ListBranchesResult.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ListBranchesResult::WithBranches
ListBranchesResult & WithBranches(const Aws::Vector< Aws::String > &value)
Definition: ListBranchesResult.h:60
Aws::CodeCommit::Model::ListBranchesResult::WithNextToken
ListBranchesResult & WithNextToken(Aws::String &&value)
Definition: ListBranchesResult.h:111
Aws::CodeCommit::Model::ListBranchesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListBranchesResult.h:91
Aws::CodeCommit::Model::ListBranchesResult::operator=
ListBranchesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)