AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
ServiceManagedInput.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/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/IpAddressType.h>
11#include <aws/securityagent/model/ResourceConfigDnsResolution.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityAgent {
23namespace Model {
24
32 public:
33 AWS_SECURITYAGENT_API ServiceManagedInput() = default;
34 AWS_SECURITYAGENT_API ServiceManagedInput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API ServiceManagedInput& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
43 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
44 template <typename HostAddressT = Aws::String>
45 void SetHostAddress(HostAddressT&& value) {
46 m_hostAddressHasBeenSet = true;
47 m_hostAddress = std::forward<HostAddressT>(value);
48 }
49 template <typename HostAddressT = Aws::String>
50 ServiceManagedInput& WithHostAddress(HostAddressT&& value) {
51 SetHostAddress(std::forward<HostAddressT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetVpcId() const { return m_vpcId; }
61 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
62 template <typename VpcIdT = Aws::String>
63 void SetVpcId(VpcIdT&& value) {
64 m_vpcIdHasBeenSet = true;
65 m_vpcId = std::forward<VpcIdT>(value);
66 }
67 template <typename VpcIdT = Aws::String>
68 ServiceManagedInput& WithVpcId(VpcIdT&& value) {
69 SetVpcId(std::forward<VpcIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
79 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
80 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
81 void SetSubnetIds(SubnetIdsT&& value) {
82 m_subnetIdsHasBeenSet = true;
83 m_subnetIds = std::forward<SubnetIdsT>(value);
84 }
85 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
86 ServiceManagedInput& WithSubnetIds(SubnetIdsT&& value) {
87 SetSubnetIds(std::forward<SubnetIdsT>(value));
88 return *this;
89 }
90 template <typename SubnetIdsT = Aws::String>
91 ServiceManagedInput& AddSubnetIds(SubnetIdsT&& value) {
92 m_subnetIdsHasBeenSet = true;
93 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
103 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
104 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
105 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
106 m_securityGroupIdsHasBeenSet = true;
107 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
108 }
109 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
110 ServiceManagedInput& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
111 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
112 return *this;
113 }
114 template <typename SecurityGroupIdsT = Aws::String>
115 ServiceManagedInput& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
116 m_securityGroupIdsHasBeenSet = true;
117 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
118 return *this;
119 }
121
123
126 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
127 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
128 inline void SetIpAddressType(IpAddressType value) {
129 m_ipAddressTypeHasBeenSet = true;
130 m_ipAddressType = value;
131 }
133 SetIpAddressType(value);
134 return *this;
135 }
137
139
143 inline int GetIpv4AddressesPerEni() const { return m_ipv4AddressesPerEni; }
144 inline bool Ipv4AddressesPerEniHasBeenSet() const { return m_ipv4AddressesPerEniHasBeenSet; }
145 inline void SetIpv4AddressesPerEni(int value) {
146 m_ipv4AddressesPerEniHasBeenSet = true;
147 m_ipv4AddressesPerEni = value;
148 }
151 return *this;
152 }
154
156
159 inline const Aws::Vector<Aws::String>& GetPortRanges() const { return m_portRanges; }
160 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
161 template <typename PortRangesT = Aws::Vector<Aws::String>>
162 void SetPortRanges(PortRangesT&& value) {
163 m_portRangesHasBeenSet = true;
164 m_portRanges = std::forward<PortRangesT>(value);
165 }
166 template <typename PortRangesT = Aws::Vector<Aws::String>>
167 ServiceManagedInput& WithPortRanges(PortRangesT&& value) {
168 SetPortRanges(std::forward<PortRangesT>(value));
169 return *this;
170 }
171 template <typename PortRangesT = Aws::String>
172 ServiceManagedInput& AddPortRanges(PortRangesT&& value) {
173 m_portRangesHasBeenSet = true;
174 m_portRanges.emplace_back(std::forward<PortRangesT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetCertificate() const { return m_certificate; }
184 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
185 template <typename CertificateT = Aws::String>
186 void SetCertificate(CertificateT&& value) {
187 m_certificateHasBeenSet = true;
188 m_certificate = std::forward<CertificateT>(value);
189 }
190 template <typename CertificateT = Aws::String>
191 ServiceManagedInput& WithCertificate(CertificateT&& value) {
192 SetCertificate(std::forward<CertificateT>(value));
193 return *this;
194 }
196
198
202 inline ResourceConfigDnsResolution GetDnsResolution() const { return m_dnsResolution; }
203 inline bool DnsResolutionHasBeenSet() const { return m_dnsResolutionHasBeenSet; }
205 m_dnsResolutionHasBeenSet = true;
206 m_dnsResolution = value;
207 }
209 SetDnsResolution(value);
210 return *this;
211 }
213 private:
214 Aws::String m_hostAddress;
215
216 Aws::String m_vpcId;
217
218 Aws::Vector<Aws::String> m_subnetIds;
219
220 Aws::Vector<Aws::String> m_securityGroupIds;
221
222 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
223
224 int m_ipv4AddressesPerEni{0};
225
226 Aws::Vector<Aws::String> m_portRanges;
227
228 Aws::String m_certificate;
229
231 bool m_hostAddressHasBeenSet = false;
232 bool m_vpcIdHasBeenSet = false;
233 bool m_subnetIdsHasBeenSet = false;
234 bool m_securityGroupIdsHasBeenSet = false;
235 bool m_ipAddressTypeHasBeenSet = false;
236 bool m_ipv4AddressesPerEniHasBeenSet = false;
237 bool m_portRangesHasBeenSet = false;
238 bool m_certificateHasBeenSet = false;
239 bool m_dnsResolutionHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace SecurityAgent
244} // namespace Aws
ServiceManagedInput & WithDnsResolution(ResourceConfigDnsResolution value)
ServiceManagedInput & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API ServiceManagedInput()=default
ServiceManagedInput & WithHostAddress(HostAddressT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
ServiceManagedInput & WithSubnetIds(SubnetIdsT &&value)
AWS_SECURITYAGENT_API ServiceManagedInput(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedInput & WithPortRanges(PortRangesT &&value)
ServiceManagedInput & WithIpAddressType(IpAddressType value)
ServiceManagedInput & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
ServiceManagedInput & WithVpcId(VpcIdT &&value)
ResourceConfigDnsResolution GetDnsResolution() const
AWS_SECURITYAGENT_API ServiceManagedInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedInput & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ServiceManagedInput & WithIpv4AddressesPerEni(int value)
const Aws::Vector< Aws::String > & GetPortRanges() const
ServiceManagedInput & AddPortRanges(PortRangesT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetDnsResolution(ResourceConfigDnsResolution value)
ServiceManagedInput & WithCertificate(CertificateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue