AWS SDK for C++

AWS SDK for C++ Version 1.11.845

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/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/IpAddressType.h>
11#include <aws/devops-agent/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 DevOpsAgent {
23namespace Model {
24
32 public:
33 AWS_DEVOPSAGENT_API ServiceManagedInput() = default;
34 AWS_DEVOPSAGENT_API ServiceManagedInput(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSAGENT_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
103 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
104 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
105 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
106 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
107 m_securityGroupIdsHasBeenSet = true;
108 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
109 }
110 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
111 ServiceManagedInput& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
112 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
113 return *this;
114 }
115 template <typename SecurityGroupIdsT = Aws::String>
116 ServiceManagedInput& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
117 m_securityGroupIdsHasBeenSet = true;
118 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
119 return *this;
120 }
122
124
127 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
128 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
129 inline void SetIpAddressType(IpAddressType value) {
130 m_ipAddressTypeHasBeenSet = true;
131 m_ipAddressType = value;
132 }
134 SetIpAddressType(value);
135 return *this;
136 }
138
140
144 inline int GetIpv4AddressesPerEni() const { return m_ipv4AddressesPerEni; }
145 inline bool Ipv4AddressesPerEniHasBeenSet() const { return m_ipv4AddressesPerEniHasBeenSet; }
146 inline void SetIpv4AddressesPerEni(int value) {
147 m_ipv4AddressesPerEniHasBeenSet = true;
148 m_ipv4AddressesPerEni = value;
149 }
152 return *this;
153 }
155
157
160 inline const Aws::Vector<Aws::String>& GetPortRanges() const { return m_portRanges; }
161 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
162 template <typename PortRangesT = Aws::Vector<Aws::String>>
163 void SetPortRanges(PortRangesT&& value) {
164 m_portRangesHasBeenSet = true;
165 m_portRanges = std::forward<PortRangesT>(value);
166 }
167 template <typename PortRangesT = Aws::Vector<Aws::String>>
168 ServiceManagedInput& WithPortRanges(PortRangesT&& value) {
169 SetPortRanges(std::forward<PortRangesT>(value));
170 return *this;
171 }
172 template <typename PortRangesT = Aws::String>
173 ServiceManagedInput& AddPortRanges(PortRangesT&& value) {
174 m_portRangesHasBeenSet = true;
175 m_portRanges.emplace_back(std::forward<PortRangesT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetCertificate() const { return m_certificate; }
185 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
186 template <typename CertificateT = Aws::String>
187 void SetCertificate(CertificateT&& value) {
188 m_certificateHasBeenSet = true;
189 m_certificate = std::forward<CertificateT>(value);
190 }
191 template <typename CertificateT = Aws::String>
192 ServiceManagedInput& WithCertificate(CertificateT&& value) {
193 SetCertificate(std::forward<CertificateT>(value));
194 return *this;
195 }
197
199
203 inline ResourceConfigDnsResolution GetDnsResolution() const { return m_dnsResolution; }
204 inline bool DnsResolutionHasBeenSet() const { return m_dnsResolutionHasBeenSet; }
206 m_dnsResolutionHasBeenSet = true;
207 m_dnsResolution = value;
208 }
210 SetDnsResolution(value);
211 return *this;
212 }
214 private:
215 Aws::String m_hostAddress;
216
217 Aws::String m_vpcId;
218
219 Aws::Vector<Aws::String> m_subnetIds;
220
221 Aws::Vector<Aws::String> m_securityGroupIds;
222
223 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
224
225 int m_ipv4AddressesPerEni{0};
226
227 Aws::Vector<Aws::String> m_portRanges;
228
229 Aws::String m_certificate;
230
232 bool m_hostAddressHasBeenSet = false;
233 bool m_vpcIdHasBeenSet = false;
234 bool m_subnetIdsHasBeenSet = false;
235 bool m_securityGroupIdsHasBeenSet = false;
236 bool m_ipAddressTypeHasBeenSet = false;
237 bool m_ipv4AddressesPerEniHasBeenSet = false;
238 bool m_portRangesHasBeenSet = false;
239 bool m_certificateHasBeenSet = false;
240 bool m_dnsResolutionHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace DevOpsAgent
245} // namespace Aws
ServiceManagedInput & WithHostAddress(HostAddressT &&value)
AWS_DEVOPSAGENT_API ServiceManagedInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedInput & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ServiceManagedInput & WithIpv4AddressesPerEni(int value)
ResourceConfigDnsResolution GetDnsResolution() const
const Aws::Vector< Aws::String > & GetPortRanges() const
ServiceManagedInput & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_DEVOPSAGENT_API ServiceManagedInput()=default
const Aws::Vector< Aws::String > & GetSubnetIds() const
ServiceManagedInput & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ServiceManagedInput & WithSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
ServiceManagedInput & WithPortRanges(PortRangesT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceManagedInput & AddSubnetIds(SubnetIdsT &&value)
ServiceManagedInput & WithCertificate(CertificateT &&value)
AWS_DEVOPSAGENT_API ServiceManagedInput(Aws::Utils::Json::JsonView jsonValue)
void SetDnsResolution(ResourceConfigDnsResolution value)
ServiceManagedInput & WithIpAddressType(IpAddressType value)
ServiceManagedInput & WithDnsResolution(ResourceConfigDnsResolution value)
ServiceManagedInput & AddPortRanges(PortRangesT &&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