AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
BrowserSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
11#include <aws/workspaces-web/model/WebContentFilteringPolicy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkSpacesWeb {
23namespace Model {
24
34 public:
35 AWS_WORKSPACESWEB_API BrowserSettings() = default;
36 AWS_WORKSPACESWEB_API BrowserSettings(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACESWEB_API BrowserSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetBrowserSettingsArn() const { return m_browserSettingsArn; }
45 inline bool BrowserSettingsArnHasBeenSet() const { return m_browserSettingsArnHasBeenSet; }
46 template <typename BrowserSettingsArnT = Aws::String>
47 void SetBrowserSettingsArn(BrowserSettingsArnT&& value) {
48 m_browserSettingsArnHasBeenSet = true;
49 m_browserSettingsArn = std::forward<BrowserSettingsArnT>(value);
50 }
51 template <typename BrowserSettingsArnT = Aws::String>
52 BrowserSettings& WithBrowserSettingsArn(BrowserSettingsArnT&& value) {
53 SetBrowserSettingsArn(std::forward<BrowserSettingsArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetAssociatedPortalArns() const { return m_associatedPortalArns; }
63 inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; }
64 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
65 void SetAssociatedPortalArns(AssociatedPortalArnsT&& value) {
66 m_associatedPortalArnsHasBeenSet = true;
67 m_associatedPortalArns = std::forward<AssociatedPortalArnsT>(value);
68 }
69 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
70 BrowserSettings& WithAssociatedPortalArns(AssociatedPortalArnsT&& value) {
71 SetAssociatedPortalArns(std::forward<AssociatedPortalArnsT>(value));
72 return *this;
73 }
74 template <typename AssociatedPortalArnsT = Aws::String>
75 BrowserSettings& AddAssociatedPortalArns(AssociatedPortalArnsT&& value) {
76 m_associatedPortalArnsHasBeenSet = true;
77 m_associatedPortalArns.emplace_back(std::forward<AssociatedPortalArnsT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetBrowserPolicy() const { return m_browserPolicy; }
88 inline bool BrowserPolicyHasBeenSet() const { return m_browserPolicyHasBeenSet; }
89 template <typename BrowserPolicyT = Aws::String>
90 void SetBrowserPolicy(BrowserPolicyT&& value) {
91 m_browserPolicyHasBeenSet = true;
92 m_browserPolicy = std::forward<BrowserPolicyT>(value);
93 }
94 template <typename BrowserPolicyT = Aws::String>
95 BrowserSettings& WithBrowserPolicy(BrowserPolicyT&& value) {
96 SetBrowserPolicy(std::forward<BrowserPolicyT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
107 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
108 template <typename CustomerManagedKeyT = Aws::String>
109 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
110 m_customerManagedKeyHasBeenSet = true;
111 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
112 }
113 template <typename CustomerManagedKeyT = Aws::String>
114 BrowserSettings& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
115 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
125 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
126 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
127 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
128 m_additionalEncryptionContextHasBeenSet = true;
129 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
130 }
131 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
132 BrowserSettings& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
133 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
134 return *this;
135 }
136 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
137 BrowserSettings& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key, AdditionalEncryptionContextValueT&& value) {
138 m_additionalEncryptionContextHasBeenSet = true;
139 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
140 std::forward<AdditionalEncryptionContextValueT>(value));
141 return *this;
142 }
144
146
151 inline const WebContentFilteringPolicy& GetWebContentFilteringPolicy() const { return m_webContentFilteringPolicy; }
152 inline bool WebContentFilteringPolicyHasBeenSet() const { return m_webContentFilteringPolicyHasBeenSet; }
153 template <typename WebContentFilteringPolicyT = WebContentFilteringPolicy>
154 void SetWebContentFilteringPolicy(WebContentFilteringPolicyT&& value) {
155 m_webContentFilteringPolicyHasBeenSet = true;
156 m_webContentFilteringPolicy = std::forward<WebContentFilteringPolicyT>(value);
157 }
158 template <typename WebContentFilteringPolicyT = WebContentFilteringPolicy>
159 BrowserSettings& WithWebContentFilteringPolicy(WebContentFilteringPolicyT&& value) {
160 SetWebContentFilteringPolicy(std::forward<WebContentFilteringPolicyT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_browserSettingsArn;
166
167 Aws::Vector<Aws::String> m_associatedPortalArns;
168
169 Aws::String m_browserPolicy;
170
171 Aws::String m_customerManagedKey;
172
173 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
174
175 WebContentFilteringPolicy m_webContentFilteringPolicy;
176 bool m_browserSettingsArnHasBeenSet = false;
177 bool m_associatedPortalArnsHasBeenSet = false;
178 bool m_browserPolicyHasBeenSet = false;
179 bool m_customerManagedKeyHasBeenSet = false;
180 bool m_additionalEncryptionContextHasBeenSet = false;
181 bool m_webContentFilteringPolicyHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace WorkSpacesWeb
186} // namespace Aws
const Aws::String & GetCustomerManagedKey() const
BrowserSettings & WithAssociatedPortalArns(AssociatedPortalArnsT &&value)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAssociatedPortalArns() const
void SetAssociatedPortalArns(AssociatedPortalArnsT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
BrowserSettings & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
BrowserSettings & WithBrowserSettingsArn(BrowserSettingsArnT &&value)
BrowserSettings & WithWebContentFilteringPolicy(WebContentFilteringPolicyT &&value)
void SetBrowserSettingsArn(BrowserSettingsArnT &&value)
BrowserSettings & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetCustomerManagedKey(CustomerManagedKeyT &&value)
AWS_WORKSPACESWEB_API BrowserSettings(Aws::Utils::Json::JsonView jsonValue)
BrowserSettings & WithCustomerManagedKey(CustomerManagedKeyT &&value)
AWS_WORKSPACESWEB_API BrowserSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const WebContentFilteringPolicy & GetWebContentFilteringPolicy() const
BrowserSettings & AddAssociatedPortalArns(AssociatedPortalArnsT &&value)
void SetWebContentFilteringPolicy(WebContentFilteringPolicyT &&value)
BrowserSettings & WithBrowserPolicy(BrowserPolicyT &&value)
const Aws::String & GetBrowserSettingsArn() const
const Aws::String & GetBrowserPolicy() const
AWS_WORKSPACESWEB_API BrowserSettings()=default
void SetBrowserPolicy(BrowserPolicyT &&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