AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GuardrailTopic.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailTopicAction.h>
9#include <aws/bedrock/model/GuardrailTopicType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock {
23namespace Model {
24
34 public:
35 AWS_BEDROCK_API GuardrailTopic() = default;
36 AWS_BEDROCK_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 GuardrailTopic& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDefinition() const { return m_definition; }
63 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
64 template <typename DefinitionT = Aws::String>
65 void SetDefinition(DefinitionT&& value) {
66 m_definitionHasBeenSet = true;
67 m_definition = std::forward<DefinitionT>(value);
68 }
69 template <typename DefinitionT = Aws::String>
70 GuardrailTopic& WithDefinition(DefinitionT&& value) {
71 SetDefinition(std::forward<DefinitionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
82 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
83 template <typename ExamplesT = Aws::Vector<Aws::String>>
84 void SetExamples(ExamplesT&& value) {
85 m_examplesHasBeenSet = true;
86 m_examples = std::forward<ExamplesT>(value);
87 }
88 template <typename ExamplesT = Aws::Vector<Aws::String>>
89 GuardrailTopic& WithExamples(ExamplesT&& value) {
90 SetExamples(std::forward<ExamplesT>(value));
91 return *this;
92 }
93 template <typename ExamplesT = Aws::String>
94 GuardrailTopic& AddExamples(ExamplesT&& value) {
95 m_examplesHasBeenSet = true;
96 m_examples.emplace_back(std::forward<ExamplesT>(value));
97 return *this;
98 }
100
102
105 inline GuardrailTopicType GetType() const { return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(GuardrailTopicType value) {
108 m_typeHasBeenSet = true;
109 m_type = value;
110 }
112 SetType(value);
113 return *this;
114 }
116
118
125 inline GuardrailTopicAction GetInputAction() const { return m_inputAction; }
126 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
128 m_inputActionHasBeenSet = true;
129 m_inputAction = value;
130 }
132 SetInputAction(value);
133 return *this;
134 }
136
138
145 inline GuardrailTopicAction GetOutputAction() const { return m_outputAction; }
146 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
148 m_outputActionHasBeenSet = true;
149 m_outputAction = value;
150 }
152 SetOutputAction(value);
153 return *this;
154 }
156
158
163 inline bool GetInputEnabled() const { return m_inputEnabled; }
164 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
165 inline void SetInputEnabled(bool value) {
166 m_inputEnabledHasBeenSet = true;
167 m_inputEnabled = value;
168 }
169 inline GuardrailTopic& WithInputEnabled(bool value) {
170 SetInputEnabled(value);
171 return *this;
172 }
174
176
181 inline bool GetOutputEnabled() const { return m_outputEnabled; }
182 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
183 inline void SetOutputEnabled(bool value) {
184 m_outputEnabledHasBeenSet = true;
185 m_outputEnabled = value;
186 }
187 inline GuardrailTopic& WithOutputEnabled(bool value) {
188 SetOutputEnabled(value);
189 return *this;
190 }
192 private:
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_definition;
197 bool m_definitionHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_examples;
200 bool m_examplesHasBeenSet = false;
201
203 bool m_typeHasBeenSet = false;
204
206 bool m_inputActionHasBeenSet = false;
207
209 bool m_outputActionHasBeenSet = false;
210
211 bool m_inputEnabled{false};
212 bool m_inputEnabledHasBeenSet = false;
213
214 bool m_outputEnabled{false};
215 bool m_outputEnabledHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace Bedrock
220} // namespace Aws
const Aws::String & GetDefinition() const
GuardrailTopicType GetType() const
void SetDefinition(DefinitionT &&value)
GuardrailTopic & WithType(GuardrailTopicType value)
GuardrailTopic & WithExamples(ExamplesT &&value)
GuardrailTopic & WithName(NameT &&value)
const Aws::String & GetName() const
void SetInputAction(GuardrailTopicAction value)
AWS_BEDROCK_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(GuardrailTopicType value)
AWS_BEDROCK_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopic & WithInputAction(GuardrailTopicAction value)
GuardrailTopicAction GetOutputAction() const
GuardrailTopic & WithInputEnabled(bool value)
GuardrailTopic & WithDefinition(DefinitionT &&value)
void SetOutputAction(GuardrailTopicAction value)
GuardrailTopic & WithOutputAction(GuardrailTopicAction value)
GuardrailTopic & WithOutputEnabled(bool value)
const Aws::Vector< Aws::String > & GetExamples() const
void SetExamples(ExamplesT &&value)
GuardrailTopicAction GetInputAction() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API GuardrailTopic()=default
GuardrailTopic & AddExamples(ExamplesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue