AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BlockedPhrasesConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QBUSINESS_API BlockedPhrasesConfiguration() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetBlockedPhrases() const { return m_blockedPhrases; }
47 inline bool BlockedPhrasesHasBeenSet() const { return m_blockedPhrasesHasBeenSet; }
48 template<typename BlockedPhrasesT = Aws::Vector<Aws::String>>
49 void SetBlockedPhrases(BlockedPhrasesT&& value) { m_blockedPhrasesHasBeenSet = true; m_blockedPhrases = std::forward<BlockedPhrasesT>(value); }
50 template<typename BlockedPhrasesT = Aws::Vector<Aws::String>>
51 BlockedPhrasesConfiguration& WithBlockedPhrases(BlockedPhrasesT&& value) { SetBlockedPhrases(std::forward<BlockedPhrasesT>(value)); return *this;}
52 template<typename BlockedPhrasesT = Aws::String>
53 BlockedPhrasesConfiguration& AddBlockedPhrases(BlockedPhrasesT&& value) { m_blockedPhrasesHasBeenSet = true; m_blockedPhrases.emplace_back(std::forward<BlockedPhrasesT>(value)); return *this; }
55
57
61 inline const Aws::String& GetSystemMessageOverride() const { return m_systemMessageOverride; }
62 inline bool SystemMessageOverrideHasBeenSet() const { return m_systemMessageOverrideHasBeenSet; }
63 template<typename SystemMessageOverrideT = Aws::String>
64 void SetSystemMessageOverride(SystemMessageOverrideT&& value) { m_systemMessageOverrideHasBeenSet = true; m_systemMessageOverride = std::forward<SystemMessageOverrideT>(value); }
65 template<typename SystemMessageOverrideT = Aws::String>
66 BlockedPhrasesConfiguration& WithSystemMessageOverride(SystemMessageOverrideT&& value) { SetSystemMessageOverride(std::forward<SystemMessageOverrideT>(value)); return *this;}
68 private:
69
70 Aws::Vector<Aws::String> m_blockedPhrases;
71 bool m_blockedPhrasesHasBeenSet = false;
72
73 Aws::String m_systemMessageOverride;
74 bool m_systemMessageOverrideHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace QBusiness
79} // namespace Aws
BlockedPhrasesConfiguration & WithBlockedPhrases(BlockedPhrasesT &&value)
BlockedPhrasesConfiguration & WithSystemMessageOverride(SystemMessageOverrideT &&value)
const Aws::Vector< Aws::String > & GetBlockedPhrases() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API BlockedPhrasesConfiguration(Aws::Utils::Json::JsonView jsonValue)
BlockedPhrasesConfiguration & AddBlockedPhrases(BlockedPhrasesT &&value)
AWS_QBUSINESS_API BlockedPhrasesConfiguration()=default
AWS_QBUSINESS_API BlockedPhrasesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSystemMessageOverride(SystemMessageOverrideT &&value)
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