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

commonMain.aws.sdk.kotlin.services.fsx.model.DeleteDataRepositoryAssociationResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.fsx.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteDataRepositoryAssociationResponse private constructor(builder: Builder) {
    /**
     * The ID of the data repository association being deleted.
     */
    public val associationId: kotlin.String? = builder.associationId
    /**
     * Indicates whether data in the file system that corresponds to the data repository association is being deleted. Default is `false`.
     */
    public val deleteDataInFileSystem: kotlin.Boolean? = builder.deleteDataInFileSystem
    /**
     * Describes the lifecycle state of the data repository association being deleted.
     */
    public val lifecycle: aws.sdk.kotlin.services.fsx.model.DataRepositoryLifecycle? = builder.lifecycle

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteDataRepositoryAssociationResponse(")
        append("associationId=$associationId,")
        append("deleteDataInFileSystem=$deleteDataInFileSystem,")
        append("lifecycle=$lifecycle")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = associationId?.hashCode() ?: 0
        result = 31 * result + (deleteDataInFileSystem?.hashCode() ?: 0)
        result = 31 * result + (lifecycle?.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 DeleteDataRepositoryAssociationResponse

        if (associationId != other.associationId) return false
        if (deleteDataInFileSystem != other.deleteDataInFileSystem) return false
        if (lifecycle != other.lifecycle) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the data repository association being deleted.
         */
        public var associationId: kotlin.String? = null
        /**
         * Indicates whether data in the file system that corresponds to the data repository association is being deleted. Default is `false`.
         */
        public var deleteDataInFileSystem: kotlin.Boolean? = null
        /**
         * Describes the lifecycle state of the data repository association being deleted.
         */
        public var lifecycle: aws.sdk.kotlin.services.fsx.model.DataRepositoryLifecycle? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fsx.model.DeleteDataRepositoryAssociationResponse) : this() {
            this.associationId = x.associationId
            this.deleteDataInFileSystem = x.deleteDataInFileSystem
            this.lifecycle = x.lifecycle
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy