commonMain.aws.sdk.kotlin.services.route53.model.CreateReusableDelegationSetResponse.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
public class CreateReusableDelegationSetResponse private constructor(builder: Builder) {
/**
* A complex type that contains name server information.
*/
public val delegationSet: aws.sdk.kotlin.services.route53.model.DelegationSet? = builder.delegationSet
/**
* The unique URL representing the new reusable delegation set.
*/
public val location: kotlin.String = requireNotNull(builder.location) { "A non-null value must be provided for location" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.CreateReusableDelegationSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateReusableDelegationSetResponse(")
append("delegationSet=$delegationSet,")
append("location=$location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = delegationSet?.hashCode() ?: 0
result = 31 * result + (location.hashCode())
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 CreateReusableDelegationSetResponse
if (delegationSet != other.delegationSet) return false
if (location != other.location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.CreateReusableDelegationSetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A complex type that contains name server information.
*/
public var delegationSet: aws.sdk.kotlin.services.route53.model.DelegationSet? = null
/**
* The unique URL representing the new reusable delegation set.
*/
public var location: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.CreateReusableDelegationSetResponse) : this() {
this.delegationSet = x.delegationSet
this.location = x.location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.CreateReusableDelegationSetResponse = CreateReusableDelegationSetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.DelegationSet] inside the given [block]
*/
public fun delegationSet(block: aws.sdk.kotlin.services.route53.model.DelegationSet.Builder.() -> kotlin.Unit) {
this.delegationSet = aws.sdk.kotlin.services.route53.model.DelegationSet.invoke(block)
}
internal fun correctErrors(): Builder {
if (location == null) location = ""
return this
}
}
}