AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
NetworkConfigurationDetails.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
31 public:
32 AWS_IDENTITYSTORE_API NetworkConfigurationDetails() = default;
35 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline bool GetVpceAccessRequired() const { return m_vpceAccessRequired; }
44 inline bool VpceAccessRequiredHasBeenSet() const { return m_vpceAccessRequiredHasBeenSet; }
45 inline void SetVpceAccessRequired(bool value) {
46 m_vpceAccessRequiredHasBeenSet = true;
47 m_vpceAccessRequired = value;
48 }
51 return *this;
52 }
54
56
64 inline const Aws::Vector<Aws::String>& GetApiRestrictSourceVpcs() const { return m_apiRestrictSourceVpcs; }
65 inline bool ApiRestrictSourceVpcsHasBeenSet() const { return m_apiRestrictSourceVpcsHasBeenSet; }
66 template <typename ApiRestrictSourceVpcsT = Aws::Vector<Aws::String>>
67 void SetApiRestrictSourceVpcs(ApiRestrictSourceVpcsT&& value) {
68 m_apiRestrictSourceVpcsHasBeenSet = true;
69 m_apiRestrictSourceVpcs = std::forward<ApiRestrictSourceVpcsT>(value);
70 }
71 template <typename ApiRestrictSourceVpcsT = Aws::Vector<Aws::String>>
72 NetworkConfigurationDetails& WithApiRestrictSourceVpcs(ApiRestrictSourceVpcsT&& value) {
73 SetApiRestrictSourceVpcs(std::forward<ApiRestrictSourceVpcsT>(value));
74 return *this;
75 }
76 template <typename ApiRestrictSourceVpcsT = Aws::String>
77 NetworkConfigurationDetails& AddApiRestrictSourceVpcs(ApiRestrictSourceVpcsT&& value) {
78 m_apiRestrictSourceVpcsHasBeenSet = true;
79 m_apiRestrictSourceVpcs.emplace_back(std::forward<ApiRestrictSourceVpcsT>(value));
80 return *this;
81 }
83
85
93 inline const Aws::Vector<Aws::String>& GetApiAllowSourceIps() const { return m_apiAllowSourceIps; }
94 inline bool ApiAllowSourceIpsHasBeenSet() const { return m_apiAllowSourceIpsHasBeenSet; }
95 template <typename ApiAllowSourceIpsT = Aws::Vector<Aws::String>>
96 void SetApiAllowSourceIps(ApiAllowSourceIpsT&& value) {
97 m_apiAllowSourceIpsHasBeenSet = true;
98 m_apiAllowSourceIps = std::forward<ApiAllowSourceIpsT>(value);
99 }
100 template <typename ApiAllowSourceIpsT = Aws::Vector<Aws::String>>
102 SetApiAllowSourceIps(std::forward<ApiAllowSourceIpsT>(value));
103 return *this;
104 }
105 template <typename ApiAllowSourceIpsT = Aws::String>
107 m_apiAllowSourceIpsHasBeenSet = true;
108 m_apiAllowSourceIps.emplace_back(std::forward<ApiAllowSourceIpsT>(value));
109 return *this;
110 }
112
114
121 inline const Aws::Vector<Aws::String>& GetScimAllowSourceIps() const { return m_scimAllowSourceIps; }
122 inline bool ScimAllowSourceIpsHasBeenSet() const { return m_scimAllowSourceIpsHasBeenSet; }
123 template <typename ScimAllowSourceIpsT = Aws::Vector<Aws::String>>
124 void SetScimAllowSourceIps(ScimAllowSourceIpsT&& value) {
125 m_scimAllowSourceIpsHasBeenSet = true;
126 m_scimAllowSourceIps = std::forward<ScimAllowSourceIpsT>(value);
127 }
128 template <typename ScimAllowSourceIpsT = Aws::Vector<Aws::String>>
130 SetScimAllowSourceIps(std::forward<ScimAllowSourceIpsT>(value));
131 return *this;
132 }
133 template <typename ScimAllowSourceIpsT = Aws::String>
135 m_scimAllowSourceIpsHasBeenSet = true;
136 m_scimAllowSourceIps.emplace_back(std::forward<ScimAllowSourceIpsT>(value));
137 return *this;
138 }
140 private:
141 bool m_vpceAccessRequired{false};
142
143 Aws::Vector<Aws::String> m_apiRestrictSourceVpcs;
144
145 Aws::Vector<Aws::String> m_apiAllowSourceIps;
146
147 Aws::Vector<Aws::String> m_scimAllowSourceIps;
148 bool m_vpceAccessRequiredHasBeenSet = false;
149 bool m_apiRestrictSourceVpcsHasBeenSet = false;
150 bool m_apiAllowSourceIpsHasBeenSet = false;
151 bool m_scimAllowSourceIpsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace IdentityStore
156} // namespace Aws
AWS_IDENTITYSTORE_API NetworkConfigurationDetails()=default
NetworkConfigurationDetails & WithScimAllowSourceIps(ScimAllowSourceIpsT &&value)
NetworkConfigurationDetails & WithApiAllowSourceIps(ApiAllowSourceIpsT &&value)
const Aws::Vector< Aws::String > & GetApiAllowSourceIps() const
NetworkConfigurationDetails & WithVpceAccessRequired(bool value)
NetworkConfigurationDetails & AddApiRestrictSourceVpcs(ApiRestrictSourceVpcsT &&value)
const Aws::Vector< Aws::String > & GetApiRestrictSourceVpcs() const
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkConfigurationDetails & WithApiRestrictSourceVpcs(ApiRestrictSourceVpcsT &&value)
AWS_IDENTITYSTORE_API NetworkConfigurationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkConfigurationDetails & AddApiAllowSourceIps(ApiAllowSourceIpsT &&value)
const Aws::Vector< Aws::String > & GetScimAllowSourceIps() const
AWS_IDENTITYSTORE_API NetworkConfigurationDetails(Aws::Utils::Json::JsonView jsonValue)
NetworkConfigurationDetails & AddScimAllowSourceIps(ScimAllowSourceIpsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue