commonMain.aws.sdk.kotlin.services.backup.model.StartCopyJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class StartCopyJobResponse private constructor(builder: Builder) {
/**
* Uniquely identifies a copy job.
*/
public val copyJobId: kotlin.String? = builder.copyJobId
/**
* The date and time that a copy job is created, in Unix format and Coordinated Universal Time (UTC). The value of `CreationDate` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* This is a returned boolean value indicating this is a parent (composite) copy job.
*/
public val isParent: kotlin.Boolean = builder.isParent
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.StartCopyJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartCopyJobResponse(")
append("copyJobId=$copyJobId,")
append("creationDate=$creationDate,")
append("isParent=$isParent")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = copyJobId?.hashCode() ?: 0
result = 31 * result + (creationDate?.hashCode() ?: 0)
result = 31 * result + (isParent.hashCode())
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 StartCopyJobResponse
if (copyJobId != other.copyJobId) return false
if (creationDate != other.creationDate) return false
if (isParent != other.isParent) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.StartCopyJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Uniquely identifies a copy job.
*/
public var copyJobId: kotlin.String? = null
/**
* The date and time that a copy job is created, in Unix format and Coordinated Universal Time (UTC). The value of `CreationDate` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* This is a returned boolean value indicating this is a parent (composite) copy job.
*/
public var isParent: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.StartCopyJobResponse) : this() {
this.copyJobId = x.copyJobId
this.creationDate = x.creationDate
this.isParent = x.isParent
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.StartCopyJobResponse = StartCopyJobResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}