AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
GuardrailPiiEntity.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailPiiEntityType.h>
9#include <aws/bedrock/model/GuardrailSensitiveInformationAction.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
29 public:
30 AWS_BEDROCK_API GuardrailPiiEntity() = default;
33 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline GuardrailPiiEntityType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(GuardrailPiiEntityType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
58 m_actionHasBeenSet = true;
59 m_action = value;
60 }
62 SetAction(value);
63 return *this;
64 }
66
68
76 inline GuardrailSensitiveInformationAction GetInputAction() const { return m_inputAction; }
77 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
79 m_inputActionHasBeenSet = true;
80 m_inputAction = value;
81 }
83 SetInputAction(value);
84 return *this;
85 }
87
89
97 inline GuardrailSensitiveInformationAction GetOutputAction() const { return m_outputAction; }
98 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
100 m_outputActionHasBeenSet = true;
101 m_outputAction = value;
102 }
104 SetOutputAction(value);
105 return *this;
106 }
108
110
115 inline bool GetInputEnabled() const { return m_inputEnabled; }
116 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
117 inline void SetInputEnabled(bool value) {
118 m_inputEnabledHasBeenSet = true;
119 m_inputEnabled = value;
120 }
122 SetInputEnabled(value);
123 return *this;
124 }
126
128
133 inline bool GetOutputEnabled() const { return m_outputEnabled; }
134 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
135 inline void SetOutputEnabled(bool value) {
136 m_outputEnabledHasBeenSet = true;
137 m_outputEnabled = value;
138 }
140 SetOutputEnabled(value);
141 return *this;
142 }
144 private:
146
148
150
152
153 bool m_inputEnabled{false};
154
155 bool m_outputEnabled{false};
156 bool m_typeHasBeenSet = false;
157 bool m_actionHasBeenSet = false;
158 bool m_inputActionHasBeenSet = false;
159 bool m_outputActionHasBeenSet = false;
160 bool m_inputEnabledHasBeenSet = false;
161 bool m_outputEnabledHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Bedrock
166} // namespace Aws
void SetOutputAction(GuardrailSensitiveInformationAction value)
GuardrailSensitiveInformationAction GetInputAction() const
AWS_BEDROCK_API GuardrailPiiEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailPiiEntity(Aws::Utils::Json::JsonView jsonValue)
void SetInputAction(GuardrailSensitiveInformationAction value)
GuardrailPiiEntity & WithAction(GuardrailSensitiveInformationAction value)
GuardrailPiiEntity & WithInputAction(GuardrailSensitiveInformationAction value)
void SetAction(GuardrailSensitiveInformationAction value)
GuardrailPiiEntityType GetType() const
void SetType(GuardrailPiiEntityType value)
GuardrailSensitiveInformationAction GetOutputAction() const
GuardrailPiiEntity & WithOutputAction(GuardrailSensitiveInformationAction value)
GuardrailSensitiveInformationAction GetAction() const
AWS_BEDROCK_API GuardrailPiiEntity()=default
GuardrailPiiEntity & WithOutputEnabled(bool value)
GuardrailPiiEntity & WithType(GuardrailPiiEntityType value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailPiiEntity & WithInputEnabled(bool value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue