aws.sdk.kotlin.services.amplify.model.SubDomain.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplify.model
/**
* The subdomain for the domain association.
*/
class SubDomain private constructor(builder: Builder) {
/**
* The DNS record for the subdomain.
*/
val dnsRecord: kotlin.String? = builder.dnsRecord
/**
* Describes the settings for the subdomain.
*/
val subDomainSetting: aws.sdk.kotlin.services.amplify.model.SubDomainSetting? = builder.subDomainSetting
/**
* The verified status of the subdomain
*/
val verified: kotlin.Boolean? = builder.verified
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplify.model.SubDomain = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubDomain(")
append("dnsRecord=$dnsRecord,")
append("subDomainSetting=$subDomainSetting,")
append("verified=$verified)")
}
override fun hashCode(): kotlin.Int {
var result = dnsRecord?.hashCode() ?: 0
result = 31 * result + (subDomainSetting?.hashCode() ?: 0)
result = 31 * result + (verified?.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 SubDomain
if (dnsRecord != other.dnsRecord) return false
if (subDomainSetting != other.subDomainSetting) return false
if (verified != other.verified) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplify.model.SubDomain = Builder(this).apply(block).build()
class Builder {
/**
* The DNS record for the subdomain.
*/
var dnsRecord: kotlin.String? = null
/**
* Describes the settings for the subdomain.
*/
var subDomainSetting: aws.sdk.kotlin.services.amplify.model.SubDomainSetting? = null
/**
* The verified status of the subdomain
*/
var verified: kotlin.Boolean? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplify.model.SubDomain) : this() {
this.dnsRecord = x.dnsRecord
this.subDomainSetting = x.subDomainSetting
this.verified = x.verified
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplify.model.SubDomain = SubDomain(this)
/**
* construct an [aws.sdk.kotlin.services.amplify.model.SubDomainSetting] inside the given [block]
*/
fun subDomainSetting(block: aws.sdk.kotlin.services.amplify.model.SubDomainSetting.Builder.() -> kotlin.Unit) {
this.subDomainSetting = aws.sdk.kotlin.services.amplify.model.SubDomainSetting.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy