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

commonMain.aws.sdk.kotlin.services.iotwireless.model.GetServiceEndpointResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetServiceEndpointResponse private constructor(builder: Builder) {
    /**
     * The Root CA of the server trust certificate.
     */
    public val serverTrust: kotlin.String? = builder.serverTrust
    /**
     * The service endpoint value.
     */
    public val serviceEndpoint: kotlin.String? = builder.serviceEndpoint
    /**
     * The endpoint's service type.
     */
    public val serviceType: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayServiceType? = builder.serviceType

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

    override fun toString(): kotlin.String = buildString {
        append("GetServiceEndpointResponse(")
        append("serverTrust=$serverTrust,")
        append("serviceEndpoint=$serviceEndpoint,")
        append("serviceType=$serviceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = serverTrust?.hashCode() ?: 0
        result = 31 * result + (serviceEndpoint?.hashCode() ?: 0)
        result = 31 * result + (serviceType?.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 GetServiceEndpointResponse

        if (serverTrust != other.serverTrust) return false
        if (serviceEndpoint != other.serviceEndpoint) return false
        if (serviceType != other.serviceType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Root CA of the server trust certificate.
         */
        public var serverTrust: kotlin.String? = null
        /**
         * The service endpoint value.
         */
        public var serviceEndpoint: kotlin.String? = null
        /**
         * The endpoint's service type.
         */
        public var serviceType: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayServiceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetServiceEndpointResponse) : this() {
            this.serverTrust = x.serverTrust
            this.serviceEndpoint = x.serviceEndpoint
            this.serviceType = x.serviceType
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy