AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GuardrailTopicConfig.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
32 public:
33 AWS_BEDROCK_API GuardrailTopicConfig() = default;
36 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDefinition() const { return m_definition; }
61 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
62 template <typename DefinitionT = Aws::String>
63 void SetDefinition(DefinitionT&& value) {
64 m_definitionHasBeenSet = true;
65 m_definition = std::forward<DefinitionT>(value);
66 }
67 template <typename DefinitionT = Aws::String>
68 GuardrailTopicConfig& WithDefinition(DefinitionT&& value) {
69 SetDefinition(std::forward<DefinitionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
80 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
81 template <typename ExamplesT = Aws::Vector<Aws::String>>
82 void SetExamples(ExamplesT&& value) {
83 m_examplesHasBeenSet = true;
84 m_examples = std::forward<ExamplesT>(value);
85 }
86 template <typename ExamplesT = Aws::Vector<Aws::String>>
87 GuardrailTopicConfig& WithExamples(ExamplesT&& value) {
88 SetExamples(std::forward<ExamplesT>(value));
89 return *this;
90 }
91 template <typename ExamplesT = Aws::String>
92 GuardrailTopicConfig& AddExamples(ExamplesT&& value) {
93 m_examplesHasBeenSet = true;
94 m_examples.emplace_back(std::forward<ExamplesT>(value));
95 return *this;
96 }
98
100
103 inline GuardrailTopicType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(GuardrailTopicType value) {
106 m_typeHasBeenSet = true;
107 m_type = value;
108 }
110 SetType(value);
111 return *this;
112 }
114
116
123 inline GuardrailTopicAction GetInputAction() const { return m_inputAction; }
124 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
126 m_inputActionHasBeenSet = true;
127 m_inputAction = value;
128 }
130 SetInputAction(value);
131 return *this;
132 }
134
136
143 inline GuardrailTopicAction GetOutputAction() const { return m_outputAction; }
144 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
146 m_outputActionHasBeenSet = true;
147 m_outputAction = value;
148 }
150 SetOutputAction(value);
151 return *this;
152 }
154
156
161 inline bool GetInputEnabled() const { return m_inputEnabled; }
162 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
163 inline void SetInputEnabled(bool value) {
164 m_inputEnabledHasBeenSet = true;
165 m_inputEnabled = value;
166 }
168 SetInputEnabled(value);
169 return *this;
170 }
172
174
179 inline bool GetOutputEnabled() const { return m_outputEnabled; }
180 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
181 inline void SetOutputEnabled(bool value) {
182 m_outputEnabledHasBeenSet = true;
183 m_outputEnabled = value;
184 }
186 SetOutputEnabled(value);
187 return *this;
188 }
190 private:
191 Aws::String m_name;
192 bool m_nameHasBeenSet = false;
193
194 Aws::String m_definition;
195 bool m_definitionHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_examples;
198 bool m_examplesHasBeenSet = false;
199
201 bool m_typeHasBeenSet = false;
202
204 bool m_inputActionHasBeenSet = false;
205
207 bool m_outputActionHasBeenSet = false;
208
209 bool m_inputEnabled{false};
210 bool m_inputEnabledHasBeenSet = false;
211
212 bool m_outputEnabled{false};
213 bool m_outputEnabledHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace Bedrock
218} // namespace Aws
AWS_BEDROCK_API GuardrailTopicConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetExamples() const
GuardrailTopicConfig & WithName(NameT &&value)
GuardrailTopicConfig & WithType(GuardrailTopicType value)
GuardrailTopicConfig & WithInputAction(GuardrailTopicAction value)
GuardrailTopicConfig & WithInputEnabled(bool value)
GuardrailTopicConfig & WithExamples(ExamplesT &&value)
AWS_BEDROCK_API GuardrailTopicConfig(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicConfig & WithOutputAction(GuardrailTopicAction value)
GuardrailTopicConfig & WithDefinition(DefinitionT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOutputAction(GuardrailTopicAction value)
GuardrailTopicConfig & WithOutputEnabled(bool value)
void SetInputAction(GuardrailTopicAction value)
GuardrailTopicConfig & AddExamples(ExamplesT &&value)
AWS_BEDROCK_API GuardrailTopicConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue