commonMain.aws.sdk.kotlin.services.backup.model.GetRestoreTestingSelectionResponse.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 GetRestoreTestingSelectionResponse private constructor(builder: Builder) {
/**
* Unique name of the restore testing selection.
*/
public val restoreTestingSelection: aws.sdk.kotlin.services.backup.model.RestoreTestingSelectionForGet? = builder.restoreTestingSelection
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.GetRestoreTestingSelectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRestoreTestingSelectionResponse(")
append("restoreTestingSelection=$restoreTestingSelection")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = restoreTestingSelection?.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 GetRestoreTestingSelectionResponse
if (restoreTestingSelection != other.restoreTestingSelection) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.GetRestoreTestingSelectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Unique name of the restore testing selection.
*/
public var restoreTestingSelection: aws.sdk.kotlin.services.backup.model.RestoreTestingSelectionForGet? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.GetRestoreTestingSelectionResponse) : this() {
this.restoreTestingSelection = x.restoreTestingSelection
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.GetRestoreTestingSelectionResponse = GetRestoreTestingSelectionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.backup.model.RestoreTestingSelectionForGet] inside the given [block]
*/
public fun restoreTestingSelection(block: aws.sdk.kotlin.services.backup.model.RestoreTestingSelectionForGet.Builder.() -> kotlin.Unit) {
this.restoreTestingSelection = aws.sdk.kotlin.services.backup.model.RestoreTestingSelectionForGet.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}