commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.CheckDnsAvailabilityResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Indicates if the specified CNAME is available.
*/
public class CheckDnsAvailabilityResponse private constructor(builder: Builder) {
/**
* Indicates if the specified CNAME is available:
* + `true` : The CNAME is available.
* + `false` : The CNAME is not available.
*/
public val available: kotlin.Boolean? = builder.available
/**
* The fully qualified CNAME to reserve when CreateEnvironment is called with the provided prefix.
*/
public val fullyQualifiedCname: kotlin.String? = builder.fullyQualifiedCname
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.CheckDnsAvailabilityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CheckDnsAvailabilityResponse(")
append("available=$available,")
append("fullyQualifiedCname=$fullyQualifiedCname")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = available?.hashCode() ?: 0
result = 31 * result + (fullyQualifiedCname?.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 CheckDnsAvailabilityResponse
if (available != other.available) return false
if (fullyQualifiedCname != other.fullyQualifiedCname) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.CheckDnsAvailabilityResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates if the specified CNAME is available:
* + `true` : The CNAME is available.
* + `false` : The CNAME is not available.
*/
public var available: kotlin.Boolean? = null
/**
* The fully qualified CNAME to reserve when CreateEnvironment is called with the provided prefix.
*/
public var fullyQualifiedCname: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.CheckDnsAvailabilityResponse) : this() {
this.available = x.available
this.fullyQualifiedCname = x.fullyQualifiedCname
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.CheckDnsAvailabilityResponse = CheckDnsAvailabilityResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}