
commonMain.aws.sdk.kotlin.services.omics.model.CreateShareResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
public class CreateShareResponse private constructor(builder: Builder) {
/**
* An ID generated for the share.
*/
public val shareId: kotlin.String? = builder.shareId
/**
* A name given to the share.
*/
public val shareName: kotlin.String? = builder.shareName
/**
* The status of a share.
*/
public val status: aws.sdk.kotlin.services.omics.model.ShareStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.CreateShareResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateShareResponse(")
append("shareId=$shareId,")
append("shareName=$shareName,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = shareId?.hashCode() ?: 0
result = 31 * result + (shareName?.hashCode() ?: 0)
result = 31 * result + (status?.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 CreateShareResponse
if (shareId != other.shareId) return false
if (shareName != other.shareName) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.CreateShareResponse = Builder(this).apply(block).build()
public class Builder {
/**
* An ID generated for the share.
*/
public var shareId: kotlin.String? = null
/**
* A name given to the share.
*/
public var shareName: kotlin.String? = null
/**
* The status of a share.
*/
public var status: aws.sdk.kotlin.services.omics.model.ShareStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateShareResponse) : this() {
this.shareId = x.shareId
this.shareName = x.shareName
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.CreateShareResponse = CreateShareResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy