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

commonMain.aws.sdk.kotlin.services.iot.model.DescribeProvisioningTemplateVersionResponse.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 DescribeProvisioningTemplateVersionResponse private constructor(builder: Builder) {
    /**
     * The date when the provisioning template version was created.
     */
    public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
    /**
     * True if the provisioning template version is the default version.
     */
    public val isDefaultVersion: kotlin.Boolean = builder.isDefaultVersion
    /**
     * The JSON formatted contents of the provisioning template version.
     */
    public val templateBody: kotlin.String? = builder.templateBody
    /**
     * The provisioning template version ID.
     */
    public val versionId: kotlin.Int? = builder.versionId

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeProvisioningTemplateVersionResponse(")
        append("creationDate=$creationDate,")
        append("isDefaultVersion=$isDefaultVersion,")
        append("templateBody=$templateBody,")
        append("versionId=$versionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationDate?.hashCode() ?: 0
        result = 31 * result + (isDefaultVersion.hashCode())
        result = 31 * result + (templateBody?.hashCode() ?: 0)
        result = 31 * result + (versionId ?: 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 DescribeProvisioningTemplateVersionResponse

        if (creationDate != other.creationDate) return false
        if (isDefaultVersion != other.isDefaultVersion) return false
        if (templateBody != other.templateBody) return false
        if (versionId != other.versionId) return false

        return true
    }

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

    public class Builder {
        /**
         * The date when the provisioning template version was created.
         */
        public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * True if the provisioning template version is the default version.
         */
        public var isDefaultVersion: kotlin.Boolean = false
        /**
         * The JSON formatted contents of the provisioning template version.
         */
        public var templateBody: kotlin.String? = null
        /**
         * The provisioning template version ID.
         */
        public var versionId: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeProvisioningTemplateVersionResponse) : this() {
            this.creationDate = x.creationDate
            this.isDefaultVersion = x.isDefaultVersion
            this.templateBody = x.templateBody
            this.versionId = x.versionId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy