AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailTrace.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailAction.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent-runtime/model/GuardrailAssessment.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
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace();
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GuardrailAction& GetAction() const{ return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(const GuardrailAction& value) { m_actionHasBeenSet = true; m_action = value; }
50 inline void SetAction(GuardrailAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
51 inline GuardrailTrace& WithAction(const GuardrailAction& value) { SetAction(value); return *this;}
52 inline GuardrailTrace& WithAction(GuardrailAction&& value) { SetAction(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<GuardrailAssessment>& GetInputAssessments() const{ return m_inputAssessments; }
60 inline bool InputAssessmentsHasBeenSet() const { return m_inputAssessmentsHasBeenSet; }
61 inline void SetInputAssessments(const Aws::Vector<GuardrailAssessment>& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments = value; }
62 inline void SetInputAssessments(Aws::Vector<GuardrailAssessment>&& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments = std::move(value); }
65 inline GuardrailTrace& AddInputAssessments(const GuardrailAssessment& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments.push_back(value); return *this; }
66 inline GuardrailTrace& AddInputAssessments(GuardrailAssessment&& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::Vector<GuardrailAssessment>& GetOutputAssessments() const{ return m_outputAssessments; }
74 inline bool OutputAssessmentsHasBeenSet() const { return m_outputAssessmentsHasBeenSet; }
75 inline void SetOutputAssessments(const Aws::Vector<GuardrailAssessment>& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = value; }
76 inline void SetOutputAssessments(Aws::Vector<GuardrailAssessment>&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = std::move(value); }
79 inline GuardrailTrace& AddOutputAssessments(const GuardrailAssessment& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.push_back(value); return *this; }
80 inline GuardrailTrace& AddOutputAssessments(GuardrailAssessment&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.push_back(std::move(value)); return *this; }
82
84
87 inline const Aws::String& GetTraceId() const{ return m_traceId; }
88 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
89 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
90 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
91 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
92 inline GuardrailTrace& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
93 inline GuardrailTrace& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
94 inline GuardrailTrace& WithTraceId(const char* value) { SetTraceId(value); return *this;}
96 private:
97
98 GuardrailAction m_action;
99 bool m_actionHasBeenSet = false;
100
101 Aws::Vector<GuardrailAssessment> m_inputAssessments;
102 bool m_inputAssessmentsHasBeenSet = false;
103
104 Aws::Vector<GuardrailAssessment> m_outputAssessments;
105 bool m_outputAssessmentsHasBeenSet = false;
106
107 Aws::String m_traceId;
108 bool m_traceIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace BedrockAgentRuntime
113} // namespace Aws
GuardrailTrace & WithInputAssessments(Aws::Vector< GuardrailAssessment > &&value)
GuardrailTrace & AddInputAssessments(const GuardrailAssessment &value)
const Aws::Vector< GuardrailAssessment > & GetInputAssessments() const
GuardrailTrace & WithTraceId(Aws::String &&value)
GuardrailTrace & WithTraceId(const char *value)
GuardrailTrace & AddInputAssessments(GuardrailAssessment &&value)
void SetInputAssessments(const Aws::Vector< GuardrailAssessment > &value)
void SetOutputAssessments(const Aws::Vector< GuardrailAssessment > &value)
GuardrailTrace & WithInputAssessments(const Aws::Vector< GuardrailAssessment > &value)
void SetInputAssessments(Aws::Vector< GuardrailAssessment > &&value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace()
void SetTraceId(const Aws::String &value)
GuardrailTrace & AddOutputAssessments(GuardrailAssessment &&value)
void SetOutputAssessments(Aws::Vector< GuardrailAssessment > &&value)
GuardrailTrace & WithAction(const GuardrailAction &value)
GuardrailTrace & WithOutputAssessments(Aws::Vector< GuardrailAssessment > &&value)
GuardrailTrace & WithAction(GuardrailAction &&value)
const GuardrailAction & GetAction() const
GuardrailTrace & AddOutputAssessments(const GuardrailAssessment &value)
GuardrailTrace & WithOutputAssessments(const Aws::Vector< GuardrailAssessment > &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTrace & WithTraceId(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(const GuardrailAction &value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailAssessment > & GetOutputAssessments() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue