AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailTopicConfig.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
35 {
36 public:
37 AWS_BEDROCK_API GuardrailTopicConfig();
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline GuardrailTopicConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline GuardrailTopicConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline GuardrailTopicConfig& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDefinition() const{ return m_definition; }
62 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
63 inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
64 inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
65 inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
66 inline GuardrailTopicConfig& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
67 inline GuardrailTopicConfig& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
68 inline GuardrailTopicConfig& WithDefinition(const char* value) { SetDefinition(value); return *this;}
70
72
76 inline const Aws::Vector<Aws::String>& GetExamples() const{ return m_examples; }
77 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
78 inline void SetExamples(const Aws::Vector<Aws::String>& value) { m_examplesHasBeenSet = true; m_examples = value; }
79 inline void SetExamples(Aws::Vector<Aws::String>&& value) { m_examplesHasBeenSet = true; m_examples = std::move(value); }
80 inline GuardrailTopicConfig& WithExamples(const Aws::Vector<Aws::String>& value) { SetExamples(value); return *this;}
81 inline GuardrailTopicConfig& WithExamples(Aws::Vector<Aws::String>&& value) { SetExamples(std::move(value)); return *this;}
82 inline GuardrailTopicConfig& AddExamples(const Aws::String& value) { m_examplesHasBeenSet = true; m_examples.push_back(value); return *this; }
83 inline GuardrailTopicConfig& AddExamples(Aws::String&& value) { m_examplesHasBeenSet = true; m_examples.push_back(std::move(value)); return *this; }
84 inline GuardrailTopicConfig& AddExamples(const char* value) { m_examplesHasBeenSet = true; m_examples.push_back(value); return *this; }
86
88
91 inline const GuardrailTopicType& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const GuardrailTopicType& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(GuardrailTopicType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline GuardrailTopicConfig& WithType(const GuardrailTopicType& value) { SetType(value); return *this;}
96 inline GuardrailTopicConfig& WithType(GuardrailTopicType&& value) { SetType(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::String m_definition;
104 bool m_definitionHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_examples;
107 bool m_examplesHasBeenSet = false;
108
109 GuardrailTopicType m_type;
110 bool m_typeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Bedrock
115} // namespace Aws
AWS_BEDROCK_API GuardrailTopicConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetExamples() const
GuardrailTopicConfig & WithDefinition(const char *value)
void SetExamples(const Aws::Vector< Aws::String > &value)
GuardrailTopicConfig & WithName(const char *value)
AWS_BEDROCK_API GuardrailTopicConfig(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicConfig & WithName(Aws::String &&value)
GuardrailTopicConfig & WithDefinition(Aws::String &&value)
void SetDefinition(const Aws::String &value)
void SetType(GuardrailTopicType &&value)
GuardrailTopicConfig & WithType(const GuardrailTopicType &value)
void SetType(const GuardrailTopicType &value)
const GuardrailTopicType & GetType() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopicConfig & WithExamples(Aws::Vector< Aws::String > &&value)
GuardrailTopicConfig & WithExamples(const Aws::Vector< Aws::String > &value)
GuardrailTopicConfig & WithType(GuardrailTopicType &&value)
GuardrailTopicConfig & AddExamples(const char *value)
GuardrailTopicConfig & WithDefinition(const Aws::String &value)
GuardrailTopicConfig & WithName(const Aws::String &value)
GuardrailTopicConfig & AddExamples(const Aws::String &value)
GuardrailTopicConfig & AddExamples(Aws::String &&value)
void SetExamples(Aws::Vector< 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