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

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

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

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



public class UpdateOutpostResolverRequest private constructor(builder: Builder) {
    /**
     * A unique string that identifies Resolver on an Outpost.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The Amazon EC2 instance count for a Resolver on the Outpost.
     */
    public val instanceCount: kotlin.Int? = builder.instanceCount
    /**
     * Name of the Resolver on the Outpost.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Amazon EC2 instance type.
     */
    public val preferredInstanceType: kotlin.String? = builder.preferredInstanceType

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateOutpostResolverRequest(")
        append("id=$id,")
        append("instanceCount=$instanceCount,")
        append("name=$name,")
        append("preferredInstanceType=$preferredInstanceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = id?.hashCode() ?: 0
        result = 31 * result + (instanceCount ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (preferredInstanceType?.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 UpdateOutpostResolverRequest

        if (id != other.id) return false
        if (instanceCount != other.instanceCount) return false
        if (name != other.name) return false
        if (preferredInstanceType != other.preferredInstanceType) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique string that identifies Resolver on an Outpost.
         */
        public var id: kotlin.String? = null
        /**
         * The Amazon EC2 instance count for a Resolver on the Outpost.
         */
        public var instanceCount: kotlin.Int? = null
        /**
         * Name of the Resolver on the Outpost.
         */
        public var name: kotlin.String? = null
        /**
         * Amazon EC2 instance type.
         */
        public var preferredInstanceType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.UpdateOutpostResolverRequest) : this() {
            this.id = x.id
            this.instanceCount = x.instanceCount
            this.name = x.name
            this.preferredInstanceType = x.preferredInstanceType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy