108 109 | */
|
109 110 | public val status: aws.sdk.kotlin.services.ec2.model.ClientVpnEndpointStatus? = builder.status
|
110 111 | /**
|
111 112 | * Any tags assigned to the Client VPN endpoint.
|
112 113 | */
|
113 114 | public val tags: List<Tag>? = builder.tags
|
114 115 | /**
|
115 116 | * The IP address type of the Client VPN endpoint. Possible values are either `ipv4` for IPv4 addressing only, `ipv6` for IPv6 addressing only, or `dual-stack` for both IPv4 and IPv6 addressing.
|
116 117 | */
|
117 118 | public val trafficIpAddressType: aws.sdk.kotlin.services.ec2.model.TrafficIpAddressType? = builder.trafficIpAddressType
|
119 + | /**
|
120 + | * The Transit Gateway configuration for the Client VPN endpoint.
|
121 + | */
|
122 + | public val transitGatewayConfiguration: aws.sdk.kotlin.services.ec2.model.TransitGatewayConfigurationDescribeEndpointStructure? = builder.transitGatewayConfiguration
|
118 123 | /**
|
119 124 | * The transport protocol used by the Client VPN endpoint.
|
120 125 | */
|
121 126 | public val transportProtocol: aws.sdk.kotlin.services.ec2.model.TransportProtocol? = builder.transportProtocol
|
122 127 | /**
|
123 128 | * The ID of the VPC.
|
124 129 | */
|
125 130 | public val vpcId: kotlin.String? = builder.vpcId
|
126 131 | /**
|
127 132 | * The port number for the Client VPN endpoint.
|
128 133 | */
|
129 134 | public val vpnPort: kotlin.Int? = builder.vpnPort
|
130 135 | /**
|
131 136 | * The protocol used by the VPN session.
|
132 137 | */
|
133 138 | public val vpnProtocol: aws.sdk.kotlin.services.ec2.model.VpnProtocol? = builder.vpnProtocol
|
134 139 |
|
135 140 | public companion object {
|
136 141 | public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2.model.ClientVpnEndpoint = Builder().apply(block).build()
|
137 142 | }
|
138 143 |
|
139 144 | override fun toString(): kotlin.String = buildString {
|
140 145 | append("ClientVpnEndpoint(")
|
141 146 | append("associatedTargetNetworks=$associatedTargetNetworks,")
|
142 147 | append("authenticationOptions=$authenticationOptions,")
|
143 148 | append("clientCidrBlock=$clientCidrBlock,")
|
144 149 | append("clientConnectOptions=$clientConnectOptions,")
|
145 150 | append("clientLoginBannerOptions=$clientLoginBannerOptions,")
|
146 151 | append("clientRouteEnforcementOptions=$clientRouteEnforcementOptions,")
|
147 152 | append("clientVpnEndpointId=$clientVpnEndpointId,")
|
148 153 | append("connectionLogOptions=$connectionLogOptions,")
|
149 154 | append("creationTime=$creationTime,")
|
150 155 | append("deletionTime=$deletionTime,")
|
151 156 | append("description=$description,")
|
152 157 | append("disconnectOnSessionTimeout=$disconnectOnSessionTimeout,")
|
153 158 | append("dnsName=$dnsName,")
|
154 159 | append("dnsServers=$dnsServers,")
|
155 160 | append("endpointIpAddressType=$endpointIpAddressType,")
|
156 161 | append("securityGroupIds=$securityGroupIds,")
|
157 162 | append("selfServicePortalUrl=$selfServicePortalUrl,")
|
158 163 | append("serverCertificateArn=$serverCertificateArn,")
|
159 164 | append("sessionTimeoutHours=$sessionTimeoutHours,")
|
160 165 | append("splitTunnel=$splitTunnel,")
|
161 166 | append("status=$status,")
|
162 167 | append("tags=$tags,")
|
163 168 | append("trafficIpAddressType=$trafficIpAddressType,")
|
169 + | append("transitGatewayConfiguration=$transitGatewayConfiguration,")
|
164 170 | append("transportProtocol=$transportProtocol,")
|
165 171 | append("vpcId=$vpcId,")
|
166 172 | append("vpnPort=$vpnPort,")
|
167 173 | append("vpnProtocol=$vpnProtocol")
|
168 174 | append(")")
|
169 175 | }
|
170 176 |
|
171 177 | override fun hashCode(): kotlin.Int {
|
172 178 | var result = associatedTargetNetworks?.hashCode() ?: 0
|
173 179 | result = 31 * result + (this.authenticationOptions?.hashCode() ?: 0)
|
174 180 | result = 31 * result + (this.clientCidrBlock?.hashCode() ?: 0)
|
175 181 | result = 31 * result + (this.clientConnectOptions?.hashCode() ?: 0)
|
176 182 | result = 31 * result + (this.clientLoginBannerOptions?.hashCode() ?: 0)
|
177 183 | result = 31 * result + (this.clientRouteEnforcementOptions?.hashCode() ?: 0)
|
178 184 | result = 31 * result + (this.clientVpnEndpointId?.hashCode() ?: 0)
|
179 185 | result = 31 * result + (this.connectionLogOptions?.hashCode() ?: 0)
|
180 186 | result = 31 * result + (this.creationTime?.hashCode() ?: 0)
|
181 187 | result = 31 * result + (this.deletionTime?.hashCode() ?: 0)
|
182 188 | result = 31 * result + (this.description?.hashCode() ?: 0)
|
183 189 | result = 31 * result + (this.disconnectOnSessionTimeout?.hashCode() ?: 0)
|
184 190 | result = 31 * result + (this.dnsName?.hashCode() ?: 0)
|
185 191 | result = 31 * result + (this.dnsServers?.hashCode() ?: 0)
|
186 192 | result = 31 * result + (this.endpointIpAddressType?.hashCode() ?: 0)
|
187 193 | result = 31 * result + (this.securityGroupIds?.hashCode() ?: 0)
|
188 194 | result = 31 * result + (this.selfServicePortalUrl?.hashCode() ?: 0)
|
189 195 | result = 31 * result + (this.serverCertificateArn?.hashCode() ?: 0)
|
190 196 | result = 31 * result + (this.sessionTimeoutHours ?: 0)
|
191 197 | result = 31 * result + (this.splitTunnel?.hashCode() ?: 0)
|
192 198 | result = 31 * result + (this.status?.hashCode() ?: 0)
|
193 199 | result = 31 * result + (this.tags?.hashCode() ?: 0)
|
194 200 | result = 31 * result + (this.trafficIpAddressType?.hashCode() ?: 0)
|
201 + | result = 31 * result + (this.transitGatewayConfiguration?.hashCode() ?: 0)
|
195 202 | result = 31 * result + (this.transportProtocol?.hashCode() ?: 0)
|
196 203 | result = 31 * result + (this.vpcId?.hashCode() ?: 0)
|
197 204 | result = 31 * result + (this.vpnPort ?: 0)
|
198 205 | result = 31 * result + (this.vpnProtocol?.hashCode() ?: 0)
|
199 206 | return result
|
200 207 | }
|
201 208 |
|
202 209 | override fun equals(other: kotlin.Any?): kotlin.Boolean {
|
203 210 | if (this === other) return true
|
204 211 | if (other == null || this::class != other::class) return false
|
205 212 |
|
206 213 | other as ClientVpnEndpoint
|
207 214 |
|
208 215 | if (associatedTargetNetworks != other.associatedTargetNetworks) return false
|
209 216 | if (authenticationOptions != other.authenticationOptions) return false
|
210 217 | if (clientCidrBlock != other.clientCidrBlock) return false
|
211 218 | if (clientConnectOptions != other.clientConnectOptions) return false
|
212 219 | if (clientLoginBannerOptions != other.clientLoginBannerOptions) return false
|
213 220 | if (clientRouteEnforcementOptions != other.clientRouteEnforcementOptions) return false
|
214 221 | if (clientVpnEndpointId != other.clientVpnEndpointId) return false
|
215 222 | if (connectionLogOptions != other.connectionLogOptions) return false
|
216 223 | if (creationTime != other.creationTime) return false
|
217 224 | if (deletionTime != other.deletionTime) return false
|
218 225 | if (description != other.description) return false
|
219 226 | if (disconnectOnSessionTimeout != other.disconnectOnSessionTimeout) return false
|
220 227 | if (dnsName != other.dnsName) return false
|
221 228 | if (dnsServers != other.dnsServers) return false
|
222 229 | if (endpointIpAddressType != other.endpointIpAddressType) return false
|
223 230 | if (securityGroupIds != other.securityGroupIds) return false
|
224 231 | if (selfServicePortalUrl != other.selfServicePortalUrl) return false
|
225 232 | if (serverCertificateArn != other.serverCertificateArn) return false
|
226 233 | if (sessionTimeoutHours != other.sessionTimeoutHours) return false
|
227 234 | if (splitTunnel != other.splitTunnel) return false
|
228 235 | if (status != other.status) return false
|
229 236 | if (tags != other.tags) return false
|
230 237 | if (trafficIpAddressType != other.trafficIpAddressType) return false
|
238 + | if (transitGatewayConfiguration != other.transitGatewayConfiguration) return false
|
231 239 | if (transportProtocol != other.transportProtocol) return false
|
232 240 | if (vpcId != other.vpcId) return false
|
233 241 | if (vpnPort != other.vpnPort) return false
|
234 242 | if (vpnProtocol != other.vpnProtocol) return false
|
235 243 |
|
236 244 | return true
|
237 245 | }
|
238 246 |
|
239 247 | public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2.model.ClientVpnEndpoint = Builder(this).apply(block).build()
|
240 248 |
|
334 342 | */
|
335 343 | public var status: aws.sdk.kotlin.services.ec2.model.ClientVpnEndpointStatus? = null
|
336 344 | /**
|
337 345 | * Any tags assigned to the Client VPN endpoint.
|
338 346 | */
|
339 347 | public var tags: List<Tag>? = null
|
340 348 | /**
|
341 349 | * The IP address type of the Client VPN endpoint. Possible values are either `ipv4` for IPv4 addressing only, `ipv6` for IPv6 addressing only, or `dual-stack` for both IPv4 and IPv6 addressing.
|
342 350 | */
|
343 351 | public var trafficIpAddressType: aws.sdk.kotlin.services.ec2.model.TrafficIpAddressType? = null
|
352 + | /**
|
353 + | * The Transit Gateway configuration for the Client VPN endpoint.
|
354 + | */
|
355 + | public var transitGatewayConfiguration: aws.sdk.kotlin.services.ec2.model.TransitGatewayConfigurationDescribeEndpointStructure? = null
|
344 356 | /**
|
345 357 | * The transport protocol used by the Client VPN endpoint.
|
346 358 | */
|
347 359 | public var transportProtocol: aws.sdk.kotlin.services.ec2.model.TransportProtocol? = null
|
348 360 | /**
|
349 361 | * The ID of the VPC.
|
350 362 | */
|
351 363 | public var vpcId: kotlin.String? = null
|
352 364 | /**
|
353 365 | * The port number for the Client VPN endpoint.
|
354 366 | */
|
355 367 | public var vpnPort: kotlin.Int? = null
|
356 368 | /**
|
357 369 | * The protocol used by the VPN session.
|
358 370 | */
|
359 371 | public var vpnProtocol: aws.sdk.kotlin.services.ec2.model.VpnProtocol? = null
|
360 372 |
|
361 373 | @PublishedApi
|
362 374 | internal constructor()
|
363 375 | @PublishedApi
|
364 376 | internal constructor(x: aws.sdk.kotlin.services.ec2.model.ClientVpnEndpoint) : this() {
|
365 377 | this.associatedTargetNetworks = x.associatedTargetNetworks
|
366 378 | this.authenticationOptions = x.authenticationOptions
|
367 379 | this.clientCidrBlock = x.clientCidrBlock
|
368 380 | this.clientConnectOptions = x.clientConnectOptions
|
369 381 | this.clientLoginBannerOptions = x.clientLoginBannerOptions
|
370 382 | this.clientRouteEnforcementOptions = x.clientRouteEnforcementOptions
|
371 383 | this.clientVpnEndpointId = x.clientVpnEndpointId
|
372 384 | this.connectionLogOptions = x.connectionLogOptions
|
373 385 | this.creationTime = x.creationTime
|
374 386 | this.deletionTime = x.deletionTime
|
375 387 | this.description = x.description
|
376 388 | this.disconnectOnSessionTimeout = x.disconnectOnSessionTimeout
|
377 389 | this.dnsName = x.dnsName
|
378 390 | this.dnsServers = x.dnsServers
|
379 391 | this.endpointIpAddressType = x.endpointIpAddressType
|
380 392 | this.securityGroupIds = x.securityGroupIds
|
381 393 | this.selfServicePortalUrl = x.selfServicePortalUrl
|
382 394 | this.serverCertificateArn = x.serverCertificateArn
|
383 395 | this.sessionTimeoutHours = x.sessionTimeoutHours
|
384 396 | this.splitTunnel = x.splitTunnel
|
385 397 | this.status = x.status
|
386 398 | this.tags = x.tags
|
387 399 | this.trafficIpAddressType = x.trafficIpAddressType
|
400 + | this.transitGatewayConfiguration = x.transitGatewayConfiguration
|
388 401 | this.transportProtocol = x.transportProtocol
|
389 402 | this.vpcId = x.vpcId
|
390 403 | this.vpnPort = x.vpnPort
|
391 404 | this.vpnProtocol = x.vpnProtocol
|
392 405 | }
|
393 406 |
|
394 407 | @PublishedApi
|
395 408 | internal fun build(): aws.sdk.kotlin.services.ec2.model.ClientVpnEndpoint = ClientVpnEndpoint(this)
|
396 409 |
|
397 410 | /**
|
398 411 | * construct an [aws.sdk.kotlin.services.ec2.model.ClientConnectResponseOptions] inside the given [block]
|
399 412 | */
|
400 413 | public fun clientConnectOptions(block: aws.sdk.kotlin.services.ec2.model.ClientConnectResponseOptions.Builder.() -> kotlin.Unit) {
|
401 414 | this.clientConnectOptions = awsSdkKotlinServicesEc2ModelClientConnectResponseOptionsDslBuilderRef(block)
|
402 415 | }
|
403 416 |
|
404 417 | /**
|
405 418 | * construct an [aws.sdk.kotlin.services.ec2.model.ClientLoginBannerResponseOptions] inside the given [block]
|
406 419 | */
|
407 420 | public fun clientLoginBannerOptions(block: aws.sdk.kotlin.services.ec2.model.ClientLoginBannerResponseOptions.Builder.() -> kotlin.Unit) {
|
408 421 | this.clientLoginBannerOptions = awsSdkKotlinServicesEc2ModelClientLoginBannerResponseOptionsDslBuilderRef(block)
|
409 422 | }
|
410 423 |
|
411 424 | /**
|
412 425 | * construct an [aws.sdk.kotlin.services.ec2.model.ClientRouteEnforcementResponseOptions] inside the given [block]
|
413 426 | */
|
414 427 | public fun clientRouteEnforcementOptions(block: aws.sdk.kotlin.services.ec2.model.ClientRouteEnforcementResponseOptions.Builder.() -> kotlin.Unit) {
|
415 428 | this.clientRouteEnforcementOptions = awsSdkKotlinServicesEc2ModelClientRouteEnforcementResponseOptionsDslBuilderRef(block)
|
416 429 | }
|
417 430 |
|
418 431 | /**
|
419 432 | * construct an [aws.sdk.kotlin.services.ec2.model.ConnectionLogResponseOptions] inside the given [block]
|
420 433 | */
|
421 434 | public fun connectionLogOptions(block: aws.sdk.kotlin.services.ec2.model.ConnectionLogResponseOptions.Builder.() -> kotlin.Unit) {
|
422 435 | this.connectionLogOptions = awsSdkKotlinServicesEc2ModelConnectionLogResponseOptionsDslBuilderRef(block)
|
423 436 | }
|
424 437 |
|
425 438 | /**
|
426 439 | * construct an [aws.sdk.kotlin.services.ec2.model.ClientVpnEndpointStatus] inside the given [block]
|
427 440 | */
|
428 441 | public fun status(block: aws.sdk.kotlin.services.ec2.model.ClientVpnEndpointStatus.Builder.() -> kotlin.Unit) {
|
429 442 | this.status = awsSdkKotlinServicesEc2ModelClientVpnEndpointStatusDslBuilderRef(block)
|
430 443 | }
|
431 444 |
|
445 + | /**
|
446 + | * construct an [aws.sdk.kotlin.services.ec2.model.TransitGatewayConfigurationDescribeEndpointStructure] inside the given [block]
|
447 + | */
|
448 + | public fun transitGatewayConfiguration(block: aws.sdk.kotlin.services.ec2.model.TransitGatewayConfigurationDescribeEndpointStructure.Builder.() -> kotlin.Unit) {
|
449 + | this.transitGatewayConfiguration = awsSdkKotlinServicesEc2ModelTransitGatewayConfigurationDescribeEndpointStructureDslBuilderRef(block)
|
450 + | }
|
451 + |
|
432 452 | internal fun correctErrors(): Builder {
|
433 453 | return this
|
434 454 | }
|
435 455 | }
|
436 456 | }
|