commonMain.aws.sdk.kotlin.services.route53.model.GetHealthCheckRequest.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 request to get information about a specified health check.
*/
public class GetHealthCheckRequest private constructor(builder: Builder) {
/**
* The identifier that Amazon Route 53 assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long.
*/
public val healthCheckId: kotlin.String? = builder.healthCheckId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.GetHealthCheckRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetHealthCheckRequest(")
append("healthCheckId=$healthCheckId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = healthCheckId?.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 GetHealthCheckRequest
if (healthCheckId != other.healthCheckId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.GetHealthCheckRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier that Amazon Route 53 assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long.
*/
public var healthCheckId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.GetHealthCheckRequest) : this() {
this.healthCheckId = x.healthCheckId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.GetHealthCheckRequest = GetHealthCheckRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}