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

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

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

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



/**
 * The output from the DescribeEndpoint operation.
 */
public class DescribeEndpointResponse private constructor(builder: Builder) {
    /**
     * The endpoint. The format of the endpoint is as follows: *identifier*.iot.*region*.amazonaws.com.
     */
    public val endpointAddress: kotlin.String? = builder.endpointAddress

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeEndpointResponse(")
        append("endpointAddress=$endpointAddress")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = endpointAddress?.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 DescribeEndpointResponse

        if (endpointAddress != other.endpointAddress) return false

        return true
    }

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

    public class Builder {
        /**
         * The endpoint. The format of the endpoint is as follows: *identifier*.iot.*region*.amazonaws.com.
         */
        public var endpointAddress: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeEndpointResponse) : this() {
            this.endpointAddress = x.endpointAddress
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy