AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateBrowserSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/WorkSpacesWebRequest.h>
12#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
13#include <aws/workspaces-web/model/Tag.h>
14#include <aws/workspaces-web/model/WebContentFilteringPolicy.h>
15
16#include <utility>
17
18namespace Aws {
19namespace WorkSpacesWeb {
20namespace Model {
21
25 public:
26 AWS_WORKSPACESWEB_API CreateBrowserSettingsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateBrowserSettings"; }
33
34 AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
42 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
43 template <typename TagsT = Aws::Vector<Tag>>
44 void SetTags(TagsT&& value) {
45 m_tagsHasBeenSet = true;
46 m_tags = std::forward<TagsT>(value);
47 }
48 template <typename TagsT = Aws::Vector<Tag>>
50 SetTags(std::forward<TagsT>(value));
51 return *this;
52 }
53 template <typename TagsT = Tag>
55 m_tagsHasBeenSet = true;
56 m_tags.emplace_back(std::forward<TagsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
66 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
67 template <typename CustomerManagedKeyT = Aws::String>
68 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
69 m_customerManagedKeyHasBeenSet = true;
70 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
71 }
72 template <typename CustomerManagedKeyT = Aws::String>
74 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
84 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
85 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
86 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
87 m_additionalEncryptionContextHasBeenSet = true;
88 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
89 }
90 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
91 CreateBrowserSettingsRequest& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
92 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
93 return *this;
94 }
95 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
96 CreateBrowserSettingsRequest& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key,
97 AdditionalEncryptionContextValueT&& value) {
98 m_additionalEncryptionContextHasBeenSet = true;
99 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
100 std::forward<AdditionalEncryptionContextValueT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetBrowserPolicy() const { return m_browserPolicy; }
111 inline bool BrowserPolicyHasBeenSet() const { return m_browserPolicyHasBeenSet; }
112 template <typename BrowserPolicyT = Aws::String>
113 void SetBrowserPolicy(BrowserPolicyT&& value) {
114 m_browserPolicyHasBeenSet = true;
115 m_browserPolicy = std::forward<BrowserPolicyT>(value);
116 }
117 template <typename BrowserPolicyT = Aws::String>
119 SetBrowserPolicy(std::forward<BrowserPolicyT>(value));
120 return *this;
121 }
123
125
133 inline const Aws::String& GetClientToken() const { return m_clientToken; }
134 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
135 template <typename ClientTokenT = Aws::String>
136 void SetClientToken(ClientTokenT&& value) {
137 m_clientTokenHasBeenSet = true;
138 m_clientToken = std::forward<ClientTokenT>(value);
139 }
140 template <typename ClientTokenT = Aws::String>
142 SetClientToken(std::forward<ClientTokenT>(value));
143 return *this;
144 }
146
148
153 inline const WebContentFilteringPolicy& GetWebContentFilteringPolicy() const { return m_webContentFilteringPolicy; }
154 inline bool WebContentFilteringPolicyHasBeenSet() const { return m_webContentFilteringPolicyHasBeenSet; }
155 template <typename WebContentFilteringPolicyT = WebContentFilteringPolicy>
156 void SetWebContentFilteringPolicy(WebContentFilteringPolicyT&& value) {
157 m_webContentFilteringPolicyHasBeenSet = true;
158 m_webContentFilteringPolicy = std::forward<WebContentFilteringPolicyT>(value);
159 }
160 template <typename WebContentFilteringPolicyT = WebContentFilteringPolicy>
161 CreateBrowserSettingsRequest& WithWebContentFilteringPolicy(WebContentFilteringPolicyT&& value) {
162 SetWebContentFilteringPolicy(std::forward<WebContentFilteringPolicyT>(value));
163 return *this;
164 }
166 private:
167 Aws::Vector<Tag> m_tags;
168
169 Aws::String m_customerManagedKey;
170
171 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
172
173 Aws::String m_browserPolicy;
174
176
177 WebContentFilteringPolicy m_webContentFilteringPolicy;
178 bool m_tagsHasBeenSet = false;
179 bool m_customerManagedKeyHasBeenSet = false;
180 bool m_additionalEncryptionContextHasBeenSet = false;
181 bool m_browserPolicyHasBeenSet = false;
182 bool m_clientTokenHasBeenSet = true;
183 bool m_webContentFilteringPolicyHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace WorkSpacesWeb
188} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateBrowserSettingsRequest & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetWebContentFilteringPolicy(WebContentFilteringPolicyT &&value)
CreateBrowserSettingsRequest & WithWebContentFilteringPolicy(WebContentFilteringPolicyT &&value)
CreateBrowserSettingsRequest & WithClientToken(ClientTokenT &&value)
const WebContentFilteringPolicy & GetWebContentFilteringPolicy() const
CreateBrowserSettingsRequest & WithBrowserPolicy(BrowserPolicyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
CreateBrowserSettingsRequest & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
CreateBrowserSettingsRequest & WithCustomerManagedKey(CustomerManagedKeyT &&value)
AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override
AWS_WORKSPACESWEB_API CreateBrowserSettingsRequest()=default
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