AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
49 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
50 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
51 inline Rationale& WithText(const Aws::String& value) { SetText(value); return *this;}
52 inline Rationale& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
53 inline Rationale& WithText(const char* value) { SetText(value); return *this;}
55
57
60 inline const Aws::String& GetTraceId() const{ return m_traceId; }
61 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
62 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
63 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
64 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
65 inline Rationale& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
66 inline Rationale& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
67 inline Rationale& WithTraceId(const char* value) { SetTraceId(value); return *this;}
69 private:
70
71 Aws::String m_text;
72 bool m_textHasBeenSet = false;
73
74 Aws::String m_traceId;
75 bool m_traceIdHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace BedrockAgentRuntime
80} // namespace Aws
Rationale & WithTraceId(const Aws::String &value)
Definition Rationale.h:65
Rationale & WithText(const char *value)
Definition Rationale.h:53
const Aws::String & GetTraceId() const
Definition Rationale.h:60
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API Rationale(Aws::Utils::Json::JsonView jsonValue)
Rationale & WithTraceId(Aws::String &&value)
Definition Rationale.h:66
const Aws::String & GetText() const
Definition Rationale.h:46
void SetText(Aws::String &&value)
Definition Rationale.h:49
Rationale & WithTraceId(const char *value)
Definition Rationale.h:67
void SetText(const Aws::String &value)
Definition Rationale.h:48
AWS_BEDROCKAGENTRUNTIME_API Rationale & operator=(Aws::Utils::Json::JsonView jsonValue)
Rationale & WithText(Aws::String &&value)
Definition Rationale.h:52
AWS_BEDROCKAGENTRUNTIME_API Rationale()
Rationale & WithText(const Aws::String &value)
Definition Rationale.h:51
void SetTraceId(const Aws::String &value)
Definition Rationale.h:62
void SetTraceId(Aws::String &&value)
Definition Rationale.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue