AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BlockedPhrasesConfigurationUpdate.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 BlockedPhrasesConfigurationUpdate() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetBlockedPhrasesToCreateOrUpdate() const { return m_blockedPhrasesToCreateOrUpdate; }
48 inline bool BlockedPhrasesToCreateOrUpdateHasBeenSet() const { return m_blockedPhrasesToCreateOrUpdateHasBeenSet; }
49 template<typename BlockedPhrasesToCreateOrUpdateT = Aws::Vector<Aws::String>>
50 void SetBlockedPhrasesToCreateOrUpdate(BlockedPhrasesToCreateOrUpdateT&& value) { m_blockedPhrasesToCreateOrUpdateHasBeenSet = true; m_blockedPhrasesToCreateOrUpdate = std::forward<BlockedPhrasesToCreateOrUpdateT>(value); }
51 template<typename BlockedPhrasesToCreateOrUpdateT = Aws::Vector<Aws::String>>
53 template<typename BlockedPhrasesToCreateOrUpdateT = Aws::String>
54 BlockedPhrasesConfigurationUpdate& AddBlockedPhrasesToCreateOrUpdate(BlockedPhrasesToCreateOrUpdateT&& value) { m_blockedPhrasesToCreateOrUpdateHasBeenSet = true; m_blockedPhrasesToCreateOrUpdate.emplace_back(std::forward<BlockedPhrasesToCreateOrUpdateT>(value)); return *this; }
56
58
62 inline const Aws::Vector<Aws::String>& GetBlockedPhrasesToDelete() const { return m_blockedPhrasesToDelete; }
63 inline bool BlockedPhrasesToDeleteHasBeenSet() const { return m_blockedPhrasesToDeleteHasBeenSet; }
64 template<typename BlockedPhrasesToDeleteT = Aws::Vector<Aws::String>>
65 void SetBlockedPhrasesToDelete(BlockedPhrasesToDeleteT&& value) { m_blockedPhrasesToDeleteHasBeenSet = true; m_blockedPhrasesToDelete = std::forward<BlockedPhrasesToDeleteT>(value); }
66 template<typename BlockedPhrasesToDeleteT = Aws::Vector<Aws::String>>
67 BlockedPhrasesConfigurationUpdate& WithBlockedPhrasesToDelete(BlockedPhrasesToDeleteT&& value) { SetBlockedPhrasesToDelete(std::forward<BlockedPhrasesToDeleteT>(value)); return *this;}
68 template<typename BlockedPhrasesToDeleteT = Aws::String>
69 BlockedPhrasesConfigurationUpdate& AddBlockedPhrasesToDelete(BlockedPhrasesToDeleteT&& value) { m_blockedPhrasesToDeleteHasBeenSet = true; m_blockedPhrasesToDelete.emplace_back(std::forward<BlockedPhrasesToDeleteT>(value)); return *this; }
71
73
77 inline const Aws::String& GetSystemMessageOverride() const { return m_systemMessageOverride; }
78 inline bool SystemMessageOverrideHasBeenSet() const { return m_systemMessageOverrideHasBeenSet; }
79 template<typename SystemMessageOverrideT = Aws::String>
80 void SetSystemMessageOverride(SystemMessageOverrideT&& value) { m_systemMessageOverrideHasBeenSet = true; m_systemMessageOverride = std::forward<SystemMessageOverrideT>(value); }
81 template<typename SystemMessageOverrideT = Aws::String>
82 BlockedPhrasesConfigurationUpdate& WithSystemMessageOverride(SystemMessageOverrideT&& value) { SetSystemMessageOverride(std::forward<SystemMessageOverrideT>(value)); return *this;}
84 private:
85
86 Aws::Vector<Aws::String> m_blockedPhrasesToCreateOrUpdate;
87 bool m_blockedPhrasesToCreateOrUpdateHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_blockedPhrasesToDelete;
90 bool m_blockedPhrasesToDeleteHasBeenSet = false;
91
92 Aws::String m_systemMessageOverride;
93 bool m_systemMessageOverrideHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace QBusiness
98} // 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