AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
NetworkConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/identitystore/IdentityStore_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IdentityStore {
21namespace Model {
22
30 public:
31 AWS_IDENTITYSTORE_API NetworkConfiguration() = default;
32 AWS_IDENTITYSTORE_API NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline bool GetVpceAccessRequired() const { return m_vpceAccessRequired; }
45 inline bool VpceAccessRequiredHasBeenSet() const { return m_vpceAccessRequiredHasBeenSet; }
46 inline void SetVpceAccessRequired(bool value) {
47 m_vpceAccessRequiredHasBeenSet = true;
48 m_vpceAccessRequired = value;
49 }
52 return *this;
53 }
55
57
65 inline const Aws::Vector<Aws::String>& GetApiRestrictSourceVpcs() const { return m_apiRestrictSourceVpcs; }
66 inline bool ApiRestrictSourceVpcsHasBeenSet() const { return m_apiRestrictSourceVpcsHasBeenSet; }
67 template <typename ApiRestrictSourceVpcsT = Aws::Vector<Aws::String>>
68 void SetApiRestrictSourceVpcs(ApiRestrictSourceVpcsT&& value) {
69 m_apiRestrictSourceVpcsHasBeenSet = true;
70 m_apiRestrictSourceVpcs = std::forward<ApiRestrictSourceVpcsT>(value);
71 }
72 template <typename ApiRestrictSourceVpcsT = Aws::Vector<Aws::String>>
73 NetworkConfiguration& WithApiRestrictSourceVpcs(ApiRestrictSourceVpcsT&& value) {
74 SetApiRestrictSourceVpcs(std::forward<ApiRestrictSourceVpcsT>(value));
75 return *this;
76 }
77 template <typename ApiRestrictSourceVpcsT = Aws::String>
78 NetworkConfiguration& AddApiRestrictSourceVpcs(ApiRestrictSourceVpcsT&& value) {
79 m_apiRestrictSourceVpcsHasBeenSet = true;
80 m_apiRestrictSourceVpcs.emplace_back(std::forward<ApiRestrictSourceVpcsT>(value));
81 return *this;
82 }
84
86
94 inline const Aws::Vector<Aws::String>& GetApiAllowSourceIps() const { return m_apiAllowSourceIps; }
95 inline bool ApiAllowSourceIpsHasBeenSet() const { return m_apiAllowSourceIpsHasBeenSet; }
96 template <typename ApiAllowSourceIpsT = Aws::Vector<Aws::String>>
97 void SetApiAllowSourceIps(ApiAllowSourceIpsT&& value) {
98 m_apiAllowSourceIpsHasBeenSet = true;
99 m_apiAllowSourceIps = std::forward<ApiAllowSourceIpsT>(value);
100 }
101 template <typename ApiAllowSourceIpsT = Aws::Vector<Aws::String>>
102 NetworkConfiguration& WithApiAllowSourceIps(ApiAllowSourceIpsT&& value) {
103 SetApiAllowSourceIps(std::forward<ApiAllowSourceIpsT>(value));
104 return *this;
105 }
106 template <typename ApiAllowSourceIpsT = Aws::String>
107 NetworkConfiguration& AddApiAllowSourceIps(ApiAllowSourceIpsT&& value) {
108 m_apiAllowSourceIpsHasBeenSet = true;
109 m_apiAllowSourceIps.emplace_back(std::forward<ApiAllowSourceIpsT>(value));
110 return *this;
111 }
113
115
126 inline const Aws::Vector<Aws::String>& GetScimAllowSourceIps() const { return m_scimAllowSourceIps; }
127 inline bool ScimAllowSourceIpsHasBeenSet() const { return m_scimAllowSourceIpsHasBeenSet; }
128 template <typename ScimAllowSourceIpsT = Aws::Vector<Aws::String>>
129 void SetScimAllowSourceIps(ScimAllowSourceIpsT&& value) {
130 m_scimAllowSourceIpsHasBeenSet = true;
131 m_scimAllowSourceIps = std::forward<ScimAllowSourceIpsT>(value);
132 }
133 template <typename ScimAllowSourceIpsT = Aws::Vector<Aws::String>>
134 NetworkConfiguration& WithScimAllowSourceIps(ScimAllowSourceIpsT&& value) {
135 SetScimAllowSourceIps(std::forward<ScimAllowSourceIpsT>(value));
136 return *this;
137 }
138 template <typename ScimAllowSourceIpsT = Aws::String>
139 NetworkConfiguration& AddScimAllowSourceIps(ScimAllowSourceIpsT&& value) {
140 m_scimAllowSourceIpsHasBeenSet = true;
141 m_scimAllowSourceIps.emplace_back(std::forward<ScimAllowSourceIpsT>(value));
142 return *this;
143 }
145 private:
146 bool m_vpceAccessRequired{false};
147
148 Aws::Vector<Aws::String> m_apiRestrictSourceVpcs;
149
150 Aws::Vector<Aws::String> m_apiAllowSourceIps;
151
152 Aws::Vector<Aws::String> m_scimAllowSourceIps;
153 bool m_vpceAccessRequiredHasBeenSet = false;
154 bool m_apiRestrictSourceVpcsHasBeenSet = false;
155 bool m_apiAllowSourceIpsHasBeenSet = false;
156 bool m_scimAllowSourceIpsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace IdentityStore
161} // namespace Aws
const Aws::Vector< Aws::String > & GetApiAllowSourceIps() const
NetworkConfiguration & AddApiRestrictSourceVpcs(ApiRestrictSourceVpcsT &&value)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApiRestrictSourceVpcs(ApiRestrictSourceVpcsT &&value)
AWS_IDENTITYSTORE_API NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
NetworkConfiguration & AddScimAllowSourceIps(ScimAllowSourceIpsT &&value)
NetworkConfiguration & WithScimAllowSourceIps(ScimAllowSourceIpsT &&value)
NetworkConfiguration & AddApiAllowSourceIps(ApiAllowSourceIpsT &&value)
NetworkConfiguration & WithVpceAccessRequired(bool value)
AWS_IDENTITYSTORE_API NetworkConfiguration()=default
NetworkConfiguration & WithApiAllowSourceIps(ApiAllowSourceIpsT &&value)
const Aws::Vector< Aws::String > & GetScimAllowSourceIps() const
NetworkConfiguration & WithApiRestrictSourceVpcs(ApiRestrictSourceVpcsT &&value)
AWS_IDENTITYSTORE_API NetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApiAllowSourceIps(ApiAllowSourceIpsT &&value)
const Aws::Vector< Aws::String > & GetApiRestrictSourceVpcs() const
void SetScimAllowSourceIps(ScimAllowSourceIpsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue