AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TopicConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/model/Rule.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 QBusiness
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QBUSINESS_API TopicConfiguration() = default;
40 AWS_QBUSINESS_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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 TopicConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 TopicConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
73 inline const Aws::Vector<Aws::String>& GetExampleChatMessages() const { return m_exampleChatMessages; }
74 inline bool ExampleChatMessagesHasBeenSet() const { return m_exampleChatMessagesHasBeenSet; }
75 template<typename ExampleChatMessagesT = Aws::Vector<Aws::String>>
76 void SetExampleChatMessages(ExampleChatMessagesT&& value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages = std::forward<ExampleChatMessagesT>(value); }
77 template<typename ExampleChatMessagesT = Aws::Vector<Aws::String>>
78 TopicConfiguration& WithExampleChatMessages(ExampleChatMessagesT&& value) { SetExampleChatMessages(std::forward<ExampleChatMessagesT>(value)); return *this;}
79 template<typename ExampleChatMessagesT = Aws::String>
80 TopicConfiguration& AddExampleChatMessages(ExampleChatMessagesT&& value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages.emplace_back(std::forward<ExampleChatMessagesT>(value)); return *this; }
82
84
87 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
88 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
89 template<typename RulesT = Aws::Vector<Rule>>
90 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
91 template<typename RulesT = Aws::Vector<Rule>>
92 TopicConfiguration& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
93 template<typename RulesT = Rule>
94 TopicConfiguration& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_exampleChatMessages;
105 bool m_exampleChatMessagesHasBeenSet = false;
106
107 Aws::Vector<Rule> m_rules;
108 bool m_rulesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace QBusiness
113} // 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