AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
GetBlobDifferencesResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/DiffHunk.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit {
25namespace Model {
27 public:
28 AWS_CODECOMMIT_API GetBlobDifferencesResult() = default;
31
33
40 inline const Aws::Vector<DiffHunk>& GetHunks() const { return m_hunks; }
41 template <typename HunksT = Aws::Vector<DiffHunk>>
42 void SetHunks(HunksT&& value) {
43 m_hunksHasBeenSet = true;
44 m_hunks = std::forward<HunksT>(value);
45 }
46 template <typename HunksT = Aws::Vector<DiffHunk>>
48 SetHunks(std::forward<HunksT>(value));
49 return *this;
50 }
51 template <typename HunksT = DiffHunk>
53 m_hunksHasBeenSet = true;
54 m_hunks.emplace_back(std::forward<HunksT>(value));
55 return *this;
56 }
58
60
65 inline bool GetIsBinary() const { return m_isBinary; }
66 inline void SetIsBinary(bool value) {
67 m_isBinaryHasBeenSet = true;
68 m_isBinary = value;
69 }
71 SetIsBinary(value);
72 return *this;
73 }
75
77
81 inline long long GetBeforeBlobSize() const { return m_beforeBlobSize; }
82 inline void SetBeforeBlobSize(long long value) {
83 m_beforeBlobSizeHasBeenSet = true;
84 m_beforeBlobSize = value;
85 }
87 SetBeforeBlobSize(value);
88 return *this;
89 }
91
93
96 inline long long GetAfterBlobSize() const { return m_afterBlobSize; }
97 inline void SetAfterBlobSize(long long value) {
98 m_afterBlobSizeHasBeenSet = true;
99 m_afterBlobSize = value;
100 }
102 SetAfterBlobSize(value);
103 return *this;
104 }
106
108
113 inline const Aws::String& GetNextToken() const { return m_nextToken; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125
127
128 inline const Aws::String& GetRequestId() const { return m_requestId; }
129 template <typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) {
131 m_requestIdHasBeenSet = true;
132 m_requestId = std::forward<RequestIdT>(value);
133 }
134 template <typename RequestIdT = Aws::String>
136 SetRequestId(std::forward<RequestIdT>(value));
137 return *this;
138 }
140 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
141
142 private:
143 Aws::Vector<DiffHunk> m_hunks;
144
145 bool m_isBinary{false};
146
147 long long m_beforeBlobSize{0};
148
149 long long m_afterBlobSize{0};
150
151 Aws::String m_nextToken;
152
153 Aws::String m_requestId;
154 Aws::Http::HttpResponseCode m_HttpResponseCode;
155 bool m_hunksHasBeenSet = false;
156 bool m_isBinaryHasBeenSet = false;
157 bool m_beforeBlobSizeHasBeenSet = false;
158 bool m_afterBlobSizeHasBeenSet = false;
159 bool m_nextTokenHasBeenSet = false;
160 bool m_requestIdHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CodeCommit
165} // namespace Aws
GetBlobDifferencesResult & WithRequestId(RequestIdT &&value)
GetBlobDifferencesResult & WithBeforeBlobSize(long long value)
GetBlobDifferencesResult & WithIsBinary(bool value)
const Aws::Vector< DiffHunk > & GetHunks() const
GetBlobDifferencesResult & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetBlobDifferencesResult & WithAfterBlobSize(long long value)
GetBlobDifferencesResult & WithHunks(HunksT &&value)
AWS_CODECOMMIT_API GetBlobDifferencesResult()=default
GetBlobDifferencesResult & AddHunks(HunksT &&value)
AWS_CODECOMMIT_API GetBlobDifferencesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECOMMIT_API GetBlobDifferencesResult & 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