
commonMain.aws.sdk.kotlin.services.route53resolver.model.UpdateIpAddress.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53resolver.model
/**
* Provides information about the IP address type in response to [UpdateResolverEndpoint](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_UpdateResolverEndpoint.html).
*/
public class UpdateIpAddress private constructor(builder: Builder) {
/**
* The ID of the IP address, specified by the `ResolverEndpointId`.
*/
public val ipId: kotlin.String = requireNotNull(builder.ipId) { "A non-null value must be provided for ipId" }
/**
* The IPv6 address that you want to use for DNS queries.
*/
public val ipv6: kotlin.String = requireNotNull(builder.ipv6) { "A non-null value must be provided for ipv6" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.UpdateIpAddress = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateIpAddress(")
append("ipId=$ipId,")
append("ipv6=$ipv6")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ipId.hashCode()
result = 31 * result + (ipv6.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 UpdateIpAddress
if (ipId != other.ipId) return false
if (ipv6 != other.ipv6) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53resolver.model.UpdateIpAddress = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the IP address, specified by the `ResolverEndpointId`.
*/
public var ipId: kotlin.String? = null
/**
* The IPv6 address that you want to use for DNS queries.
*/
public var ipv6: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.UpdateIpAddress) : this() {
this.ipId = x.ipId
this.ipv6 = x.ipv6
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53resolver.model.UpdateIpAddress = UpdateIpAddress(this)
internal fun correctErrors(): Builder {
if (ipId == null) ipId = ""
if (ipv6 == null) ipv6 = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy