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

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



public class CancelJobResponse private constructor(builder: Builder) {
    /**
     * A short text description of the job.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The job ARN.
     */
    public val jobArn: kotlin.String? = builder.jobArn
    /**
     * The unique identifier you assigned to this job when it was created.
     */
    public val jobId: kotlin.String? = builder.jobId

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

    override fun toString(): kotlin.String = buildString {
        append("CancelJobResponse(")
        append("description=$description,")
        append("jobArn=$jobArn,")
        append("jobId=$jobId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (jobArn?.hashCode() ?: 0)
        result = 31 * result + (jobId?.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 CancelJobResponse

        if (description != other.description) return false
        if (jobArn != other.jobArn) return false
        if (jobId != other.jobId) return false

        return true
    }

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

    public class Builder {
        /**
         * A short text description of the job.
         */
        public var description: kotlin.String? = null
        /**
         * The job ARN.
         */
        public var jobArn: kotlin.String? = null
        /**
         * The unique identifier you assigned to this job when it was created.
         */
        public var jobId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CancelJobResponse) : this() {
            this.description = x.description
            this.jobArn = x.jobArn
            this.jobId = x.jobId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy