AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailTopic.h
1
6#pragma once
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>
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 Bedrock
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_BEDROCK_API GuardrailTopic() = default;
41 AWS_BEDROCK_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
55 GuardrailTopic& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
66 template<typename DefinitionT = Aws::String>
67 GuardrailTopic& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
69
71
75 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
76 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
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>>
80 GuardrailTopic& WithExamples(ExamplesT&& value) { SetExamples(std::forward<ExamplesT>(value)); return *this;}
81 template<typename ExamplesT = Aws::String>
82 GuardrailTopic& AddExamples(ExamplesT&& value) { m_examplesHasBeenSet = true; m_examples.emplace_back(std::forward<ExamplesT>(value)); return *this; }
84
86
89 inline GuardrailTopicType GetType() const { return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(GuardrailTopicType value) { m_typeHasBeenSet = true; m_type = value; }
92 inline GuardrailTopic& WithType(GuardrailTopicType value) { SetType(value); return *this;}
94
96
103 inline GuardrailTopicAction GetInputAction() const { return m_inputAction; }
104 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
105 inline void SetInputAction(GuardrailTopicAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
108
110
117 inline GuardrailTopicAction GetOutputAction() const { return m_outputAction; }
118 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
119 inline void SetOutputAction(GuardrailTopicAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
122
124
129 inline bool GetInputEnabled() const { return m_inputEnabled; }
130 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
131 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
132 inline GuardrailTopic& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
134
136
141 inline bool GetOutputEnabled() const { return m_outputEnabled; }
142 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
143 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
144 inline GuardrailTopic& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
146 private:
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::String m_definition;
152 bool m_definitionHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_examples;
155 bool m_examplesHasBeenSet = false;
156
158 bool m_typeHasBeenSet = false;
159
161 bool m_inputActionHasBeenSet = false;
162
164 bool m_outputActionHasBeenSet = false;
165
166 bool m_inputEnabled{false};
167 bool m_inputEnabledHasBeenSet = false;
168
169 bool m_outputEnabled{false};
170 bool m_outputEnabledHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Bedrock
175} // 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