AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
31 public:
32 AWS_DEVOPSAGENT_API ServiceManagedInput() = default;
33 AWS_DEVOPSAGENT_API ServiceManagedInput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
42 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
43 template <typename HostAddressT = Aws::String>
44 void SetHostAddress(HostAddressT&& value) {
45 m_hostAddressHasBeenSet = true;
46 m_hostAddress = std::forward<HostAddressT>(value);
47 }
48 template <typename HostAddressT = Aws::String>
49 ServiceManagedInput& WithHostAddress(HostAddressT&& value) {
50 SetHostAddress(std::forward<HostAddressT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVpcId() const { return m_vpcId; }
60 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
61 template <typename VpcIdT = Aws::String>
62 void SetVpcId(VpcIdT&& value) {
63 m_vpcIdHasBeenSet = true;
64 m_vpcId = std::forward<VpcIdT>(value);
65 }
66 template <typename VpcIdT = Aws::String>
67 ServiceManagedInput& WithVpcId(VpcIdT&& value) {
68 SetVpcId(std::forward<VpcIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
78 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
79 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
80 void SetSubnetIds(SubnetIdsT&& value) {
81 m_subnetIdsHasBeenSet = true;
82 m_subnetIds = std::forward<SubnetIdsT>(value);
83 }
84 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
85 ServiceManagedInput& WithSubnetIds(SubnetIdsT&& value) {
86 SetSubnetIds(std::forward<SubnetIdsT>(value));
87 return *this;
88 }
89 template <typename SubnetIdsT = Aws::String>
90 ServiceManagedInput& AddSubnetIds(SubnetIdsT&& value) {
91 m_subnetIdsHasBeenSet = true;
92 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
93 return *this;
94 }
96
98
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 private:
197 Aws::String m_hostAddress;
198
199 Aws::String m_vpcId;
200
201 Aws::Vector<Aws::String> m_subnetIds;
202
203 Aws::Vector<Aws::String> m_securityGroupIds;
204
205 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
206
207 int m_ipv4AddressesPerEni{0};
208
209 Aws::Vector<Aws::String> m_portRanges;
210
211 Aws::String m_certificate;
212 bool m_hostAddressHasBeenSet = false;
213 bool m_vpcIdHasBeenSet = false;
214 bool m_subnetIdsHasBeenSet = false;
215 bool m_securityGroupIdsHasBeenSet = false;
216 bool m_ipAddressTypeHasBeenSet = false;
217 bool m_ipv4AddressesPerEniHasBeenSet = false;
218 bool m_portRangesHasBeenSet = false;
219 bool m_certificateHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace DevOpsAgent
224} // namespace Aws
ServiceManagedInput & WithHostAddress(HostAddressT &&value)
AWS_DEVOPSAGENT_API ServiceManagedInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedInput & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ServiceManagedInput & WithIpv4AddressesPerEni(int value)
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)
ServiceManagedInput & WithIpAddressType(IpAddressType 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