AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailTopicConfig.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
36 {
37 public:
38 AWS_BEDROCK_API GuardrailTopicConfig() = default;
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 GuardrailTopicConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
64 template<typename DefinitionT = Aws::String>
65 GuardrailTopicConfig& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
67
69
73 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
74 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
75 template<typename ExamplesT = Aws::Vector<Aws::String>>
76 void SetExamples(ExamplesT&& value) { m_examplesHasBeenSet = true; m_examples = std::forward<ExamplesT>(value); }
77 template<typename ExamplesT = Aws::Vector<Aws::String>>
78 GuardrailTopicConfig& WithExamples(ExamplesT&& value) { SetExamples(std::forward<ExamplesT>(value)); return *this;}
79 template<typename ExamplesT = Aws::String>
80 GuardrailTopicConfig& AddExamples(ExamplesT&& value) { m_examplesHasBeenSet = true; m_examples.emplace_back(std::forward<ExamplesT>(value)); return *this; }
82
84
87 inline GuardrailTopicType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(GuardrailTopicType value) { m_typeHasBeenSet = true; m_type = value; }
90 inline GuardrailTopicConfig& WithType(GuardrailTopicType value) { SetType(value); return *this;}
92
94
101 inline GuardrailTopicAction GetInputAction() const { return m_inputAction; }
102 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
103 inline void SetInputAction(GuardrailTopicAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
106
108
115 inline GuardrailTopicAction GetOutputAction() const { return m_outputAction; }
116 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
117 inline void SetOutputAction(GuardrailTopicAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
120
122
127 inline bool GetInputEnabled() const { return m_inputEnabled; }
128 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
129 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
130 inline GuardrailTopicConfig& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
132
134
139 inline bool GetOutputEnabled() const { return m_outputEnabled; }
140 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
141 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
142 inline GuardrailTopicConfig& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_definition;
150 bool m_definitionHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_examples;
153 bool m_examplesHasBeenSet = false;
154
156 bool m_typeHasBeenSet = false;
157
159 bool m_inputActionHasBeenSet = false;
160
162 bool m_outputActionHasBeenSet = false;
163
164 bool m_inputEnabled{false};
165 bool m_inputEnabledHasBeenSet = false;
166
167 bool m_outputEnabled{false};
168 bool m_outputEnabledHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Bedrock
173} // 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