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

commonMain.aws.sdk.kotlin.services.s3outposts.model.DeleteEndpointRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.s3outposts.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteEndpointRequest private constructor(builder: Builder) {
    /**
     * The ID of the endpoint.
     */
    public val endpointId: kotlin.String? = builder.endpointId
    /**
     * The ID of the Outposts.
     */
    public val outpostId: kotlin.String? = builder.outpostId

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

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

    override fun hashCode(): kotlin.Int {
        var result = endpointId?.hashCode() ?: 0
        result = 31 * 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 DeleteEndpointRequest

        if (endpointId != other.endpointId) return false
        if (outpostId != other.outpostId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the endpoint.
         */
        public var endpointId: kotlin.String? = null
        /**
         * The ID of the Outposts.
         */
        public var outpostId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3outposts.model.DeleteEndpointRequest) : this() {
            this.endpointId = x.endpointId
            this.outpostId = x.outpostId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy