AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailTopic.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/GuardrailTopicType.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 BedrockAgentRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic();
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GuardrailTopicPolicyAction& GetAction() const{ return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(const GuardrailTopicPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
50 inline void SetAction(GuardrailTopicPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
51 inline GuardrailTopic& WithAction(const GuardrailTopicPolicyAction& value) { SetAction(value); return *this;}
52 inline GuardrailTopic& WithAction(GuardrailTopicPolicyAction&& value) { SetAction(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline GuardrailTopic& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline GuardrailTopic& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline GuardrailTopic& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const GuardrailTopicType& GetType() const{ return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(const GuardrailTopicType& value) { m_typeHasBeenSet = true; m_type = value; }
76 inline void SetType(GuardrailTopicType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
77 inline GuardrailTopic& WithType(const GuardrailTopicType& value) { SetType(value); return *this;}
78 inline GuardrailTopic& WithType(GuardrailTopicType&& value) { SetType(std::move(value)); return *this;}
80 private:
81
83 bool m_actionHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 GuardrailTopicType m_type;
89 bool m_typeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockAgentRuntime
94} // namespace Aws
GuardrailTopic & WithName(Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
void SetType(GuardrailTopicType &&value)
void SetAction(GuardrailTopicPolicyAction &&value)
GuardrailTopic & WithType(const GuardrailTopicType &value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic()
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(const GuardrailTopicPolicyAction &value)
GuardrailTopic & WithAction(GuardrailTopicPolicyAction &&value)
GuardrailTopic & WithType(GuardrailTopicType &&value)
GuardrailTopic & WithAction(const GuardrailTopicPolicyAction &value)
const GuardrailTopicPolicyAction & GetAction() const
GuardrailTopic & WithName(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
const GuardrailTopicType & GetType() const
void SetType(const GuardrailTopicType &value)
GuardrailTopic & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue