commonMain.aws.sdk.kotlin.services.redshift.model.NetworkInterface.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes a network interface.
*/
public class NetworkInterface private constructor(builder: Builder) {
/**
* The Availability Zone.
*/
public val availabilityZone: kotlin.String? = builder.availabilityZone
/**
* The IPv6 address of the network interface within the subnet.
*/
public val ipv6Address: kotlin.String? = builder.ipv6Address
/**
* The network interface identifier.
*/
public val networkInterfaceId: kotlin.String? = builder.networkInterfaceId
/**
* The IPv4 address of the network interface within the subnet.
*/
public val privateIpAddress: kotlin.String? = builder.privateIpAddress
/**
* The subnet identifier.
*/
public val subnetId: kotlin.String? = builder.subnetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.NetworkInterface = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkInterface(")
append("availabilityZone=$availabilityZone,")
append("ipv6Address=$ipv6Address,")
append("networkInterfaceId=$networkInterfaceId,")
append("privateIpAddress=$privateIpAddress,")
append("subnetId=$subnetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZone?.hashCode() ?: 0
result = 31 * result + (ipv6Address?.hashCode() ?: 0)
result = 31 * result + (networkInterfaceId?.hashCode() ?: 0)
result = 31 * result + (privateIpAddress?.hashCode() ?: 0)
result = 31 * result + (subnetId?.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 NetworkInterface
if (availabilityZone != other.availabilityZone) return false
if (ipv6Address != other.ipv6Address) return false
if (networkInterfaceId != other.networkInterfaceId) return false
if (privateIpAddress != other.privateIpAddress) return false
if (subnetId != other.subnetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.NetworkInterface = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Availability Zone.
*/
public var availabilityZone: kotlin.String? = null
/**
* The IPv6 address of the network interface within the subnet.
*/
public var ipv6Address: kotlin.String? = null
/**
* The network interface identifier.
*/
public var networkInterfaceId: kotlin.String? = null
/**
* The IPv4 address of the network interface within the subnet.
*/
public var privateIpAddress: kotlin.String? = null
/**
* The subnet identifier.
*/
public var subnetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.NetworkInterface) : this() {
this.availabilityZone = x.availabilityZone
this.ipv6Address = x.ipv6Address
this.networkInterfaceId = x.networkInterfaceId
this.privateIpAddress = x.privateIpAddress
this.subnetId = x.subnetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.NetworkInterface = NetworkInterface(this)
internal fun correctErrors(): Builder {
return this
}
}
}