AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetBlobResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.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 {
30 public:
31 AWS_CODECOMMIT_API GetBlobResult() = default;
34
36
39 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
40 template <typename ContentT = Aws::Utils::ByteBuffer>
41 void SetContent(ContentT&& value) {
42 m_contentHasBeenSet = true;
43 m_content = std::forward<ContentT>(value);
44 }
45 template <typename ContentT = Aws::Utils::ByteBuffer>
46 GetBlobResult& WithContent(ContentT&& value) {
47 SetContent(std::forward<ContentT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetRequestId() const { return m_requestId; }
55 template <typename RequestIdT = Aws::String>
56 void SetRequestId(RequestIdT&& value) {
57 m_requestIdHasBeenSet = true;
58 m_requestId = std::forward<RequestIdT>(value);
59 }
60 template <typename RequestIdT = Aws::String>
61 GetBlobResult& WithRequestId(RequestIdT&& value) {
62 SetRequestId(std::forward<RequestIdT>(value));
63 return *this;
64 }
66 private:
67 Aws::Utils::ByteBuffer m_content{};
68
69 Aws::String m_requestId;
70 bool m_contentHasBeenSet = false;
71 bool m_requestIdHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace CodeCommit
76} // namespace Aws
const Aws::Utils::ByteBuffer & GetContent() const
AWS_CODECOMMIT_API GetBlobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECOMMIT_API GetBlobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECOMMIT_API GetBlobResult()=default
GetBlobResult & WithContent(ContentT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
GetBlobResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue