AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Rationale.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API Rationale() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Rationale(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Rationale& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = Aws::String>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = Aws::String>
51 Rationale& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
53
55
58 inline const Aws::String& GetTraceId() const { return m_traceId; }
59 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
60 template<typename TraceIdT = Aws::String>
61 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet = true; m_traceId = std::forward<TraceIdT>(value); }
62 template<typename TraceIdT = Aws::String>
63 Rationale& WithTraceId(TraceIdT&& value) { SetTraceId(std::forward<TraceIdT>(value)); return *this;}
65 private:
66
67 Aws::String m_text;
68 bool m_textHasBeenSet = false;
69
70 Aws::String m_traceId;
71 bool m_traceIdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace BedrockAgentRuntime
76} // namespace Aws
const Aws::String & GetTraceId() const
Definition Rationale.h:58
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API Rationale(Aws::Utils::Json::JsonView jsonValue)
Rationale & WithTraceId(TraceIdT &&value)
Definition Rationale.h:63
const Aws::String & GetText() const
Definition Rationale.h:46
AWS_BEDROCKAGENTRUNTIME_API Rationale()=default
AWS_BEDROCKAGENTRUNTIME_API Rationale & operator=(Aws::Utils::Json::JsonView jsonValue)
Rationale & WithText(TextT &&value)
Definition Rationale.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue