AWS SDK for C++

AWS SDK for C++ Version 1.11.636

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
48 inline const Aws::Vector<Aws::String>& GetBlockedPhrases() const { return m_blockedPhrases; }
49 inline bool BlockedPhrasesHasBeenSet() const { return m_blockedPhrasesHasBeenSet; }
50 template<typename BlockedPhrasesT = Aws::Vector<Aws::String>>
51 void SetBlockedPhrases(BlockedPhrasesT&& value) { m_blockedPhrasesHasBeenSet = true; m_blockedPhrases = std::forward<BlockedPhrasesT>(value); }
52 template<typename BlockedPhrasesT = Aws::Vector<Aws::String>>
53 BlockedPhrasesConfiguration& WithBlockedPhrases(BlockedPhrasesT&& value) { SetBlockedPhrases(std::forward<BlockedPhrasesT>(value)); return *this;}
54 template<typename BlockedPhrasesT = Aws::String>
55 BlockedPhrasesConfiguration& AddBlockedPhrases(BlockedPhrasesT&& value) { m_blockedPhrasesHasBeenSet = true; m_blockedPhrases.emplace_back(std::forward<BlockedPhrasesT>(value)); return *this; }
57
59
63 inline const Aws::String& GetSystemMessageOverride() const { return m_systemMessageOverride; }
64 inline bool SystemMessageOverrideHasBeenSet() const { return m_systemMessageOverrideHasBeenSet; }
65 template<typename SystemMessageOverrideT = Aws::String>
66 void SetSystemMessageOverride(SystemMessageOverrideT&& value) { m_systemMessageOverrideHasBeenSet = true; m_systemMessageOverride = std::forward<SystemMessageOverrideT>(value); }
67 template<typename SystemMessageOverrideT = Aws::String>
68 BlockedPhrasesConfiguration& WithSystemMessageOverride(SystemMessageOverrideT&& value) { SetSystemMessageOverride(std::forward<SystemMessageOverrideT>(value)); return *this;}
70 private:
71
72 Aws::Vector<Aws::String> m_blockedPhrases;
73 bool m_blockedPhrasesHasBeenSet = false;
74
75 Aws::String m_systemMessageOverride;
76 bool m_systemMessageOverrideHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace QBusiness
81} // 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