commonMain.aws.sdk.kotlin.services.finspace.model.CustomDnsServer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* 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 = requireNotNull(builder.customDnsServerIp) { "A non-null value must be provided for customDnsServerIp" }
/**
* The name of the DNS server.
*/
public val customDnsServerName: kotlin.String = requireNotNull(builder.customDnsServerName) { "A non-null value must be provided for 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()
result = 31 * result + (customDnsServerName.hashCode())
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()
@SdkDsl
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)
internal fun correctErrors(): Builder {
if (customDnsServerIp == null) customDnsServerIp = ""
if (customDnsServerName == null) customDnsServerName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy