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

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

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

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



public class CreateProvisioningTemplateVersionResponse private constructor(builder: Builder) {
    /**
     * True if the provisioning template version is the default version, otherwise false.
     */
    public val isDefaultVersion: kotlin.Boolean = builder.isDefaultVersion
    /**
     * The ARN that identifies the provisioning template.
     */
    public val templateArn: kotlin.String? = builder.templateArn
    /**
     * The name of the provisioning template.
     */
    public val templateName: kotlin.String? = builder.templateName
    /**
     * The version of the provisioning template.
     */
    public val versionId: kotlin.Int? = builder.versionId

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

    override fun toString(): kotlin.String = buildString {
        append("CreateProvisioningTemplateVersionResponse(")
        append("isDefaultVersion=$isDefaultVersion,")
        append("templateArn=$templateArn,")
        append("templateName=$templateName,")
        append("versionId=$versionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = isDefaultVersion.hashCode()
        result = 31 * result + (templateArn?.hashCode() ?: 0)
        result = 31 * result + (templateName?.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 CreateProvisioningTemplateVersionResponse

        if (isDefaultVersion != other.isDefaultVersion) return false
        if (templateArn != other.templateArn) return false
        if (templateName != other.templateName) return false
        if (versionId != other.versionId) return false

        return true
    }

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

    public class Builder {
        /**
         * True if the provisioning template version is the default version, otherwise false.
         */
        public var isDefaultVersion: kotlin.Boolean = false
        /**
         * The ARN that identifies the provisioning template.
         */
        public var templateArn: kotlin.String? = null
        /**
         * The name of the provisioning template.
         */
        public var templateName: kotlin.String? = null
        /**
         * The version of the provisioning template.
         */
        public var versionId: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateProvisioningTemplateVersionResponse) : this() {
            this.isDefaultVersion = x.isDefaultVersion
            this.templateArn = x.templateArn
            this.templateName = x.templateName
            this.versionId = x.versionId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy