AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38 AWS_QBUSINESS_API TopicConfiguration(Aws::Utils::Json::JsonView jsonValue);
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 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 TopicConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline TopicConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline TopicConfiguration& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline TopicConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline TopicConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline TopicConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
77 inline const Aws::Vector<Aws::String>& GetExampleChatMessages() const{ return m_exampleChatMessages; }
78 inline bool ExampleChatMessagesHasBeenSet() const { return m_exampleChatMessagesHasBeenSet; }
79 inline void SetExampleChatMessages(const Aws::Vector<Aws::String>& value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages = value; }
80 inline void SetExampleChatMessages(Aws::Vector<Aws::String>&& value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages = std::move(value); }
83 inline TopicConfiguration& AddExampleChatMessages(const Aws::String& value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages.push_back(value); return *this; }
84 inline TopicConfiguration& AddExampleChatMessages(Aws::String&& value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages.push_back(std::move(value)); return *this; }
85 inline TopicConfiguration& AddExampleChatMessages(const char* value) { m_exampleChatMessagesHasBeenSet = true; m_exampleChatMessages.push_back(value); return *this; }
87
89
92 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
93 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
94 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
95 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
96 inline TopicConfiguration& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
97 inline TopicConfiguration& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
98 inline TopicConfiguration& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
99 inline TopicConfiguration& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_description;
107 bool m_descriptionHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_exampleChatMessages;
110 bool m_exampleChatMessagesHasBeenSet = false;
111
112 Aws::Vector<Rule> m_rules;
113 bool m_rulesHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace QBusiness
118} // namespace Aws
TopicConfiguration & AddExampleChatMessages(const Aws::String &value)
AWS_QBUSINESS_API TopicConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
AWS_QBUSINESS_API TopicConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
TopicConfiguration & AddRules(Rule &&value)
const Aws::Vector< Rule > & GetRules() const
TopicConfiguration & WithExampleChatMessages(const Aws::Vector< Aws::String > &value)
void SetRules(Aws::Vector< Rule > &&value)
TopicConfiguration & WithRules(Aws::Vector< Rule > &&value)
TopicConfiguration & WithName(const char *value)
void SetDescription(const Aws::String &value)
TopicConfiguration & WithName(Aws::String &&value)
TopicConfiguration & AddExampleChatMessages(Aws::String &&value)
void SetExampleChatMessages(Aws::Vector< Aws::String > &&value)
TopicConfiguration & AddRules(const Rule &value)
TopicConfiguration & AddExampleChatMessages(const char *value)
void SetRules(const Aws::Vector< Rule > &value)
TopicConfiguration & WithDescription(Aws::String &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
TopicConfiguration & WithRules(const Aws::Vector< Rule > &value)
TopicConfiguration & WithDescription(const char *value)
TopicConfiguration & WithName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetExampleChatMessages() const
void SetExampleChatMessages(const Aws::Vector< Aws::String > &value)
TopicConfiguration & WithDescription(const Aws::String &value)
TopicConfiguration & WithExampleChatMessages(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