
commonMain.aws.sdk.kotlin.services.drs.model.DeleteRecoveryInstanceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.drs.model
public class DeleteRecoveryInstanceRequest private constructor(builder: Builder) {
/**
* The ID of the Recovery Instance to be deleted.
*/
public val recoveryInstanceId: kotlin.String? = builder.recoveryInstanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.drs.model.DeleteRecoveryInstanceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteRecoveryInstanceRequest(")
append("recoveryInstanceId=$recoveryInstanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = recoveryInstanceId?.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 DeleteRecoveryInstanceRequest
if (recoveryInstanceId != other.recoveryInstanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.drs.model.DeleteRecoveryInstanceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the Recovery Instance to be deleted.
*/
public var recoveryInstanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.drs.model.DeleteRecoveryInstanceRequest) : this() {
this.recoveryInstanceId = x.recoveryInstanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.drs.model.DeleteRecoveryInstanceRequest = DeleteRecoveryInstanceRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy