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

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

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

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



class DeleteOutpostRequest private constructor(builder: Builder) {
    /**
     * The ID or the Amazon Resource Name (ARN) of the Outpost.
     *
     * In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names `OutpostID` or `SiteID` remain in use. Despite the parameter name, you can make the request with an ARN.
     */
    val outpostId: kotlin.String? = requireNotNull(builder.outpostId) { "A non-null value must be provided for outpostId" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteOutpostRequest(")
        append("outpostId=$outpostId)")
    }

    override fun hashCode(): kotlin.Int {
        var result = outpostId?.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 DeleteOutpostRequest

        if (outpostId != other.outpostId) return false

        return true
    }

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

    class Builder {
        /**
         * The ID or the Amazon Resource Name (ARN) of the Outpost.
         *
         * In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names `OutpostID` or `SiteID` remain in use. Despite the parameter name, you can make the request with an ARN.
         */
        var outpostId: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy