commonMain.aws.sdk.kotlin.services.route53.model.GetReusableDelegationSetLimitResponse.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 requested limit.
*/
public class GetReusableDelegationSetLimitResponse private constructor(builder: Builder) {
/**
* The current number of hosted zones that you can associate with the specified reusable delegation set.
*/
public val count: kotlin.Long = builder.count
/**
* The current setting for the limit on hosted zones that you can associate with the specified reusable delegation set.
*/
public val limit: aws.sdk.kotlin.services.route53.model.ReusableDelegationSetLimit? = builder.limit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.GetReusableDelegationSetLimitResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReusableDelegationSetLimitResponse(")
append("count=$count,")
append("limit=$limit")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = count.hashCode()
result = 31 * result + (limit?.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 GetReusableDelegationSetLimitResponse
if (count != other.count) return false
if (limit != other.limit) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.GetReusableDelegationSetLimitResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current number of hosted zones that you can associate with the specified reusable delegation set.
*/
public var count: kotlin.Long = 0L
/**
* The current setting for the limit on hosted zones that you can associate with the specified reusable delegation set.
*/
public var limit: aws.sdk.kotlin.services.route53.model.ReusableDelegationSetLimit? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.GetReusableDelegationSetLimitResponse) : this() {
this.count = x.count
this.limit = x.limit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.GetReusableDelegationSetLimitResponse = GetReusableDelegationSetLimitResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.ReusableDelegationSetLimit] inside the given [block]
*/
public fun limit(block: aws.sdk.kotlin.services.route53.model.ReusableDelegationSetLimit.Builder.() -> kotlin.Unit) {
this.limit = aws.sdk.kotlin.services.route53.model.ReusableDelegationSetLimit.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}