
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSubnetsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticloadbalancingv2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SetSubnetsResponse private constructor(builder: Builder) {
/**
* Information about the subnets.
*/
public val availabilityZones: List? = builder.availabilityZones
/**
* [Application Load Balancers] The IP address type.
*
* [Network Load Balancers] The IP address type.
*
* [Gateway Load Balancers] The IP address type.
*/
public val ipAddressType: aws.sdk.kotlin.services.elasticloadbalancingv2.model.IpAddressType? = builder.ipAddressType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSubnetsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetSubnetsResponse(")
append("availabilityZones=$availabilityZones,")
append("ipAddressType=$ipAddressType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZones?.hashCode() ?: 0
result = 31 * result + (ipAddressType?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as SetSubnetsResponse
if (availabilityZones != other.availabilityZones) return false
if (ipAddressType != other.ipAddressType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSubnetsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the subnets.
*/
public var availabilityZones: List? = null
/**
* [Application Load Balancers] The IP address type.
*
* [Network Load Balancers] The IP address type.
*
* [Gateway Load Balancers] The IP address type.
*/
public var ipAddressType: aws.sdk.kotlin.services.elasticloadbalancingv2.model.IpAddressType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSubnetsResponse) : this() {
this.availabilityZones = x.availabilityZones
this.ipAddressType = x.ipAddressType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSubnetsResponse = SetSubnetsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy