AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
GetDocumentContentResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/http/HttpResponse.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 BedrockAgentRuntime {
23namespace Model {
25 public:
26 AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentResult() = default;
29
31
35 inline long long GetDocumentContentLength() const { return m_documentContentLength; }
36 inline void SetDocumentContentLength(long long value) {
37 m_documentContentLengthHasBeenSet = true;
38 m_documentContentLength = value;
39 }
42 return *this;
43 }
45
47
52 inline const Aws::String& GetMimeType() const { return m_mimeType; }
53 template <typename MimeTypeT = Aws::String>
54 void SetMimeType(MimeTypeT&& value) {
55 m_mimeTypeHasBeenSet = true;
56 m_mimeType = std::forward<MimeTypeT>(value);
57 }
58 template <typename MimeTypeT = Aws::String>
60 SetMimeType(std::forward<MimeTypeT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetPresignedUrl() const { return m_presignedUrl; }
71 template <typename PresignedUrlT = Aws::String>
73 m_presignedUrlHasBeenSet = true;
74 m_presignedUrl = std::forward<PresignedUrlT>(value);
75 }
76 template <typename PresignedUrlT = Aws::String>
78 SetPresignedUrl(std::forward<PresignedUrlT>(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>
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 long long m_documentContentLength{0};
101
102 Aws::String m_mimeType;
103
104 Aws::String m_presignedUrl;
105
106 Aws::String m_requestId;
107 Aws::Http::HttpResponseCode m_HttpResponseCode;
108 bool m_documentContentLengthHasBeenSet = false;
109 bool m_mimeTypeHasBeenSet = false;
110 bool m_presignedUrlHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace BedrockAgentRuntime
116} // namespace Aws
GetDocumentContentResult & WithRequestId(RequestIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentResult()=default
AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentContentResult & WithDocumentContentLength(long long value)
GetDocumentContentResult & WithPresignedUrl(PresignedUrlT &&value)
GetDocumentContentResult & WithMimeType(MimeTypeT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue