7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/model/GuardrailTopicType.h>
11#include <aws/bedrock/model/GuardrailTopicAction.h>
52 template<
typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
54 template<
typename NameT = Aws::String>
64 template<
typename DefinitionT = Aws::String>
65 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet =
true; m_definition = std::forward<DefinitionT>(value); }
66 template<
typename DefinitionT = Aws::String>
77 template<
typename ExamplesT = Aws::Vector<Aws::String>>
78 void SetExamples(ExamplesT&& value) { m_examplesHasBeenSet =
true; m_examples = std::forward<ExamplesT>(value); }
79 template<
typename ExamplesT = Aws::Vector<Aws::String>>
81 template<
typename ExamplesT = Aws::String>
82 GuardrailTopic&
AddExamples(ExamplesT&& value) { m_examplesHasBeenSet =
true; m_examples.emplace_back(std::forward<ExamplesT>(value));
return *
this; }
131 inline void SetInputEnabled(
bool value) { m_inputEnabledHasBeenSet =
true; m_inputEnabled = value; }
143 inline void SetOutputEnabled(
bool value) { m_outputEnabledHasBeenSet =
true; m_outputEnabled = value; }
149 bool m_nameHasBeenSet =
false;
152 bool m_definitionHasBeenSet =
false;
155 bool m_examplesHasBeenSet =
false;
158 bool m_typeHasBeenSet =
false;
161 bool m_inputActionHasBeenSet =
false;
164 bool m_outputActionHasBeenSet =
false;
166 bool m_inputEnabled{
false};
167 bool m_inputEnabledHasBeenSet =
false;
169 bool m_outputEnabled{
false};
170 bool m_outputEnabledHasBeenSet =
false;
const Aws::String & GetDefinition() const
GuardrailTopicType GetType() const
bool TypeHasBeenSet() const
void SetDefinition(DefinitionT &&value)
void SetName(NameT &&value)
void SetOutputEnabled(bool value)
GuardrailTopic & WithType(GuardrailTopicType value)
GuardrailTopic & WithExamples(ExamplesT &&value)
void SetInputEnabled(bool value)
GuardrailTopic & WithName(NameT &&value)
const Aws::String & GetName() const
void SetInputAction(GuardrailTopicAction value)
AWS_BEDROCK_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
bool InputActionHasBeenSet() const
bool GetInputEnabled() const
bool OutputEnabledHasBeenSet() const
void SetType(GuardrailTopicType value)
AWS_BEDROCK_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
bool OutputActionHasBeenSet() const
bool GetOutputEnabled() const
bool ExamplesHasBeenSet() const
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
bool NameHasBeenSet() const
bool DefinitionHasBeenSet() const
void SetExamples(ExamplesT &&value)
bool InputEnabledHasBeenSet() const
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