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

commonMain.aws.sdk.kotlin.services.iot.model.DescribeEndpointRequest.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.iot.model



/**
 * The input for the DescribeEndpoint operation.
 */
public class DescribeEndpointRequest private constructor(builder: Builder) {
    /**
     * The endpoint type. Valid endpoint types include:
     * + `iot:Data` - Returns a VeriSign signed data endpoint.
     *
     * + `iot:Data-ATS` - Returns an ATS signed data endpoint.
     *
     * + `iot:CredentialProvider` - Returns an IoT credentials provider API endpoint.
     *
     * + `iot:Jobs` - Returns an IoT device management Jobs API endpoint.
     *
     * We strongly recommend that customers use the newer `iot:Data-ATS` endpoint type to avoid issues related to the widespread distrust of Symantec certificate authorities.
     */
    public val endpointType: kotlin.String? = builder.endpointType

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

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

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

        if (endpointType != other.endpointType) return false

        return true
    }

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

    public class Builder {
        /**
         * The endpoint type. Valid endpoint types include:
         * + `iot:Data` - Returns a VeriSign signed data endpoint.
         *
         * + `iot:Data-ATS` - Returns an ATS signed data endpoint.
         *
         * + `iot:CredentialProvider` - Returns an IoT credentials provider API endpoint.
         *
         * + `iot:Jobs` - Returns an IoT device management Jobs API endpoint.
         *
         * We strongly recommend that customers use the newer `iot:Data-ATS` endpoint type to avoid issues related to the widespread distrust of Symantec certificate authorities.
         */
        public var endpointType: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy