AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/stream/ResponseStream.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace BedrockRuntime {
21namespace Model {
23 public:
24 AWS_BEDROCKRUNTIME_API InvokeModelResult() = default;
25 AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult&&) = default;
26 AWS_BEDROCKRUNTIME_API InvokeModelResult& operator=(InvokeModelResult&&) = default;
27 // we delete these because Microsoft doesn't handle move generation correctly
28 // and we therefore don't trust them to get it right here either.
31
34
36
43 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
45
47
49
52 inline const Aws::String& GetContentType() const { return m_contentType; }
53 template <typename ContentTypeT = Aws::String>
55 m_contentTypeHasBeenSet = true;
56 m_contentType = std::forward<ContentTypeT>(value);
57 }
58 template <typename ContentTypeT = Aws::String>
60 SetContentType(std::forward<ContentTypeT>(value));
61 return *this;
62 }
64
66
69 inline PerformanceConfigLatency GetPerformanceConfigLatency() const { return m_performanceConfigLatency; }
71 m_performanceConfigLatencyHasBeenSet = true;
72 m_performanceConfigLatency = value;
73 }
76 return *this;
77 }
79
81
84 inline ServiceTierType GetServiceTier() const { return m_serviceTier; }
85 inline void SetServiceTier(ServiceTierType value) {
86 m_serviceTierHasBeenSet = true;
87 m_serviceTier = value;
88 }
90 SetServiceTier(value);
91 return *this;
92 }
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template <typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) {
100 m_requestIdHasBeenSet = true;
101 m_requestId = std::forward<RequestIdT>(value);
102 }
103 template <typename RequestIdT = Aws::String>
105 SetRequestId(std::forward<RequestIdT>(value));
106 return *this;
107 }
109 private:
111
112 Aws::String m_contentType;
113
115
117
118 Aws::String m_requestId;
119 bool m_bodyHasBeenSet = false;
120 bool m_contentTypeHasBeenSet = false;
121 bool m_performanceConfigLatencyHasBeenSet = false;
122 bool m_serviceTierHasBeenSet = false;
123 bool m_requestIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace BedrockRuntime
128} // 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)
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