
commonMain.aws.sdk.kotlin.services.iot.model.DescribeJobExecutionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class DescribeJobExecutionRequest private constructor(builder: Builder) {
/**
* A string (consisting of the digits "0" through "9" which is used to specify a particular job execution on a particular device.
*/
public val executionNumber: kotlin.Long? = builder.executionNumber
/**
* The unique identifier you assigned to this job when it was created.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The name of the thing on which the job execution is running.
*/
public val thingName: kotlin.String? = builder.thingName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DescribeJobExecutionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeJobExecutionRequest(")
append("executionNumber=$executionNumber,")
append("jobId=$jobId,")
append("thingName=$thingName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = executionNumber?.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 (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.iot.model.DescribeJobExecutionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A string (consisting of the digits "0" through "9" which is used to specify a particular job execution on a particular device.
*/
public var executionNumber: kotlin.Long? = null
/**
* The unique identifier you assigned to this job when it was created.
*/
public var jobId: kotlin.String? = null
/**
* The name of the thing on which the job execution is running.
*/
public var thingName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeJobExecutionRequest) : this() {
this.executionNumber = x.executionNumber
this.jobId = x.jobId
this.thingName = x.thingName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeJobExecutionRequest = DescribeJobExecutionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy