AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailTraceAssessment.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-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 BedrockRuntime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API GuardrailTraceAssessment();
39 AWS_BEDROCKRUNTIME_API GuardrailTraceAssessment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetModelOutput() const{ return m_modelOutput; }
49 inline bool ModelOutputHasBeenSet() const { return m_modelOutputHasBeenSet; }
50 inline void SetModelOutput(const Aws::Vector<Aws::String>& value) { m_modelOutputHasBeenSet = true; m_modelOutput = value; }
51 inline void SetModelOutput(Aws::Vector<Aws::String>&& value) { m_modelOutputHasBeenSet = true; m_modelOutput = std::move(value); }
53 inline GuardrailTraceAssessment& WithModelOutput(Aws::Vector<Aws::String>&& value) { SetModelOutput(std::move(value)); return *this;}
54 inline GuardrailTraceAssessment& AddModelOutput(const Aws::String& value) { m_modelOutputHasBeenSet = true; m_modelOutput.push_back(value); return *this; }
55 inline GuardrailTraceAssessment& AddModelOutput(Aws::String&& value) { m_modelOutputHasBeenSet = true; m_modelOutput.push_back(std::move(value)); return *this; }
56 inline GuardrailTraceAssessment& AddModelOutput(const char* value) { m_modelOutputHasBeenSet = true; m_modelOutput.push_back(value); return *this; }
58
60
63 inline const Aws::Map<Aws::String, GuardrailAssessment>& GetInputAssessment() const{ return m_inputAssessment; }
64 inline bool InputAssessmentHasBeenSet() const { return m_inputAssessmentHasBeenSet; }
65 inline void SetInputAssessment(const Aws::Map<Aws::String, GuardrailAssessment>& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment = value; }
66 inline void SetInputAssessment(Aws::Map<Aws::String, GuardrailAssessment>&& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment = std::move(value); }
69 inline GuardrailTraceAssessment& AddInputAssessment(const Aws::String& key, const GuardrailAssessment& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment.emplace(key, value); return *this; }
70 inline GuardrailTraceAssessment& AddInputAssessment(Aws::String&& key, const GuardrailAssessment& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment.emplace(std::move(key), value); return *this; }
71 inline GuardrailTraceAssessment& AddInputAssessment(const Aws::String& key, GuardrailAssessment&& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment.emplace(key, std::move(value)); return *this; }
72 inline GuardrailTraceAssessment& AddInputAssessment(Aws::String&& key, GuardrailAssessment&& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment.emplace(std::move(key), std::move(value)); return *this; }
73 inline GuardrailTraceAssessment& AddInputAssessment(const char* key, GuardrailAssessment&& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment.emplace(key, std::move(value)); return *this; }
74 inline GuardrailTraceAssessment& AddInputAssessment(const char* key, const GuardrailAssessment& value) { m_inputAssessmentHasBeenSet = true; m_inputAssessment.emplace(key, value); return *this; }
76
78
81 inline const Aws::Map<Aws::String, Aws::Vector<GuardrailAssessment>>& GetOutputAssessments() const{ return m_outputAssessments; }
82 inline bool OutputAssessmentsHasBeenSet() const { return m_outputAssessmentsHasBeenSet; }
83 inline void SetOutputAssessments(const Aws::Map<Aws::String, Aws::Vector<GuardrailAssessment>>& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = value; }
84 inline void SetOutputAssessments(Aws::Map<Aws::String, Aws::Vector<GuardrailAssessment>>&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = std::move(value); }
87 inline GuardrailTraceAssessment& AddOutputAssessments(const Aws::String& key, const Aws::Vector<GuardrailAssessment>& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.emplace(key, value); return *this; }
88 inline GuardrailTraceAssessment& AddOutputAssessments(Aws::String&& key, const Aws::Vector<GuardrailAssessment>& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.emplace(std::move(key), value); return *this; }
89 inline GuardrailTraceAssessment& AddOutputAssessments(const Aws::String& key, Aws::Vector<GuardrailAssessment>&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.emplace(key, std::move(value)); return *this; }
90 inline GuardrailTraceAssessment& AddOutputAssessments(Aws::String&& key, Aws::Vector<GuardrailAssessment>&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.emplace(std::move(key), std::move(value)); return *this; }
91 inline GuardrailTraceAssessment& AddOutputAssessments(const char* key, Aws::Vector<GuardrailAssessment>&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.emplace(key, std::move(value)); return *this; }
92 inline GuardrailTraceAssessment& AddOutputAssessments(const char* key, const Aws::Vector<GuardrailAssessment>& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.emplace(key, value); return *this; }
94 private:
95
96 Aws::Vector<Aws::String> m_modelOutput;
97 bool m_modelOutputHasBeenSet = false;
98
100 bool m_inputAssessmentHasBeenSet = false;
101
103 bool m_outputAssessmentsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace BedrockRuntime
108} // namespace Aws
GuardrailTraceAssessment & AddModelOutput(const Aws::String &value)
GuardrailTraceAssessment & AddInputAssessment(Aws::String &&key, const GuardrailAssessment &value)
GuardrailTraceAssessment & AddOutputAssessments(const Aws::String &key, Aws::Vector< GuardrailAssessment > &&value)
GuardrailTraceAssessment & AddInputAssessment(const char *key, GuardrailAssessment &&value)
GuardrailTraceAssessment & AddOutputAssessments(const char *key, const Aws::Vector< GuardrailAssessment > &value)
GuardrailTraceAssessment & AddOutputAssessments(const Aws::String &key, const Aws::Vector< GuardrailAssessment > &value)
GuardrailTraceAssessment & WithOutputAssessments(const Aws::Map< Aws::String, Aws::Vector< GuardrailAssessment > > &value)
GuardrailTraceAssessment & AddModelOutput(const char *value)
GuardrailTraceAssessment & WithModelOutput(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetModelOutput() const
GuardrailTraceAssessment & AddOutputAssessments(const char *key, Aws::Vector< GuardrailAssessment > &&value)
AWS_BEDROCKRUNTIME_API GuardrailTraceAssessment(Aws::Utils::Json::JsonView jsonValue)
void SetInputAssessment(Aws::Map< Aws::String, GuardrailAssessment > &&value)
GuardrailTraceAssessment & AddInputAssessment(const char *key, const GuardrailAssessment &value)
GuardrailTraceAssessment & WithInputAssessment(const Aws::Map< Aws::String, GuardrailAssessment > &value)
const Aws::Map< Aws::String, Aws::Vector< GuardrailAssessment > > & GetOutputAssessments() const
void SetInputAssessment(const Aws::Map< Aws::String, GuardrailAssessment > &value)
GuardrailTraceAssessment & AddInputAssessment(const Aws::String &key, GuardrailAssessment &&value)
GuardrailTraceAssessment & WithOutputAssessments(Aws::Map< Aws::String, Aws::Vector< GuardrailAssessment > > &&value)
void SetModelOutput(Aws::Vector< Aws::String > &&value)
void SetOutputAssessments(Aws::Map< Aws::String, Aws::Vector< GuardrailAssessment > > &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTraceAssessment & AddInputAssessment(Aws::String &&key, GuardrailAssessment &&value)
void SetOutputAssessments(const Aws::Map< Aws::String, Aws::Vector< GuardrailAssessment > > &value)
GuardrailTraceAssessment & WithInputAssessment(Aws::Map< Aws::String, GuardrailAssessment > &&value)
GuardrailTraceAssessment & AddInputAssessment(const Aws::String &key, const GuardrailAssessment &value)
void SetModelOutput(const Aws::Vector< Aws::String > &value)
GuardrailTraceAssessment & AddOutputAssessments(Aws::String &&key, Aws::Vector< GuardrailAssessment > &&value)
const Aws::Map< Aws::String, GuardrailAssessment > & GetInputAssessment() const
AWS_BEDROCKRUNTIME_API GuardrailTraceAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailTraceAssessment & AddModelOutput(Aws::String &&value)
GuardrailTraceAssessment & AddOutputAssessments(Aws::String &&key, const Aws::Vector< GuardrailAssessment > &value)
GuardrailTraceAssessment & WithModelOutput(Aws::Vector< Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue