AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListBranchesResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit
25{
26namespace Model
27{
35 {
36 public:
37 AWS_CODECOMMIT_API ListBranchesResult() = default;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetBranches() const { return m_branches; }
47 template<typename BranchesT = Aws::Vector<Aws::String>>
48 void SetBranches(BranchesT&& value) { m_branchesHasBeenSet = true; m_branches = std::forward<BranchesT>(value); }
49 template<typename BranchesT = Aws::Vector<Aws::String>>
50 ListBranchesResult& WithBranches(BranchesT&& value) { SetBranches(std::forward<BranchesT>(value)); return *this;}
51 template<typename BranchesT = Aws::String>
52 ListBranchesResult& AddBranches(BranchesT&& value) { m_branchesHasBeenSet = true; m_branches.emplace_back(std::forward<BranchesT>(value)); return *this; }
54
56
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 template<typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
62 template<typename NextTokenT = Aws::String>
63 ListBranchesResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 ListBranchesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
76 Aws::Vector<Aws::String> m_branches;
77 bool m_branchesHasBeenSet = false;
78
79 Aws::String m_nextToken;
80 bool m_nextTokenHasBeenSet = false;
81
82 Aws::String m_requestId;
83 bool m_requestIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CodeCommit
88} // 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