commonMain.aws.sdk.kotlin.services.route53.model.GetHostedZoneLimitResponse.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 GetHostedZoneLimitResponse private constructor(builder: Builder) {
/**
* The current number of entities that you have created of the specified type. For example, if you specified `MAX_RRSETS_BY_ZONE` for the value of `Type` in the request, the value of `Count` is the current number of records that you have created in the specified hosted zone.
*/
public val count: kotlin.Long = builder.count
/**
* The current setting for the specified limit. For example, if you specified `MAX_RRSETS_BY_ZONE` for the value of `Type` in the request, the value of `Limit` is the maximum number of records that you can create in the specified hosted zone.
*/
public val limit: aws.sdk.kotlin.services.route53.model.HostedZoneLimit? = builder.limit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.GetHostedZoneLimitResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetHostedZoneLimitResponse(")
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 GetHostedZoneLimitResponse
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.GetHostedZoneLimitResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current number of entities that you have created of the specified type. For example, if you specified `MAX_RRSETS_BY_ZONE` for the value of `Type` in the request, the value of `Count` is the current number of records that you have created in the specified hosted zone.
*/
public var count: kotlin.Long = 0L
/**
* The current setting for the specified limit. For example, if you specified `MAX_RRSETS_BY_ZONE` for the value of `Type` in the request, the value of `Limit` is the maximum number of records that you can create in the specified hosted zone.
*/
public var limit: aws.sdk.kotlin.services.route53.model.HostedZoneLimit? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.GetHostedZoneLimitResponse) : this() {
this.count = x.count
this.limit = x.limit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.GetHostedZoneLimitResponse = GetHostedZoneLimitResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.HostedZoneLimit] inside the given [block]
*/
public fun limit(block: aws.sdk.kotlin.services.route53.model.HostedZoneLimit.Builder.() -> kotlin.Unit) {
this.limit = aws.sdk.kotlin.services.route53.model.HostedZoneLimit.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}