AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
IpAccessSettings.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/IpRule.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 IpAccessSettings() = default;
35 AWS_WORKSPACESWEB_API IpAccessSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACESWEB_API IpAccessSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetIpAccessSettingsArn() const { return m_ipAccessSettingsArn; }
44 inline bool IpAccessSettingsArnHasBeenSet() const { return m_ipAccessSettingsArnHasBeenSet; }
45 template <typename IpAccessSettingsArnT = Aws::String>
46 void SetIpAccessSettingsArn(IpAccessSettingsArnT&& value) {
47 m_ipAccessSettingsArnHasBeenSet = true;
48 m_ipAccessSettingsArn = std::forward<IpAccessSettingsArnT>(value);
49 }
50 template <typename IpAccessSettingsArnT = Aws::String>
51 IpAccessSettings& WithIpAccessSettingsArn(IpAccessSettingsArnT&& value) {
52 SetIpAccessSettingsArn(std::forward<IpAccessSettingsArnT>(value));
53 return *this;
54 }
56
58
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 IpAccessSettings& WithAssociatedPortalArns(AssociatedPortalArnsT&& value) {
71 SetAssociatedPortalArns(std::forward<AssociatedPortalArnsT>(value));
72 return *this;
73 }
74 template <typename AssociatedPortalArnsT = Aws::String>
75 IpAccessSettings& AddAssociatedPortalArns(AssociatedPortalArnsT&& value) {
76 m_associatedPortalArnsHasBeenSet = true;
77 m_associatedPortalArns.emplace_back(std::forward<AssociatedPortalArnsT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<IpRule>& GetIpRules() const { return m_ipRules; }
87 inline bool IpRulesHasBeenSet() const { return m_ipRulesHasBeenSet; }
88 template <typename IpRulesT = Aws::Vector<IpRule>>
89 void SetIpRules(IpRulesT&& value) {
90 m_ipRulesHasBeenSet = true;
91 m_ipRules = std::forward<IpRulesT>(value);
92 }
93 template <typename IpRulesT = Aws::Vector<IpRule>>
94 IpAccessSettings& WithIpRules(IpRulesT&& value) {
95 SetIpRules(std::forward<IpRulesT>(value));
96 return *this;
97 }
98 template <typename IpRulesT = IpRule>
99 IpAccessSettings& AddIpRules(IpRulesT&& value) {
100 m_ipRulesHasBeenSet = true;
101 m_ipRules.emplace_back(std::forward<IpRulesT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDisplayName() const { return m_displayName; }
111 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
112 template <typename DisplayNameT = Aws::String>
113 void SetDisplayName(DisplayNameT&& value) {
114 m_displayNameHasBeenSet = true;
115 m_displayName = std::forward<DisplayNameT>(value);
116 }
117 template <typename DisplayNameT = Aws::String>
118 IpAccessSettings& WithDisplayName(DisplayNameT&& value) {
119 SetDisplayName(std::forward<DisplayNameT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template <typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) {
132 m_descriptionHasBeenSet = true;
133 m_description = std::forward<DescriptionT>(value);
134 }
135 template <typename DescriptionT = Aws::String>
136 IpAccessSettings& WithDescription(DescriptionT&& value) {
137 SetDescription(std::forward<DescriptionT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
147 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
148 template <typename CreationDateT = Aws::Utils::DateTime>
149 void SetCreationDate(CreationDateT&& value) {
150 m_creationDateHasBeenSet = true;
151 m_creationDate = std::forward<CreationDateT>(value);
152 }
153 template <typename CreationDateT = Aws::Utils::DateTime>
154 IpAccessSettings& WithCreationDate(CreationDateT&& value) {
155 SetCreationDate(std::forward<CreationDateT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
166 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
167 template <typename CustomerManagedKeyT = Aws::String>
168 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
169 m_customerManagedKeyHasBeenSet = true;
170 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
171 }
172 template <typename CustomerManagedKeyT = Aws::String>
173 IpAccessSettings& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
174 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
184 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
185 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
186 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
187 m_additionalEncryptionContextHasBeenSet = true;
188 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
189 }
190 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
191 IpAccessSettings& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
192 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
193 return *this;
194 }
195 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
196 IpAccessSettings& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key, AdditionalEncryptionContextValueT&& value) {
197 m_additionalEncryptionContextHasBeenSet = true;
198 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
199 std::forward<AdditionalEncryptionContextValueT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_ipAccessSettingsArn;
205
206 Aws::Vector<Aws::String> m_associatedPortalArns;
207
208 Aws::Vector<IpRule> m_ipRules;
209
210 Aws::String m_displayName;
211
212 Aws::String m_description;
213
214 Aws::Utils::DateTime m_creationDate{};
215
216 Aws::String m_customerManagedKey;
217
218 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
219 bool m_ipAccessSettingsArnHasBeenSet = false;
220 bool m_associatedPortalArnsHasBeenSet = false;
221 bool m_ipRulesHasBeenSet = false;
222 bool m_displayNameHasBeenSet = false;
223 bool m_descriptionHasBeenSet = false;
224 bool m_creationDateHasBeenSet = false;
225 bool m_customerManagedKeyHasBeenSet = false;
226 bool m_additionalEncryptionContextHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace WorkSpacesWeb
231} // namespace Aws
void SetIpAccessSettingsArn(IpAccessSettingsArnT &&value)
const Aws::Vector< Aws::String > & GetAssociatedPortalArns() const
IpAccessSettings & WithCustomerManagedKey(CustomerManagedKeyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
const Aws::String & GetIpAccessSettingsArn() const
IpAccessSettings & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
IpAccessSettings & WithDisplayName(DisplayNameT &&value)
IpAccessSettings & AddAssociatedPortalArns(AssociatedPortalArnsT &&value)
IpAccessSettings & WithAssociatedPortalArns(AssociatedPortalArnsT &&value)
IpAccessSettings & AddIpRules(IpRulesT &&value)
IpAccessSettings & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
IpAccessSettings & WithIpRules(IpRulesT &&value)
IpAccessSettings & WithDescription(DescriptionT &&value)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
IpAccessSettings & WithCreationDate(CreationDateT &&value)
void SetCustomerManagedKey(CustomerManagedKeyT &&value)
IpAccessSettings & WithIpAccessSettingsArn(IpAccessSettingsArnT &&value)
void SetAssociatedPortalArns(AssociatedPortalArnsT &&value)
const Aws::Vector< IpRule > & GetIpRules() const
AWS_WORKSPACESWEB_API IpAccessSettings()=default
const Aws::String & GetCustomerManagedKey() const
AWS_WORKSPACESWEB_API IpAccessSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACESWEB_API IpAccessSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
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