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-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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline GuardrailTopic& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline GuardrailTopic& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline GuardrailTopic& WithName(const char* value) { SetName(value); return *this;}
55
57
61 inline const GuardrailTopicType& GetType() const{ return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(const GuardrailTopicType& value) { m_typeHasBeenSet = true; m_type = value; }
64 inline void SetType(GuardrailTopicType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
65 inline GuardrailTopic& WithType(const GuardrailTopicType& value) { SetType(value); return *this;}
66 inline GuardrailTopic& WithType(GuardrailTopicType&& value) { SetType(std::move(value)); return *this;}
68
70
73 inline const GuardrailTopicPolicyAction& GetAction() const{ return m_action; }
74 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
75 inline void SetAction(const GuardrailTopicPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
76 inline void SetAction(GuardrailTopicPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
77 inline GuardrailTopic& WithAction(const GuardrailTopicPolicyAction& value) { SetAction(value); return *this;}
78 inline GuardrailTopic& WithAction(GuardrailTopicPolicyAction&& value) { SetAction(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
85 GuardrailTopicType m_type;
86 bool m_typeHasBeenSet = false;
87
89 bool m_actionHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockRuntime
94} // namespace Aws
GuardrailTopic & WithAction(GuardrailTopicPolicyAction &&value)
void SetAction(GuardrailTopicPolicyAction &&value)
void SetType(GuardrailTopicType &&value)
AWS_BEDROCKRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
void SetAction(const GuardrailTopicPolicyAction &value)
GuardrailTopic & WithName(const Aws::String &value)
GuardrailTopic & WithType(const GuardrailTopicType &value)
AWS_BEDROCKRUNTIME_API GuardrailTopic()
void SetName(const Aws::String &value)
const GuardrailTopicType & GetType() const
void SetType(const GuardrailTopicType &value)
GuardrailTopic & WithAction(const GuardrailTopicPolicyAction &value)
AWS_BEDROCKRUNTIME_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopic & WithName(const char *value)
GuardrailTopic & WithType(GuardrailTopicType &&value)
GuardrailTopic & WithName(Aws::String &&value)
const GuardrailTopicPolicyAction & GetAction() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue