AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
TopicConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/Rule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
31 public:
32 AWS_QBUSINESS_API TopicConfiguration() = default;
35 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetExampleChatMessages() const { return m_exampleChatMessages; }
80 inline bool ExampleChatMessagesHasBeenSet() const { return m_exampleChatMessagesHasBeenSet; }
81 template <typename ExampleChatMessagesT = Aws::Vector<Aws::String>>
83 m_exampleChatMessagesHasBeenSet = true;
84 m_exampleChatMessages = std::forward<ExampleChatMessagesT>(value);
85 }
86 template <typename ExampleChatMessagesT = Aws::Vector<Aws::String>>
88 SetExampleChatMessages(std::forward<ExampleChatMessagesT>(value));
89 return *this;
90 }
91 template <typename ExampleChatMessagesT = Aws::String>
93 m_exampleChatMessagesHasBeenSet = true;
94 m_exampleChatMessages.emplace_back(std::forward<ExampleChatMessagesT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
104 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
105 template <typename RulesT = Aws::Vector<Rule>>
106 void SetRules(RulesT&& value) {
107 m_rulesHasBeenSet = true;
108 m_rules = std::forward<RulesT>(value);
109 }
110 template <typename RulesT = Aws::Vector<Rule>>
112 SetRules(std::forward<RulesT>(value));
113 return *this;
114 }
115 template <typename RulesT = Rule>
117 m_rulesHasBeenSet = true;
118 m_rules.emplace_back(std::forward<RulesT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_name;
124
125 Aws::String m_description;
126
127 Aws::Vector<Aws::String> m_exampleChatMessages;
128
129 Aws::Vector<Rule> m_rules;
130 bool m_nameHasBeenSet = false;
131 bool m_descriptionHasBeenSet = false;
132 bool m_exampleChatMessagesHasBeenSet = false;
133 bool m_rulesHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace QBusiness
138} // namespace Aws
TopicConfiguration & WithExampleChatMessages(ExampleChatMessagesT &&value)
TopicConfiguration & AddRules(RulesT &&value)
AWS_QBUSINESS_API TopicConfiguration(Aws::Utils::Json::JsonView jsonValue)
TopicConfiguration & WithName(NameT &&value)
TopicConfiguration & WithRules(RulesT &&value)
AWS_QBUSINESS_API TopicConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Rule > & GetRules() const
AWS_QBUSINESS_API TopicConfiguration()=default
TopicConfiguration & WithDescription(DescriptionT &&value)
TopicConfiguration & AddExampleChatMessages(ExampleChatMessagesT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExampleChatMessages(ExampleChatMessagesT &&value)
const Aws::Vector< Aws::String > & GetExampleChatMessages() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue