AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BEDROCK_API GuardrailManagedWords() = default;
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline GuardrailManagedWordsType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(GuardrailManagedWordsType value) { m_typeHasBeenSet = true; m_type = value; }
51 inline GuardrailManagedWords& WithType(GuardrailManagedWordsType value) { SetType(value); return *this;}
53
55
62 inline GuardrailWordAction GetInputAction() const { return m_inputAction; }
63 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
64 inline void SetInputAction(GuardrailWordAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
67
69
76 inline GuardrailWordAction GetOutputAction() const { return m_outputAction; }
77 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
78 inline void SetOutputAction(GuardrailWordAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
81
83
88 inline bool GetInputEnabled() const { return m_inputEnabled; }
89 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
90 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
91 inline GuardrailManagedWords& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
93
95
100 inline bool GetOutputEnabled() const { return m_outputEnabled; }
101 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
102 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
103 inline GuardrailManagedWords& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
105 private:
106
108 bool m_typeHasBeenSet = false;
109
111 bool m_inputActionHasBeenSet = false;
112
114 bool m_outputActionHasBeenSet = false;
115
116 bool m_inputEnabled{false};
117 bool m_inputEnabledHasBeenSet = false;
118
119 bool m_outputEnabled{false};
120 bool m_outputEnabledHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Bedrock
125} // 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