AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace BedrockRuntime
19{
20namespace Model
21{
23 {
24 public:
25 AWS_BEDROCKRUNTIME_API InvokeModelResult();
26 //We have to define these because Microsoft doesn't auto generate them
27 AWS_BEDROCKRUNTIME_API InvokeModelResult(InvokeModelResult&&);
28 AWS_BEDROCKRUNTIME_API InvokeModelResult& operator=(InvokeModelResult&&);
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 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
59 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
60 inline void SetContentType(const char* value) { m_contentType.assign(value); }
61 inline InvokeModelResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
62 inline InvokeModelResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
63 inline InvokeModelResult& WithContentType(const char* value) { SetContentType(value); return *this;}
65
67
68 inline const Aws::String& GetRequestId() const{ return m_requestId; }
69 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
70 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
71 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline InvokeModelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline InvokeModelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline InvokeModelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
76 private:
77
79
80 Aws::String m_contentType;
81
82 Aws::String m_requestId;
83 };
84
85} // namespace Model
86} // namespace BedrockRuntime
87} // 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 & WithRequestId(Aws::String &&value)
AWS_BEDROCKRUNTIME_API InvokeModelResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
InvokeModelResult & WithRequestId(const char *value)
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)
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