All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iot.model.DescribeDomainConfigurationResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model

import aws.smithy.kotlin.runtime.time.Instant

public class DescribeDomainConfigurationResponse private constructor(builder: Builder) {
    /**
     * An object that specifies the authorization service for a domain.
     */
    public val authorizerConfig: aws.sdk.kotlin.services.iot.model.AuthorizerConfig? = builder.authorizerConfig
    /**
     * The ARN of the domain configuration.
     */
    public val domainConfigurationArn: kotlin.String? = builder.domainConfigurationArn
    /**
     * The name of the domain configuration.
     */
    public val domainConfigurationName: kotlin.String? = builder.domainConfigurationName
    /**
     * A Boolean value that specifies the current state of the domain configuration.
     */
    public val domainConfigurationStatus: aws.sdk.kotlin.services.iot.model.DomainConfigurationStatus? = builder.domainConfigurationStatus
    /**
     * The name of the domain.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The type of the domain.
     */
    public val domainType: aws.sdk.kotlin.services.iot.model.DomainType? = builder.domainType
    /**
     * The date and time the domain configuration's status was last changed.
     */
    public val lastStatusChangeDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastStatusChangeDate
    /**
     * A list containing summary information about the server certificate included in the domain configuration.
     */
    public val serverCertificates: List? = builder.serverCertificates
    /**
     * The type of service delivered by the endpoint.
     */
    public val serviceType: aws.sdk.kotlin.services.iot.model.ServiceType? = builder.serviceType
    /**
     * An object that specifies the TLS configuration for a domain.
     */
    public val tlsConfig: aws.sdk.kotlin.services.iot.model.TlsConfig? = builder.tlsConfig

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DescribeDomainConfigurationResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeDomainConfigurationResponse(")
        append("authorizerConfig=$authorizerConfig,")
        append("domainConfigurationArn=$domainConfigurationArn,")
        append("domainConfigurationName=$domainConfigurationName,")
        append("domainConfigurationStatus=$domainConfigurationStatus,")
        append("domainName=$domainName,")
        append("domainType=$domainType,")
        append("lastStatusChangeDate=$lastStatusChangeDate,")
        append("serverCertificates=$serverCertificates,")
        append("serviceType=$serviceType,")
        append("tlsConfig=$tlsConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = authorizerConfig?.hashCode() ?: 0
        result = 31 * result + (domainConfigurationArn?.hashCode() ?: 0)
        result = 31 * result + (domainConfigurationName?.hashCode() ?: 0)
        result = 31 * result + (domainConfigurationStatus?.hashCode() ?: 0)
        result = 31 * result + (domainName?.hashCode() ?: 0)
        result = 31 * result + (domainType?.hashCode() ?: 0)
        result = 31 * result + (lastStatusChangeDate?.hashCode() ?: 0)
        result = 31 * result + (serverCertificates?.hashCode() ?: 0)
        result = 31 * result + (serviceType?.hashCode() ?: 0)
        result = 31 * result + (tlsConfig?.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 DescribeDomainConfigurationResponse

        if (authorizerConfig != other.authorizerConfig) return false
        if (domainConfigurationArn != other.domainConfigurationArn) return false
        if (domainConfigurationName != other.domainConfigurationName) return false
        if (domainConfigurationStatus != other.domainConfigurationStatus) return false
        if (domainName != other.domainName) return false
        if (domainType != other.domainType) return false
        if (lastStatusChangeDate != other.lastStatusChangeDate) return false
        if (serverCertificates != other.serverCertificates) return false
        if (serviceType != other.serviceType) return false
        if (tlsConfig != other.tlsConfig) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DescribeDomainConfigurationResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * An object that specifies the authorization service for a domain.
         */
        public var authorizerConfig: aws.sdk.kotlin.services.iot.model.AuthorizerConfig? = null
        /**
         * The ARN of the domain configuration.
         */
        public var domainConfigurationArn: kotlin.String? = null
        /**
         * The name of the domain configuration.
         */
        public var domainConfigurationName: kotlin.String? = null
        /**
         * A Boolean value that specifies the current state of the domain configuration.
         */
        public var domainConfigurationStatus: aws.sdk.kotlin.services.iot.model.DomainConfigurationStatus? = null
        /**
         * The name of the domain.
         */
        public var domainName: kotlin.String? = null
        /**
         * The type of the domain.
         */
        public var domainType: aws.sdk.kotlin.services.iot.model.DomainType? = null
        /**
         * The date and time the domain configuration's status was last changed.
         */
        public var lastStatusChangeDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A list containing summary information about the server certificate included in the domain configuration.
         */
        public var serverCertificates: List? = null
        /**
         * The type of service delivered by the endpoint.
         */
        public var serviceType: aws.sdk.kotlin.services.iot.model.ServiceType? = null
        /**
         * An object that specifies the TLS configuration for a domain.
         */
        public var tlsConfig: aws.sdk.kotlin.services.iot.model.TlsConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeDomainConfigurationResponse) : this() {
            this.authorizerConfig = x.authorizerConfig
            this.domainConfigurationArn = x.domainConfigurationArn
            this.domainConfigurationName = x.domainConfigurationName
            this.domainConfigurationStatus = x.domainConfigurationStatus
            this.domainName = x.domainName
            this.domainType = x.domainType
            this.lastStatusChangeDate = x.lastStatusChangeDate
            this.serverCertificates = x.serverCertificates
            this.serviceType = x.serviceType
            this.tlsConfig = x.tlsConfig
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeDomainConfigurationResponse = DescribeDomainConfigurationResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.AuthorizerConfig] inside the given [block]
         */
        public fun authorizerConfig(block: aws.sdk.kotlin.services.iot.model.AuthorizerConfig.Builder.() -> kotlin.Unit) {
            this.authorizerConfig = aws.sdk.kotlin.services.iot.model.AuthorizerConfig.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.TlsConfig] inside the given [block]
         */
        public fun tlsConfig(block: aws.sdk.kotlin.services.iot.model.TlsConfig.Builder.() -> kotlin.Unit) {
            this.tlsConfig = aws.sdk.kotlin.services.iot.model.TlsConfig.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy