commonMain.aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of medicalimaging-jvm Show documentation
Show all versions of medicalimaging-jvm Show documentation
The AWS SDK for Kotlin client for Medical Imaging
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medicalimaging.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Copy the image set properties of the destination image set.
*/
public class CopyDestinationImageSetProperties private constructor(builder: Builder) {
/**
* The timestamp when the destination image set properties were created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The Amazon Resource Name (ARN) assigned to the destination image set.
*/
public val imageSetArn: kotlin.String? = builder.imageSetArn
/**
* The image set identifier of the copied image set properties.
*/
public val imageSetId: kotlin.String = requireNotNull(builder.imageSetId) { "A non-null value must be provided for imageSetId" }
/**
* The image set state of the destination image set properties.
*/
public val imageSetState: aws.sdk.kotlin.services.medicalimaging.model.ImageSetState? = builder.imageSetState
/**
* The image set workflow status of the destination image set properties.
*/
public val imageSetWorkflowStatus: aws.sdk.kotlin.services.medicalimaging.model.ImageSetWorkflowStatus? = builder.imageSetWorkflowStatus
/**
* The latest version identifier for the destination image set properties.
*/
public val latestVersionId: kotlin.String = requireNotNull(builder.latestVersionId) { "A non-null value must be provided for latestVersionId" }
/**
* The timestamp when the destination image set properties were last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CopyDestinationImageSetProperties(")
append("createdAt=$createdAt,")
append("imageSetArn=$imageSetArn,")
append("imageSetId=$imageSetId,")
append("imageSetState=$imageSetState,")
append("imageSetWorkflowStatus=$imageSetWorkflowStatus,")
append("latestVersionId=$latestVersionId,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (imageSetArn?.hashCode() ?: 0)
result = 31 * result + (imageSetId.hashCode())
result = 31 * result + (imageSetState?.hashCode() ?: 0)
result = 31 * result + (imageSetWorkflowStatus?.hashCode() ?: 0)
result = 31 * result + (latestVersionId.hashCode())
result = 31 * result + (updatedAt?.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 CopyDestinationImageSetProperties
if (createdAt != other.createdAt) return false
if (imageSetArn != other.imageSetArn) return false
if (imageSetId != other.imageSetId) return false
if (imageSetState != other.imageSetState) return false
if (imageSetWorkflowStatus != other.imageSetWorkflowStatus) return false
if (latestVersionId != other.latestVersionId) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp when the destination image set properties were created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) assigned to the destination image set.
*/
public var imageSetArn: kotlin.String? = null
/**
* The image set identifier of the copied image set properties.
*/
public var imageSetId: kotlin.String? = null
/**
* The image set state of the destination image set properties.
*/
public var imageSetState: aws.sdk.kotlin.services.medicalimaging.model.ImageSetState? = null
/**
* The image set workflow status of the destination image set properties.
*/
public var imageSetWorkflowStatus: aws.sdk.kotlin.services.medicalimaging.model.ImageSetWorkflowStatus? = null
/**
* The latest version identifier for the destination image set properties.
*/
public var latestVersionId: kotlin.String? = null
/**
* The timestamp when the destination image set properties were last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties) : this() {
this.createdAt = x.createdAt
this.imageSetArn = x.imageSetArn
this.imageSetId = x.imageSetId
this.imageSetState = x.imageSetState
this.imageSetWorkflowStatus = x.imageSetWorkflowStatus
this.latestVersionId = x.latestVersionId
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties = CopyDestinationImageSetProperties(this)
internal fun correctErrors(): Builder {
if (imageSetId == null) imageSetId = ""
if (latestVersionId == null) latestVersionId = ""
return this
}
}
}