commonMain.aws.sdk.kotlin.services.route53.model.DeleteHostedZoneResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53-jvm Show documentation
Show all versions of route53-jvm Show documentation
The AWS SDK for Kotlin client for Route 53
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A complex type that contains the response to a `DeleteHostedZone` request.
*/
public class DeleteHostedZoneResponse private constructor(builder: Builder) {
/**
* A complex type that contains the ID, the status, and the date and time of a request to delete a hosted zone.
*/
public val changeInfo: aws.sdk.kotlin.services.route53.model.ChangeInfo? = builder.changeInfo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.DeleteHostedZoneResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteHostedZoneResponse(")
append("changeInfo=$changeInfo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeInfo?.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 DeleteHostedZoneResponse
if (changeInfo != other.changeInfo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.DeleteHostedZoneResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A complex type that contains the ID, the status, and the date and time of a request to delete a hosted zone.
*/
public var changeInfo: aws.sdk.kotlin.services.route53.model.ChangeInfo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.DeleteHostedZoneResponse) : this() {
this.changeInfo = x.changeInfo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.DeleteHostedZoneResponse = DeleteHostedZoneResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.ChangeInfo] inside the given [block]
*/
public fun changeInfo(block: aws.sdk.kotlin.services.route53.model.ChangeInfo.Builder.() -> kotlin.Unit) {
this.changeInfo = aws.sdk.kotlin.services.route53.model.ChangeInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}