commonMain.aws.sdk.kotlin.services.backup.model.StartBackupJobResponse.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 StartBackupJobResponse private constructor(builder: Builder) {
/**
* Uniquely identifies a request to Backup to back up a resource.
*/
public val backupJobId: kotlin.String? = builder.backupJobId
/**
* The date and time that a backup 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) backup job.
*/
public val isParent: kotlin.Boolean = builder.isParent
/**
* *Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.*
*
* An ARN that uniquely identifies a recovery point; for example, `arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45`.
*/
public val recoveryPointArn: kotlin.String? = builder.recoveryPointArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.StartBackupJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartBackupJobResponse(")
append("backupJobId=$backupJobId,")
append("creationDate=$creationDate,")
append("isParent=$isParent,")
append("recoveryPointArn=$recoveryPointArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupJobId?.hashCode() ?: 0
result = 31 * result + (creationDate?.hashCode() ?: 0)
result = 31 * result + (isParent.hashCode())
result = 31 * result + (recoveryPointArn?.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 StartBackupJobResponse
if (backupJobId != other.backupJobId) return false
if (creationDate != other.creationDate) return false
if (isParent != other.isParent) return false
if (recoveryPointArn != other.recoveryPointArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.StartBackupJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Uniquely identifies a request to Backup to back up a resource.
*/
public var backupJobId: kotlin.String? = null
/**
* The date and time that a backup 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) backup job.
*/
public var isParent: kotlin.Boolean = false
/**
* *Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.*
*
* An ARN that uniquely identifies a recovery point; for example, `arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45`.
*/
public var recoveryPointArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.StartBackupJobResponse) : this() {
this.backupJobId = x.backupJobId
this.creationDate = x.creationDate
this.isParent = x.isParent
this.recoveryPointArn = x.recoveryPointArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.StartBackupJobResponse = StartBackupJobResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}