commonMain.aws.sdk.kotlin.services.backup.model.PutRestoreValidationResultRequest.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
public class PutRestoreValidationResultRequest private constructor(builder: Builder) {
/**
* This is a unique identifier of a restore job within Backup.
*/
public val restoreJobId: kotlin.String? = builder.restoreJobId
/**
* This is the status of your restore validation.
*/
public val validationStatus: aws.sdk.kotlin.services.backup.model.RestoreValidationStatus? = builder.validationStatus
/**
* This is an optional message string you can input to describe the validation status for the restore test validation.
*/
public val validationStatusMessage: kotlin.String? = builder.validationStatusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.PutRestoreValidationResultRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutRestoreValidationResultRequest(")
append("restoreJobId=$restoreJobId,")
append("validationStatus=$validationStatus,")
append("validationStatusMessage=$validationStatusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = restoreJobId?.hashCode() ?: 0
result = 31 * result + (validationStatus?.hashCode() ?: 0)
result = 31 * result + (validationStatusMessage?.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 PutRestoreValidationResultRequest
if (restoreJobId != other.restoreJobId) return false
if (validationStatus != other.validationStatus) return false
if (validationStatusMessage != other.validationStatusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.PutRestoreValidationResultRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This is a unique identifier of a restore job within Backup.
*/
public var restoreJobId: kotlin.String? = null
/**
* This is the status of your restore validation.
*/
public var validationStatus: aws.sdk.kotlin.services.backup.model.RestoreValidationStatus? = null
/**
* This is an optional message string you can input to describe the validation status for the restore test validation.
*/
public var validationStatusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.PutRestoreValidationResultRequest) : this() {
this.restoreJobId = x.restoreJobId
this.validationStatus = x.validationStatus
this.validationStatusMessage = x.validationStatusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.PutRestoreValidationResultRequest = PutRestoreValidationResultRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}