commonMain.aws.sdk.kotlin.services.deadline.model.IpAddresses.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The IP addresses for a host.
*/
public class IpAddresses private constructor(builder: Builder) {
/**
* The IpV4 address of the network.
*/
public val ipv4Addresses: List? = builder.ipv4Addresses
/**
* The IpV6 address for the network and node component.
*/
public val ipv6Addresses: List? = builder.ipv6Addresses
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.IpAddresses = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IpAddresses(")
append("ipv4Addresses=$ipv4Addresses,")
append("ipv6Addresses=$ipv6Addresses")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ipv4Addresses?.hashCode() ?: 0
result = 31 * result + (ipv6Addresses?.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 IpAddresses
if (ipv4Addresses != other.ipv4Addresses) return false
if (ipv6Addresses != other.ipv6Addresses) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.IpAddresses = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The IpV4 address of the network.
*/
public var ipv4Addresses: List? = null
/**
* The IpV6 address for the network and node component.
*/
public var ipv6Addresses: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.IpAddresses) : this() {
this.ipv4Addresses = x.ipv4Addresses
this.ipv6Addresses = x.ipv6Addresses
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.IpAddresses = IpAddresses(this)
internal fun correctErrors(): Builder {
return this
}
}
}