AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
BlockedPhrasesConfiguration.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API BlockedPhrasesConfiguration() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::String>& GetBlockedPhrases() const { return m_blockedPhrases; }
43 inline bool BlockedPhrasesHasBeenSet() const { return m_blockedPhrasesHasBeenSet; }
44 template <typename BlockedPhrasesT = Aws::Vector<Aws::String>>
46 m_blockedPhrasesHasBeenSet = true;
47 m_blockedPhrases = std::forward<BlockedPhrasesT>(value);
48 }
49 template <typename BlockedPhrasesT = Aws::Vector<Aws::String>>
51 SetBlockedPhrases(std::forward<BlockedPhrasesT>(value));
52 return *this;
53 }
54 template <typename BlockedPhrasesT = Aws::String>
56 m_blockedPhrasesHasBeenSet = true;
57 m_blockedPhrases.emplace_back(std::forward<BlockedPhrasesT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetSystemMessageOverride() const { return m_systemMessageOverride; }
68 inline bool SystemMessageOverrideHasBeenSet() const { return m_systemMessageOverrideHasBeenSet; }
69 template <typename SystemMessageOverrideT = Aws::String>
71 m_systemMessageOverrideHasBeenSet = true;
72 m_systemMessageOverride = std::forward<SystemMessageOverrideT>(value);
73 }
74 template <typename SystemMessageOverrideT = Aws::String>
76 SetSystemMessageOverride(std::forward<SystemMessageOverrideT>(value));
77 return *this;
78 }
80 private:
81 Aws::Vector<Aws::String> m_blockedPhrases;
82 bool m_blockedPhrasesHasBeenSet = false;
83
84 Aws::String m_systemMessageOverride;
85 bool m_systemMessageOverrideHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace QBusiness
90} // 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