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