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

commonMain.aws.sdk.kotlin.services.iotjobsdataplane.model.DescribeJobExecutionRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iotjobsdataplane.model



public class DescribeJobExecutionRequest private constructor(builder: Builder) {
    /**
     * Optional. A number that identifies a particular job execution on a particular device. If not specified, the latest job execution is returned.
     */
    public val executionNumber: kotlin.Long? = builder.executionNumber
    /**
     * Optional. When set to true, the response contains the job document. The default is false.
     */
    public val includeJobDocument: kotlin.Boolean? = builder.includeJobDocument
    /**
     * The unique identifier assigned to this job when it was created.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The thing name associated with the device the job execution is running on.
     */
    public val thingName: kotlin.String? = builder.thingName

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeJobExecutionRequest(")
        append("executionNumber=$executionNumber,")
        append("includeJobDocument=$includeJobDocument,")
        append("jobId=$jobId,")
        append("thingName=$thingName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = executionNumber?.hashCode() ?: 0
        result = 31 * result + (includeJobDocument?.hashCode() ?: 0)
        result = 31 * result + (jobId?.hashCode() ?: 0)
        result = 31 * result + (thingName?.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 DescribeJobExecutionRequest

        if (executionNumber != other.executionNumber) return false
        if (includeJobDocument != other.includeJobDocument) return false
        if (jobId != other.jobId) return false
        if (thingName != other.thingName) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional. A number that identifies a particular job execution on a particular device. If not specified, the latest job execution is returned.
         */
        public var executionNumber: kotlin.Long? = null
        /**
         * Optional. When set to true, the response contains the job document. The default is false.
         */
        public var includeJobDocument: kotlin.Boolean? = null
        /**
         * The unique identifier assigned to this job when it was created.
         */
        public var jobId: kotlin.String? = null
        /**
         * The thing name associated with the device the job execution is running on.
         */
        public var thingName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotjobsdataplane.model.DescribeJobExecutionRequest) : this() {
            this.executionNumber = x.executionNumber
            this.includeJobDocument = x.includeJobDocument
            this.jobId = x.jobId
            this.thingName = x.thingName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy