
commonMain.aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionState.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
/**
* Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.
*/
public class R53HostedZoneDeletionState private constructor(builder: Builder) {
/**
* The status code for the deletion state.
*
* Following are the possible values:
* + `SUCCEEDED` - The hosted zone was successfully deleted.
* + `PENDING` - The hosted zone deletion is in progress.
* + `FAILED` - The hosted zone deletion failed.
* + `STARTED` - The hosted zone deletion started.
*/
public val code: aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionStateCode? = builder.code
/**
* The message that describes the reason for the status code.
*/
public val message: kotlin.String? = builder.message
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionState = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("R53HostedZoneDeletionState(")
append("code=$code,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = code?.hashCode() ?: 0
result = 31 * result + (message?.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 R53HostedZoneDeletionState
if (code != other.code) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionState = Builder(this).apply(block).build()
public class Builder {
/**
* The status code for the deletion state.
*
* Following are the possible values:
* + `SUCCEEDED` - The hosted zone was successfully deleted.
* + `PENDING` - The hosted zone deletion is in progress.
* + `FAILED` - The hosted zone deletion failed.
* + `STARTED` - The hosted zone deletion started.
*/
public var code: aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionStateCode? = null
/**
* The message that describes the reason for the status code.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionState) : this() {
this.code = x.code
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.R53HostedZoneDeletionState = R53HostedZoneDeletionState(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy