AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GuardrailManagedWords.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailManagedWordsType.h>
9#include <aws/bedrock/model/GuardrailWordAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
31 public:
32 AWS_BEDROCK_API GuardrailManagedWords() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline GuardrailManagedWordsType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
62 inline GuardrailWordAction GetInputAction() const { return m_inputAction; }
63 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
65 m_inputActionHasBeenSet = true;
66 m_inputAction = value;
67 }
69 SetInputAction(value);
70 return *this;
71 }
73
75
82 inline GuardrailWordAction GetOutputAction() const { return m_outputAction; }
83 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
85 m_outputActionHasBeenSet = true;
86 m_outputAction = value;
87 }
89 SetOutputAction(value);
90 return *this;
91 }
93
95
100 inline bool GetInputEnabled() const { return m_inputEnabled; }
101 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
102 inline void SetInputEnabled(bool value) {
103 m_inputEnabledHasBeenSet = true;
104 m_inputEnabled = value;
105 }
107 SetInputEnabled(value);
108 return *this;
109 }
111
113
118 inline bool GetOutputEnabled() const { return m_outputEnabled; }
119 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
120 inline void SetOutputEnabled(bool value) {
121 m_outputEnabledHasBeenSet = true;
122 m_outputEnabled = value;
123 }
125 SetOutputEnabled(value);
126 return *this;
127 }
129 private:
131 bool m_typeHasBeenSet = false;
132
134 bool m_inputActionHasBeenSet = false;
135
137 bool m_outputActionHasBeenSet = false;
138
139 bool m_inputEnabled{false};
140 bool m_inputEnabledHasBeenSet = false;
141
142 bool m_outputEnabled{false};
143 bool m_outputEnabledHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Bedrock
148} // namespace Aws
void SetType(GuardrailManagedWordsType value)
AWS_BEDROCK_API GuardrailManagedWords & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailManagedWords & WithOutputEnabled(bool value)
GuardrailManagedWords & WithInputEnabled(bool value)
void SetInputAction(GuardrailWordAction value)
AWS_BEDROCK_API GuardrailManagedWords()=default
GuardrailManagedWordsType GetType() const
GuardrailManagedWords & WithInputAction(GuardrailWordAction value)
AWS_BEDROCK_API GuardrailManagedWords(Aws::Utils::Json::JsonView jsonValue)
void SetOutputAction(GuardrailWordAction value)
GuardrailManagedWords & WithOutputAction(GuardrailWordAction value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailManagedWords & WithType(GuardrailManagedWordsType value)
Aws::Utils::Json::JsonValue JsonValue