commonMain.aws.sdk.kotlin.services.appsync.model.GetDomainNameResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetDomainNameResponse private constructor(builder: Builder) {
/**
* The configuration for the `DomainName`.
*/
public val domainNameConfig: aws.sdk.kotlin.services.appsync.model.DomainNameConfig? = builder.domainNameConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.GetDomainNameResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDomainNameResponse(")
append("domainNameConfig=$domainNameConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainNameConfig?.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 GetDomainNameResponse
if (domainNameConfig != other.domainNameConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.GetDomainNameResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration for the `DomainName`.
*/
public var domainNameConfig: aws.sdk.kotlin.services.appsync.model.DomainNameConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.GetDomainNameResponse) : this() {
this.domainNameConfig = x.domainNameConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.GetDomainNameResponse = GetDomainNameResponse(this)
/**
* construct an [aws.sdk.kotlin.services.appsync.model.DomainNameConfig] inside the given [block]
*/
public fun domainNameConfig(block: aws.sdk.kotlin.services.appsync.model.DomainNameConfig.Builder.() -> kotlin.Unit) {
this.domainNameConfig = aws.sdk.kotlin.services.appsync.model.DomainNameConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}