commonMain.aws.sdk.kotlin.services.fsx.model.DeleteDataRepositoryAssociationResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsx-jvm Show documentation
Show all versions of fsx-jvm Show documentation
The AWS SDK for Kotlin client for FSx
// 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
}
}
}