commonMain.aws.sdk.kotlin.services.redshiftserverless.model.NetworkInterface.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshiftserverless-jvm Show documentation
Show all versions of redshiftserverless-jvm Show documentation
The AWS SDK for Kotlin client for Redshift Serverless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
*/
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 unique identifier of the network interface.
*/
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 unique identifier of the subnet.
*/
public val subnetId: kotlin.String? = builder.subnetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftserverless.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.redshiftserverless.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 unique identifier of the network interface.
*/
public var networkInterfaceId: kotlin.String? = null
/**
* The IPv4 address of the network interface within the subnet.
*/
public var privateIpAddress: kotlin.String? = null
/**
* The unique identifier of the subnet.
*/
public var subnetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftserverless.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.redshiftserverless.model.NetworkInterface = NetworkInterface(this)
internal fun correctErrors(): Builder {
return this
}
}
}