AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailTopic.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/GuardrailTopicType.h>
10#include <aws/bedrock-runtime/model/GuardrailTopicPolicyAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailTopic() = default;
37 AWS_BEDROCKRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API GuardrailTopic& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 GuardrailTopic& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
59 inline GuardrailTopicType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(GuardrailTopicType value) { m_typeHasBeenSet = true; m_type = value; }
62 inline GuardrailTopic& WithType(GuardrailTopicType value) { SetType(value); return *this;}
64
66
69 inline GuardrailTopicPolicyAction GetAction() const { return m_action; }
70 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
71 inline void SetAction(GuardrailTopicPolicyAction value) { m_actionHasBeenSet = true; m_action = value; }
72 inline GuardrailTopic& WithAction(GuardrailTopicPolicyAction value) { SetAction(value); return *this;}
74
76
80 inline bool GetDetected() const { return m_detected; }
81 inline bool DetectedHasBeenSet() const { return m_detectedHasBeenSet; }
82 inline void SetDetected(bool value) { m_detectedHasBeenSet = true; m_detected = value; }
83 inline GuardrailTopic& WithDetected(bool value) { SetDetected(value); return *this;}
85 private:
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
91 bool m_typeHasBeenSet = false;
92
94 bool m_actionHasBeenSet = false;
95
96 bool m_detected{false};
97 bool m_detectedHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace BedrockRuntime
102} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue