AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GuardrailTopic.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailTopicPolicyAction.h>
9#include <aws/bedrock-runtime/model/GuardrailTopicType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
30 public:
31 AWS_BEDROCKRUNTIME_API GuardrailTopic() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline GuardrailTopicType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(GuardrailTopicType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
75 inline GuardrailTopicPolicyAction GetAction() const { return m_action; }
76 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
78 m_actionHasBeenSet = true;
79 m_action = value;
80 }
82 SetAction(value);
83 return *this;
84 }
86
88
92 inline bool GetDetected() const { return m_detected; }
93 inline bool DetectedHasBeenSet() const { return m_detectedHasBeenSet; }
94 inline void SetDetected(bool value) {
95 m_detectedHasBeenSet = true;
96 m_detected = value;
97 }
98 inline GuardrailTopic& WithDetected(bool value) {
99 SetDetected(value);
100 return *this;
101 }
103 private:
104 Aws::String m_name;
105
107
109
110 bool m_detected{false};
111 bool m_nameHasBeenSet = false;
112 bool m_typeHasBeenSet = false;
113 bool m_actionHasBeenSet = false;
114 bool m_detectedHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace BedrockRuntime
119} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailTopic()=default
GuardrailTopicPolicyAction GetAction() const
AWS_BEDROCKRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopic & WithAction(GuardrailTopicPolicyAction value)
AWS_BEDROCKRUNTIME_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopic & WithName(NameT &&value)
void SetType(GuardrailTopicType value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopic & WithDetected(bool value)
GuardrailTopic & WithType(GuardrailTopicType value)
void SetAction(GuardrailTopicPolicyAction value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue