AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DataProtectionSettings.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
12#include <aws/workspaces-web/model/InlineRedactionConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkSpacesWeb {
24namespace Model {
25
33 public:
34 AWS_WORKSPACESWEB_API DataProtectionSettings() = default;
35 AWS_WORKSPACESWEB_API DataProtectionSettings(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDataProtectionSettingsArn() const { return m_dataProtectionSettingsArn; }
44 inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; }
45 template <typename DataProtectionSettingsArnT = Aws::String>
46 void SetDataProtectionSettingsArn(DataProtectionSettingsArnT&& value) {
47 m_dataProtectionSettingsArnHasBeenSet = true;
48 m_dataProtectionSettingsArn = std::forward<DataProtectionSettingsArnT>(value);
49 }
50 template <typename DataProtectionSettingsArnT = Aws::String>
51 DataProtectionSettings& WithDataProtectionSettingsArn(DataProtectionSettingsArnT&& value) {
52 SetDataProtectionSettingsArn(std::forward<DataProtectionSettingsArnT>(value));
53 return *this;
54 }
56
58
61 inline const InlineRedactionConfiguration& GetInlineRedactionConfiguration() const { return m_inlineRedactionConfiguration; }
62 inline bool InlineRedactionConfigurationHasBeenSet() const { return m_inlineRedactionConfigurationHasBeenSet; }
63 template <typename InlineRedactionConfigurationT = InlineRedactionConfiguration>
64 void SetInlineRedactionConfiguration(InlineRedactionConfigurationT&& value) {
65 m_inlineRedactionConfigurationHasBeenSet = true;
66 m_inlineRedactionConfiguration = std::forward<InlineRedactionConfigurationT>(value);
67 }
68 template <typename InlineRedactionConfigurationT = InlineRedactionConfiguration>
69 DataProtectionSettings& WithInlineRedactionConfiguration(InlineRedactionConfigurationT&& value) {
70 SetInlineRedactionConfiguration(std::forward<InlineRedactionConfigurationT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetAssociatedPortalArns() const { return m_associatedPortalArns; }
81 inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; }
82 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
83 void SetAssociatedPortalArns(AssociatedPortalArnsT&& value) {
84 m_associatedPortalArnsHasBeenSet = true;
85 m_associatedPortalArns = std::forward<AssociatedPortalArnsT>(value);
86 }
87 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
88 DataProtectionSettings& WithAssociatedPortalArns(AssociatedPortalArnsT&& value) {
89 SetAssociatedPortalArns(std::forward<AssociatedPortalArnsT>(value));
90 return *this;
91 }
92 template <typename AssociatedPortalArnsT = Aws::String>
93 DataProtectionSettings& AddAssociatedPortalArns(AssociatedPortalArnsT&& value) {
94 m_associatedPortalArnsHasBeenSet = true;
95 m_associatedPortalArns.emplace_back(std::forward<AssociatedPortalArnsT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDisplayName() const { return m_displayName; }
105 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
106 template <typename DisplayNameT = Aws::String>
107 void SetDisplayName(DisplayNameT&& value) {
108 m_displayNameHasBeenSet = true;
109 m_displayName = std::forward<DisplayNameT>(value);
110 }
111 template <typename DisplayNameT = Aws::String>
113 SetDisplayName(std::forward<DisplayNameT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetDescription() const { return m_description; }
123 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
124 template <typename DescriptionT = Aws::String>
125 void SetDescription(DescriptionT&& value) {
126 m_descriptionHasBeenSet = true;
127 m_description = std::forward<DescriptionT>(value);
128 }
129 template <typename DescriptionT = Aws::String>
131 SetDescription(std::forward<DescriptionT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
141 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
142 template <typename CreationDateT = Aws::Utils::DateTime>
143 void SetCreationDate(CreationDateT&& value) {
144 m_creationDateHasBeenSet = true;
145 m_creationDate = std::forward<CreationDateT>(value);
146 }
147 template <typename CreationDateT = Aws::Utils::DateTime>
148 DataProtectionSettings& WithCreationDate(CreationDateT&& value) {
149 SetCreationDate(std::forward<CreationDateT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
160 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
161 template <typename CustomerManagedKeyT = Aws::String>
162 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
163 m_customerManagedKeyHasBeenSet = true;
164 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
165 }
166 template <typename CustomerManagedKeyT = Aws::String>
167 DataProtectionSettings& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
168 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
178 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
179 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
180 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
181 m_additionalEncryptionContextHasBeenSet = true;
182 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
183 }
184 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
185 DataProtectionSettings& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
186 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
187 return *this;
188 }
189 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
190 DataProtectionSettings& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key, AdditionalEncryptionContextValueT&& value) {
191 m_additionalEncryptionContextHasBeenSet = true;
192 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
193 std::forward<AdditionalEncryptionContextValueT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_dataProtectionSettingsArn;
199
200 InlineRedactionConfiguration m_inlineRedactionConfiguration;
201
202 Aws::Vector<Aws::String> m_associatedPortalArns;
203
204 Aws::String m_displayName;
205
206 Aws::String m_description;
207
208 Aws::Utils::DateTime m_creationDate{};
209
210 Aws::String m_customerManagedKey;
211
212 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
213 bool m_dataProtectionSettingsArnHasBeenSet = false;
214 bool m_inlineRedactionConfigurationHasBeenSet = false;
215 bool m_associatedPortalArnsHasBeenSet = false;
216 bool m_displayNameHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_creationDateHasBeenSet = false;
219 bool m_customerManagedKeyHasBeenSet = false;
220 bool m_additionalEncryptionContextHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace WorkSpacesWeb
225} // namespace Aws
const Aws::Vector< Aws::String > & GetAssociatedPortalArns() const
AWS_WORKSPACESWEB_API DataProtectionSettings()=default
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
DataProtectionSettings & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
AWS_WORKSPACESWEB_API DataProtectionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
DataProtectionSettings & WithDataProtectionSettingsArn(DataProtectionSettingsArnT &&value)
void SetInlineRedactionConfiguration(InlineRedactionConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
DataProtectionSettings & WithInlineRedactionConfiguration(InlineRedactionConfigurationT &&value)
DataProtectionSettings & AddAssociatedPortalArns(AssociatedPortalArnsT &&value)
DataProtectionSettings & WithCreationDate(CreationDateT &&value)
AWS_WORKSPACESWEB_API DataProtectionSettings(Aws::Utils::Json::JsonView jsonValue)
const InlineRedactionConfiguration & GetInlineRedactionConfiguration() const
DataProtectionSettings & WithDescription(DescriptionT &&value)
DataProtectionSettings & WithCustomerManagedKey(CustomerManagedKeyT &&value)
DataProtectionSettings & WithAssociatedPortalArns(AssociatedPortalArnsT &&value)
DataProtectionSettings & WithDisplayName(DisplayNameT &&value)
DataProtectionSettings & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetDataProtectionSettingsArn(DataProtectionSettingsArnT &&value)
void SetAssociatedPortalArns(AssociatedPortalArnsT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue