AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
InvokeModelResult.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/PerformanceConfigLatency.h>
9#include <aws/bedrock-runtime/model/ServiceTierType.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/stream/ResponseStream.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace BedrockRuntime {
22namespace Model {
24 public:
25 AWS_BEDROCKRUNTIME_API InvokeModelResult() = default;
26 AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult&&) = default;
27 AWS_BEDROCKRUNTIME_API InvokeModelResult& operator=(InvokeModelResult&&) = default;
28 // we delete these because Microsoft doesn't handle move generation correctly
29 // and we therefore don't trust them to get it right here either.
32
35
37
44 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
46
48
50
53 inline const Aws::String& GetContentType() const { return m_contentType; }
54 template <typename ContentTypeT = Aws::String>
56 m_contentTypeHasBeenSet = true;
57 m_contentType = std::forward<ContentTypeT>(value);
58 }
59 template <typename ContentTypeT = Aws::String>
61 SetContentType(std::forward<ContentTypeT>(value));
62 return *this;
63 }
65
67
70 inline PerformanceConfigLatency GetPerformanceConfigLatency() const { return m_performanceConfigLatency; }
72 m_performanceConfigLatencyHasBeenSet = true;
73 m_performanceConfigLatency = value;
74 }
77 return *this;
78 }
80
82
85 inline ServiceTierType GetServiceTier() const { return m_serviceTier; }
86 inline void SetServiceTier(ServiceTierType value) {
87 m_serviceTierHasBeenSet = true;
88 m_serviceTier = value;
89 }
91 SetServiceTier(value);
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
114
115 Aws::String m_contentType;
116
118
120
121 Aws::String m_requestId;
122 Aws::Http::HttpResponseCode m_HttpResponseCode;
123 bool m_bodyHasBeenSet = false;
124 bool m_contentTypeHasBeenSet = false;
125 bool m_performanceConfigLatencyHasBeenSet = false;
126 bool m_serviceTierHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace BedrockRuntime
132} // namespace Aws
PerformanceConfigLatency GetPerformanceConfigLatency() const
InvokeModelResult & WithPerformanceConfigLatency(PerformanceConfigLatency value)
AWS_BEDROCKRUNTIME_API InvokeModelResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_BEDROCKRUNTIME_API InvokeModelResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetPerformanceConfigLatency(PerformanceConfigLatency value)
AWS_BEDROCKRUNTIME_API InvokeModelResult & operator=(InvokeModelResult &&)=default
AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult &&)=default
InvokeModelResult & WithRequestId(RequestIdT &&value)
AWS_BEDROCKRUNTIME_API InvokeModelResult()=default
InvokeModelResult(const InvokeModelResult &)=delete
Aws::Http::HttpResponseCode GetHttpResponseCode() const
InvokeModelResult & operator=(const InvokeModelResult &)=delete
InvokeModelResult & WithContentType(ContentTypeT &&value)
InvokeModelResult & WithServiceTier(ServiceTierType value)
Aws::IOStream & GetUnderlyingStream() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String