aws.sdk.kotlin.services.amplify.model.UpdateDomainAssociationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplify.model
/**
* The result structure for the update domain association request.
*/
class UpdateDomainAssociationResponse private constructor(builder: Builder) {
/**
* Describes a domain association, which associates a custom domain with an Amplify app.
*/
val domainAssociation: aws.sdk.kotlin.services.amplify.model.DomainAssociation? = builder.domainAssociation
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplify.model.UpdateDomainAssociationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDomainAssociationResponse(")
append("domainAssociation=$domainAssociation)")
}
override fun hashCode(): kotlin.Int {
var result = domainAssociation?.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 UpdateDomainAssociationResponse
if (domainAssociation != other.domainAssociation) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplify.model.UpdateDomainAssociationResponse = Builder(this).apply(block).build()
class Builder {
/**
* Describes a domain association, which associates a custom domain with an Amplify app.
*/
var domainAssociation: aws.sdk.kotlin.services.amplify.model.DomainAssociation? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplify.model.UpdateDomainAssociationResponse) : this() {
this.domainAssociation = x.domainAssociation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplify.model.UpdateDomainAssociationResponse = UpdateDomainAssociationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.amplify.model.DomainAssociation] inside the given [block]
*/
fun domainAssociation(block: aws.sdk.kotlin.services.amplify.model.DomainAssociation.Builder.() -> kotlin.Unit) {
this.domainAssociation = aws.sdk.kotlin.services.amplify.model.DomainAssociation.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy