AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchGetCommitsResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/BatchGetCommitsError.h>
9#include <aws/codecommit/model/Commit.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCommit {
26namespace Model {
28 public:
29 AWS_CODECOMMIT_API BatchGetCommitsResult() = default;
32
34
38 inline const Aws::Vector<Commit>& GetCommits() const { return m_commits; }
39 template <typename CommitsT = Aws::Vector<Commit>>
40 void SetCommits(CommitsT&& value) {
41 m_commitsHasBeenSet = true;
42 m_commits = std::forward<CommitsT>(value);
43 }
44 template <typename CommitsT = Aws::Vector<Commit>>
46 SetCommits(std::forward<CommitsT>(value));
47 return *this;
48 }
49 template <typename CommitsT = Commit>
50 BatchGetCommitsResult& AddCommits(CommitsT&& value) {
51 m_commitsHasBeenSet = true;
52 m_commits.emplace_back(std::forward<CommitsT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::Vector<BatchGetCommitsError>& GetErrors() const { return m_errors; }
65 template <typename ErrorsT = Aws::Vector<BatchGetCommitsError>>
66 void SetErrors(ErrorsT&& value) {
67 m_errorsHasBeenSet = true;
68 m_errors = std::forward<ErrorsT>(value);
69 }
70 template <typename ErrorsT = Aws::Vector<BatchGetCommitsError>>
72 SetErrors(std::forward<ErrorsT>(value));
73 return *this;
74 }
75 template <typename ErrorsT = BatchGetCommitsError>
76 BatchGetCommitsResult& AddErrors(ErrorsT&& value) {
77 m_errorsHasBeenSet = true;
78 m_errors.emplace_back(std::forward<ErrorsT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 BatchGetCommitsResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 Aws::Vector<Commit> m_commits;
101
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_commitsHasBeenSet = false;
107 bool m_errorsHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace CodeCommit
113} // namespace Aws
BatchGetCommitsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< BatchGetCommitsError > & GetErrors() const
BatchGetCommitsResult & AddErrors(ErrorsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CODECOMMIT_API BatchGetCommitsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCommitsResult & AddCommits(CommitsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCommitsResult & WithCommits(CommitsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsResult()=default
BatchGetCommitsResult & WithErrors(ErrorsT &&value)
const Aws::Vector< Commit > & GetCommits() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue