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/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/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 Bedrock
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BEDROCK_API GuardrailTopic();
40 AWS_BEDROCK_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline GuardrailTopic& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline GuardrailTopic& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline GuardrailTopic& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDefinition() const{ return m_definition; }
64 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
65 inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
66 inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
67 inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
68 inline GuardrailTopic& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
69 inline GuardrailTopic& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
70 inline GuardrailTopic& WithDefinition(const char* value) { SetDefinition(value); return *this;}
72
74
78 inline const Aws::Vector<Aws::String>& GetExamples() const{ return m_examples; }
79 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
80 inline void SetExamples(const Aws::Vector<Aws::String>& value) { m_examplesHasBeenSet = true; m_examples = value; }
81 inline void SetExamples(Aws::Vector<Aws::String>&& value) { m_examplesHasBeenSet = true; m_examples = std::move(value); }
82 inline GuardrailTopic& WithExamples(const Aws::Vector<Aws::String>& value) { SetExamples(value); return *this;}
83 inline GuardrailTopic& WithExamples(Aws::Vector<Aws::String>&& value) { SetExamples(std::move(value)); return *this;}
84 inline GuardrailTopic& AddExamples(const Aws::String& value) { m_examplesHasBeenSet = true; m_examples.push_back(value); return *this; }
85 inline GuardrailTopic& AddExamples(Aws::String&& value) { m_examplesHasBeenSet = true; m_examples.push_back(std::move(value)); return *this; }
86 inline GuardrailTopic& AddExamples(const char* value) { m_examplesHasBeenSet = true; m_examples.push_back(value); return *this; }
88
90
93 inline const GuardrailTopicType& GetType() const{ return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(const GuardrailTopicType& value) { m_typeHasBeenSet = true; m_type = value; }
96 inline void SetType(GuardrailTopicType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
97 inline GuardrailTopic& WithType(const GuardrailTopicType& value) { SetType(value); return *this;}
98 inline GuardrailTopic& WithType(GuardrailTopicType&& value) { SetType(std::move(value)); return *this;}
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_definition;
106 bool m_definitionHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_examples;
109 bool m_examplesHasBeenSet = false;
110
111 GuardrailTopicType m_type;
112 bool m_typeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Bedrock
117} // namespace Aws
const Aws::String & GetDefinition() const
GuardrailTopic & WithName(const char *value)
GuardrailTopic & WithName(const Aws::String &value)
GuardrailTopic & AddExamples(Aws::String &&value)
void SetDefinition(const char *value)
GuardrailTopic & AddExamples(const char *value)
void SetType(const GuardrailTopicType &value)
void SetName(Aws::String &&value)
GuardrailTopic & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetType(GuardrailTopicType &&value)
const GuardrailTopicType & GetType() const
AWS_BEDROCK_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopic & WithType(const GuardrailTopicType &value)
GuardrailTopic & WithType(GuardrailTopicType &&value)
void SetName(const char *value)
GuardrailTopic & WithDefinition(const char *value)
AWS_BEDROCK_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
void SetExamples(Aws::Vector< Aws::String > &&value)
void SetDefinition(const Aws::String &value)
void SetExamples(const Aws::Vector< Aws::String > &value)
void SetDefinition(Aws::String &&value)
GuardrailTopic & WithDefinition(Aws::String &&value)
GuardrailTopic & WithExamples(Aws::Vector< Aws::String > &&value)
GuardrailTopic & WithDefinition(const Aws::String &value)
const Aws::Vector< Aws::String > & GetExamples() const
GuardrailTopic & WithExamples(const Aws::Vector< Aws::String > &value)
void SetName(const Aws::String &value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopic & AddExamples(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue