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

commonMain.aws.sdk.kotlin.services.outposts.model.UpdateOutpostRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.outposts.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateOutpostRequest private constructor(builder: Builder) {
    /**
     * The description of the Outpost.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the Outpost.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ID or ARN of the Outpost.
     */
    public val outpostId: kotlin.String? = builder.outpostId
    /**
     * The type of hardware for this Outpost.
     */
    public val supportedHardwareType: aws.sdk.kotlin.services.outposts.model.SupportedHardwareType? = builder.supportedHardwareType

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateOutpostRequest(")
        append("description=$description,")
        append("name=$name,")
        append("outpostId=$outpostId,")
        append("supportedHardwareType=$supportedHardwareType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (outpostId?.hashCode() ?: 0)
        result = 31 * result + (supportedHardwareType?.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 UpdateOutpostRequest

        if (description != other.description) return false
        if (name != other.name) return false
        if (outpostId != other.outpostId) return false
        if (supportedHardwareType != other.supportedHardwareType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The description of the Outpost.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the Outpost.
         */
        public var name: kotlin.String? = null
        /**
         * The ID or ARN of the Outpost.
         */
        public var outpostId: kotlin.String? = null
        /**
         * The type of hardware for this Outpost.
         */
        public var supportedHardwareType: aws.sdk.kotlin.services.outposts.model.SupportedHardwareType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.outposts.model.UpdateOutpostRequest) : this() {
            this.description = x.description
            this.name = x.name
            this.outpostId = x.outpostId
            this.supportedHardwareType = x.supportedHardwareType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy