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