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

commonMain.aws.sdk.kotlin.services.lightsail.model.DeleteBucketAccessKeyRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model



public class DeleteBucketAccessKeyRequest private constructor(builder: Builder) {
    /**
     * The ID of the access key to delete.
     *
     * Use the [GetBucketAccessKeys](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketAccessKeys.html) action to get a list of access key IDs that you can specify.
     */
    public val accessKeyId: kotlin.String? = builder.accessKeyId
    /**
     * The name of the bucket that the access key belongs to.
     */
    public val bucketName: kotlin.String? = builder.bucketName

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteBucketAccessKeyRequest(")
        append("accessKeyId=$accessKeyId,")
        append("bucketName=$bucketName)")
    }

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

        if (accessKeyId != other.accessKeyId) return false
        if (bucketName != other.bucketName) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the access key to delete.
         *
         * Use the [GetBucketAccessKeys](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketAccessKeys.html) action to get a list of access key IDs that you can specify.
         */
        public var accessKeyId: kotlin.String? = null
        /**
         * The name of the bucket that the access key belongs to.
         */
        public var bucketName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.DeleteBucketAccessKeyRequest) : this() {
            this.accessKeyId = x.accessKeyId
            this.bucketName = x.bucketName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy