AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
InvokeModelResult.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-runtime/model/PerformanceConfigLatency.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace BedrockRuntime
20{
21namespace Model
22{
24 {
25 public:
26 AWS_BEDROCKRUNTIME_API InvokeModelResult() = default;
27 AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult&&) = default;
28 AWS_BEDROCKRUNTIME_API InvokeModelResult& operator=(InvokeModelResult&&) = default;
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
48 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
49 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
50
52
54
57 inline const Aws::String& GetContentType() const { return m_contentType; }
58 template<typename ContentTypeT = Aws::String>
59 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
60 template<typename ContentTypeT = Aws::String>
61 InvokeModelResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
63
65
68 inline PerformanceConfigLatency GetPerformanceConfigLatency() const { return m_performanceConfigLatency; }
69 inline void SetPerformanceConfigLatency(PerformanceConfigLatency value) { m_performanceConfigLatencyHasBeenSet = true; m_performanceConfigLatency = value; }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template<typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
78 template<typename RequestIdT = Aws::String>
79 InvokeModelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
81 private:
82
84 bool m_bodyHasBeenSet = false;
85
86 Aws::String m_contentType;
87 bool m_contentTypeHasBeenSet = false;
88
90 bool m_performanceConfigLatencyHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockRuntime
98} // 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
InvokeModelResult & operator=(const InvokeModelResult &)=delete
InvokeModelResult & WithContentType(ContentTypeT &&value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String