
commonMain.aws.sdk.kotlin.services.omics.model.DeleteAnnotationStoreVersionsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
public class DeleteAnnotationStoreVersionsRequest private constructor(builder: Builder) {
/**
* Forces the deletion of an annotation store version when imports are in-progress..
*/
public val force: kotlin.Boolean? = builder.force
/**
* The name of the annotation store from which versions are being deleted.
*/
public val name: kotlin.String? = builder.name
/**
* The versions of an annotation store to be deleted.
*/
public val versions: List? = builder.versions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.DeleteAnnotationStoreVersionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteAnnotationStoreVersionsRequest(")
append("force=$force,")
append("name=$name,")
append("versions=$versions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = force?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (versions?.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 DeleteAnnotationStoreVersionsRequest
if (force != other.force) return false
if (name != other.name) return false
if (versions != other.versions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.DeleteAnnotationStoreVersionsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Forces the deletion of an annotation store version when imports are in-progress..
*/
public var force: kotlin.Boolean? = null
/**
* The name of the annotation store from which versions are being deleted.
*/
public var name: kotlin.String? = null
/**
* The versions of an annotation store to be deleted.
*/
public var versions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.DeleteAnnotationStoreVersionsRequest) : this() {
this.force = x.force
this.name = x.name
this.versions = x.versions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.DeleteAnnotationStoreVersionsRequest = DeleteAnnotationStoreVersionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy