AWS SDK for C++

AWS SDK for C++ Version 1.11.509

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();
27 //We have to define these because Microsoft doesn't auto generate them
28 AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult&&);
29 AWS_BEDROCKRUNTIME_API InvokeModelResult& operator=(InvokeModelResult&&);
30 //we delete these because Microsoft doesn't handle move generation correctly
31 //and we therefore don't trust them to get it right here either.
34
35
38
39
40
42
49 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
50 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
51
53
55
58 inline const Aws::String& GetContentType() const{ return m_contentType; }
59 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
60 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
61 inline void SetContentType(const char* value) { m_contentType.assign(value); }
62 inline InvokeModelResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
63 inline InvokeModelResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
64 inline InvokeModelResult& WithContentType(const char* value) { SetContentType(value); return *this;}
66
68
71 inline const PerformanceConfigLatency& GetPerformanceConfigLatency() const{ return m_performanceConfigLatency; }
72 inline void SetPerformanceConfigLatency(const PerformanceConfigLatency& value) { m_performanceConfigLatency = value; }
73 inline void SetPerformanceConfigLatency(PerformanceConfigLatency&& value) { m_performanceConfigLatency = std::move(value); }
77
79
80 inline const Aws::String& GetRequestId() const{ return m_requestId; }
81 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
82 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
83 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
84 inline InvokeModelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
85 inline InvokeModelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
86 inline InvokeModelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 private:
89
91
92 Aws::String m_contentType;
93
94 PerformanceConfigLatency m_performanceConfigLatency;
95
96 Aws::String m_requestId;
97 };
98
99} // namespace Model
100} // namespace BedrockRuntime
101} // namespace Aws
InvokeModelResult & WithContentType(const Aws::String &value)
AWS_BEDROCKRUNTIME_API InvokeModelResult & operator=(InvokeModelResult &&)
AWS_BEDROCKRUNTIME_API InvokeModelResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
InvokeModelResult & WithPerformanceConfigLatency(PerformanceConfigLatency &&value)
InvokeModelResult & WithRequestId(Aws::String &&value)
InvokeModelResult & WithPerformanceConfigLatency(const PerformanceConfigLatency &value)
AWS_BEDROCKRUNTIME_API InvokeModelResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetPerformanceConfigLatency(const PerformanceConfigLatency &value)
InvokeModelResult & WithRequestId(const char *value)
const PerformanceConfigLatency & GetPerformanceConfigLatency() const
void SetContentType(const Aws::String &value)
InvokeModelResult(const InvokeModelResult &)=delete
InvokeModelResult & WithContentType(Aws::String &&value)
InvokeModelResult & WithContentType(const char *value)
InvokeModelResult & operator=(const InvokeModelResult &)=delete
void SetRequestId(const Aws::String &value)
InvokeModelResult & WithRequestId(const Aws::String &value)
void SetPerformanceConfigLatency(PerformanceConfigLatency &&value)
AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult &&)
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