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

commonMain.aws.sdk.kotlin.services.greengrass.model.CreateSoftwareUpdateJobResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.greengrass.model



public class CreateSoftwareUpdateJobResponse private constructor(builder: Builder) {
    /**
     * The IoT Job ARN corresponding to this update.
     */
    public val iotJobArn: kotlin.String? = builder.iotJobArn
    /**
     * The IoT Job Id corresponding to this update.
     */
    public val iotJobId: kotlin.String? = builder.iotJobId
    /**
     * The software version installed on the device or devices after the update.
     */
    public val platformSoftwareVersion: kotlin.String? = builder.platformSoftwareVersion

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

    override fun toString(): kotlin.String = buildString {
        append("CreateSoftwareUpdateJobResponse(")
        append("iotJobArn=$iotJobArn,")
        append("iotJobId=$iotJobId,")
        append("platformSoftwareVersion=$platformSoftwareVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = iotJobArn?.hashCode() ?: 0
        result = 31 * result + (iotJobId?.hashCode() ?: 0)
        result = 31 * result + (platformSoftwareVersion?.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 CreateSoftwareUpdateJobResponse

        if (iotJobArn != other.iotJobArn) return false
        if (iotJobId != other.iotJobId) return false
        if (platformSoftwareVersion != other.platformSoftwareVersion) return false

        return true
    }

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

    public class Builder {
        /**
         * The IoT Job ARN corresponding to this update.
         */
        public var iotJobArn: kotlin.String? = null
        /**
         * The IoT Job Id corresponding to this update.
         */
        public var iotJobId: kotlin.String? = null
        /**
         * The software version installed on the device or devices after the update.
         */
        public var platformSoftwareVersion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.CreateSoftwareUpdateJobResponse) : this() {
            this.iotJobArn = x.iotJobArn
            this.iotJobId = x.iotJobId
            this.platformSoftwareVersion = x.platformSoftwareVersion
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy