commonMain.aws.sdk.kotlin.services.finspace.model.CustomDnsServer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
/**
* A list of DNS server name and server IP. This is used to set up Route-53 outbound resolvers.
*/
public class CustomDnsServer private constructor(builder: Builder) {
/**
* The IP address of the DNS server.
*/
public val customDnsServerIp: kotlin.String? = builder.customDnsServerIp
/**
* The name of the DNS server.
*/
public val customDnsServerName: kotlin.String? = builder.customDnsServerName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.CustomDnsServer = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomDnsServer(")
append("customDnsServerIp=$customDnsServerIp,")
append("customDnsServerName=$customDnsServerName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = customDnsServerIp?.hashCode() ?: 0
result = 31 * result + (customDnsServerName?.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 CustomDnsServer
if (customDnsServerIp != other.customDnsServerIp) return false
if (customDnsServerName != other.customDnsServerName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.CustomDnsServer = Builder(this).apply(block).build()
public class Builder {
/**
* The IP address of the DNS server.
*/
public var customDnsServerIp: kotlin.String? = null
/**
* The name of the DNS server.
*/
public var customDnsServerName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.CustomDnsServer) : this() {
this.customDnsServerIp = x.customDnsServerIp
this.customDnsServerName = x.customDnsServerName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.CustomDnsServer = CustomDnsServer(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy