AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
BlockedPhrasesConfigurationUpdate.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 BlockedPhrasesConfigurationUpdate() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Aws::String>& GetBlockedPhrasesToCreateOrUpdate() const { return m_blockedPhrasesToCreateOrUpdate; }
42 inline bool BlockedPhrasesToCreateOrUpdateHasBeenSet() const { return m_blockedPhrasesToCreateOrUpdateHasBeenSet; }
43 template <typename BlockedPhrasesToCreateOrUpdateT = Aws::Vector<Aws::String>>
45 m_blockedPhrasesToCreateOrUpdateHasBeenSet = true;
46 m_blockedPhrasesToCreateOrUpdate = std::forward<BlockedPhrasesToCreateOrUpdateT>(value);
47 }
48 template <typename BlockedPhrasesToCreateOrUpdateT = Aws::Vector<Aws::String>>
50 SetBlockedPhrasesToCreateOrUpdate(std::forward<BlockedPhrasesToCreateOrUpdateT>(value));
51 return *this;
52 }
53 template <typename BlockedPhrasesToCreateOrUpdateT = Aws::String>
55 m_blockedPhrasesToCreateOrUpdateHasBeenSet = true;
56 m_blockedPhrasesToCreateOrUpdate.emplace_back(std::forward<BlockedPhrasesToCreateOrUpdateT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Aws::String>& GetBlockedPhrasesToDelete() const { return m_blockedPhrasesToDelete; }
67 inline bool BlockedPhrasesToDeleteHasBeenSet() const { return m_blockedPhrasesToDeleteHasBeenSet; }
68 template <typename BlockedPhrasesToDeleteT = Aws::Vector<Aws::String>>
70 m_blockedPhrasesToDeleteHasBeenSet = true;
71 m_blockedPhrasesToDelete = std::forward<BlockedPhrasesToDeleteT>(value);
72 }
73 template <typename BlockedPhrasesToDeleteT = Aws::Vector<Aws::String>>
75 SetBlockedPhrasesToDelete(std::forward<BlockedPhrasesToDeleteT>(value));
76 return *this;
77 }
78 template <typename BlockedPhrasesToDeleteT = Aws::String>
80 m_blockedPhrasesToDeleteHasBeenSet = true;
81 m_blockedPhrasesToDelete.emplace_back(std::forward<BlockedPhrasesToDeleteT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetSystemMessageOverride() const { return m_systemMessageOverride; }
92 inline bool SystemMessageOverrideHasBeenSet() const { return m_systemMessageOverrideHasBeenSet; }
93 template <typename SystemMessageOverrideT = Aws::String>
95 m_systemMessageOverrideHasBeenSet = true;
96 m_systemMessageOverride = std::forward<SystemMessageOverrideT>(value);
97 }
98 template <typename SystemMessageOverrideT = Aws::String>
100 SetSystemMessageOverride(std::forward<SystemMessageOverrideT>(value));
101 return *this;
102 }
104 private:
105 Aws::Vector<Aws::String> m_blockedPhrasesToCreateOrUpdate;
106
107 Aws::Vector<Aws::String> m_blockedPhrasesToDelete;
108
109 Aws::String m_systemMessageOverride;
110 bool m_blockedPhrasesToCreateOrUpdateHasBeenSet = false;
111 bool m_blockedPhrasesToDeleteHasBeenSet = false;
112 bool m_systemMessageOverrideHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace QBusiness
117} // namespace Aws
BlockedPhrasesConfigurationUpdate & AddBlockedPhrasesToDelete(BlockedPhrasesToDeleteT &&value)
AWS_QBUSINESS_API BlockedPhrasesConfigurationUpdate()=default
BlockedPhrasesConfigurationUpdate & WithSystemMessageOverride(SystemMessageOverrideT &&value)
AWS_QBUSINESS_API BlockedPhrasesConfigurationUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockedPhrasesConfigurationUpdate & AddBlockedPhrasesToCreateOrUpdate(BlockedPhrasesToCreateOrUpdateT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
BlockedPhrasesConfigurationUpdate & WithBlockedPhrasesToCreateOrUpdate(BlockedPhrasesToCreateOrUpdateT &&value)
void SetBlockedPhrasesToCreateOrUpdate(BlockedPhrasesToCreateOrUpdateT &&value)
const Aws::Vector< Aws::String > & GetBlockedPhrasesToCreateOrUpdate() const
BlockedPhrasesConfigurationUpdate & WithBlockedPhrasesToDelete(BlockedPhrasesToDeleteT &&value)
AWS_QBUSINESS_API BlockedPhrasesConfigurationUpdate(Aws::Utils::Json::JsonView jsonValue)
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