AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListBranchesResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit {
23namespace Model {
31 public:
32 AWS_CODECOMMIT_API ListBranchesResult() = default;
35
37
40 inline const Aws::Vector<Aws::String>& GetBranches() const { return m_branches; }
41 template <typename BranchesT = Aws::Vector<Aws::String>>
42 void SetBranches(BranchesT&& value) {
43 m_branchesHasBeenSet = true;
44 m_branches = std::forward<BranchesT>(value);
45 }
46 template <typename BranchesT = Aws::Vector<Aws::String>>
47 ListBranchesResult& WithBranches(BranchesT&& value) {
48 SetBranches(std::forward<BranchesT>(value));
49 return *this;
50 }
51 template <typename BranchesT = Aws::String>
52 ListBranchesResult& AddBranches(BranchesT&& value) {
53 m_branchesHasBeenSet = true;
54 m_branches.emplace_back(std::forward<BranchesT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListBranchesResult& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 ListBranchesResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<Aws::String> m_branches;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 bool m_branchesHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeCommit
103} // namespace Aws
ListBranchesResult & WithBranches(BranchesT &&value)
ListBranchesResult & AddBranches(BranchesT &&value)
AWS_CODECOMMIT_API ListBranchesResult()=default
ListBranchesResult & WithRequestId(RequestIdT &&value)
ListBranchesResult & WithNextToken(NextTokenT &&value)
AWS_CODECOMMIT_API ListBranchesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetBranches() const
AWS_CODECOMMIT_API ListBranchesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue