AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PostProcessingModelInvocationOutput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Metadata.h>
9#include <aws/bedrock-agent-runtime/model/PostProcessingParsedResponse.h>
10#include <aws/bedrock-agent-runtime/model/RawResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API PostProcessingModelInvocationOutput();
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Metadata& GetMetadata() const{ return m_metadata; }
50 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
51 inline void SetMetadata(const Metadata& value) { m_metadataHasBeenSet = true; m_metadata = value; }
52 inline void SetMetadata(Metadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
53 inline PostProcessingModelInvocationOutput& WithMetadata(const Metadata& value) { SetMetadata(value); return *this;}
54 inline PostProcessingModelInvocationOutput& WithMetadata(Metadata&& value) { SetMetadata(std::move(value)); return *this;}
56
58
62 inline const PostProcessingParsedResponse& GetParsedResponse() const{ return m_parsedResponse; }
63 inline bool ParsedResponseHasBeenSet() const { return m_parsedResponseHasBeenSet; }
64 inline void SetParsedResponse(const PostProcessingParsedResponse& value) { m_parsedResponseHasBeenSet = true; m_parsedResponse = value; }
65 inline void SetParsedResponse(PostProcessingParsedResponse&& value) { m_parsedResponseHasBeenSet = true; m_parsedResponse = std::move(value); }
69
71
74 inline const RawResponse& GetRawResponse() const{ return m_rawResponse; }
75 inline bool RawResponseHasBeenSet() const { return m_rawResponseHasBeenSet; }
76 inline void SetRawResponse(const RawResponse& value) { m_rawResponseHasBeenSet = true; m_rawResponse = value; }
77 inline void SetRawResponse(RawResponse&& value) { m_rawResponseHasBeenSet = true; m_rawResponse = std::move(value); }
79 inline PostProcessingModelInvocationOutput& WithRawResponse(RawResponse&& value) { SetRawResponse(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetTraceId() const{ return m_traceId; }
87 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
88 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
89 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
90 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
91 inline PostProcessingModelInvocationOutput& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
92 inline PostProcessingModelInvocationOutput& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
93 inline PostProcessingModelInvocationOutput& WithTraceId(const char* value) { SetTraceId(value); return *this;}
95 private:
96
97 Metadata m_metadata;
98 bool m_metadataHasBeenSet = false;
99
100 PostProcessingParsedResponse m_parsedResponse;
101 bool m_parsedResponseHasBeenSet = false;
102
103 RawResponse m_rawResponse;
104 bool m_rawResponseHasBeenSet = false;
105
106 Aws::String m_traceId;
107 bool m_traceIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace BedrockAgentRuntime
112} // namespace Aws
bool TraceIdHasBeenSet() const
const RawResponse & GetRawResponse() const
void SetRawResponse(const RawResponse &value)
void SetRawResponse(RawResponse &&value)
bool RawResponseHasBeenSet() const
bool ParsedResponseHasBeenSet() const
void SetMetadata(const Metadata &value)
PostProcessingModelInvocationOutput & WithTraceId(Aws::String &&value)
void SetParsedResponse(const PostProcessingParsedResponse &value)
PostProcessingModelInvocationOutput & WithParsedResponse(const PostProcessingParsedResponse &value)
AWS_BEDROCKAGENTRUNTIME_API PostProcessingModelInvocationOutput()
PostProcessingModelInvocationOutput & WithMetadata(const Metadata &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
PostProcessingModelInvocationOutput & WithRawResponse(RawResponse &&value)
const PostProcessingParsedResponse & GetParsedResponse() const
PostProcessingModelInvocationOutput & WithMetadata(Metadata &&value)
void SetTraceId(const Aws::String &value)
void SetMetadata(Metadata &&value)
PostProcessingModelInvocationOutput & WithParsedResponse(PostProcessingParsedResponse &&value)
AWS_BEDROCKAGENTRUNTIME_API PostProcessingModelInvocationOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTraceId(Aws::String &&value)
PostProcessingModelInvocationOutput & WithRawResponse(const RawResponse &value)
const Metadata & GetMetadata() const
AWS_BEDROCKAGENTRUNTIME_API PostProcessingModelInvocationOutput(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTraceId() const
PostProcessingModelInvocationOutput & WithTraceId(const Aws::String &value)
void SetTraceId(const char *value)
void SetParsedResponse(PostProcessingParsedResponse &&value)
PostProcessingModelInvocationOutput & WithTraceId(const char *value)
bool MetadataHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue