All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.route53resolver.model.UpdateResolverEndpointRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53resolver.model



public class UpdateResolverEndpointRequest private constructor(builder: Builder) {
    /**
     * The name of the Resolver endpoint that you want to update.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ID of the Resolver endpoint that you want to update.
     */
    public val resolverEndpointId: kotlin.String? = builder.resolverEndpointId
    /**
     * Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.
     *
     * Updating to `IPV6` type isn't currently supported.
     */
    public val resolverEndpointType: aws.sdk.kotlin.services.route53resolver.model.ResolverEndpointType? = builder.resolverEndpointType
    /**
     * Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.
     */
    public val updateIpAddresses: List? = builder.updateIpAddresses

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.UpdateResolverEndpointRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateResolverEndpointRequest(")
        append("name=$name,")
        append("resolverEndpointId=$resolverEndpointId,")
        append("resolverEndpointType=$resolverEndpointType,")
        append("updateIpAddresses=$updateIpAddresses")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = name?.hashCode() ?: 0
        result = 31 * result + (resolverEndpointId?.hashCode() ?: 0)
        result = 31 * result + (resolverEndpointType?.hashCode() ?: 0)
        result = 31 * result + (updateIpAddresses?.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 UpdateResolverEndpointRequest

        if (name != other.name) return false
        if (resolverEndpointId != other.resolverEndpointId) return false
        if (resolverEndpointType != other.resolverEndpointType) return false
        if (updateIpAddresses != other.updateIpAddresses) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53resolver.model.UpdateResolverEndpointRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The name of the Resolver endpoint that you want to update.
         */
        public var name: kotlin.String? = null
        /**
         * The ID of the Resolver endpoint that you want to update.
         */
        public var resolverEndpointId: kotlin.String? = null
        /**
         * Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.
         *
         * Updating to `IPV6` type isn't currently supported.
         */
        public var resolverEndpointType: aws.sdk.kotlin.services.route53resolver.model.ResolverEndpointType? = null
        /**
         * Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.
         */
        public var updateIpAddresses: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.UpdateResolverEndpointRequest) : this() {
            this.name = x.name
            this.resolverEndpointId = x.resolverEndpointId
            this.resolverEndpointType = x.resolverEndpointType
            this.updateIpAddresses = x.updateIpAddresses
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.route53resolver.model.UpdateResolverEndpointRequest = UpdateResolverEndpointRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy