
commonMain.aws.sdk.kotlin.services.iotjobsdataplane.model.StartNextPendingJobExecutionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotjobsdataplane.model
public class StartNextPendingJobExecutionRequest private constructor(builder: Builder) {
/**
* A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
*/
public val statusDetails: Map? = builder.statusDetails
/**
* Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling `UpdateJobExecution`, setting the status to `IN_PROGRESS` and specifying a new timeout value in field `stepTimeoutInMinutes`) the job execution status will be automatically set to `TIMED_OUT`. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (`CreateJob` using field `timeoutConfig`).
*/
public val stepTimeoutInMinutes: kotlin.Long? = builder.stepTimeoutInMinutes
/**
* The name of the thing associated with the device.
*/
public val thingName: kotlin.String? = builder.thingName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotjobsdataplane.model.StartNextPendingJobExecutionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartNextPendingJobExecutionRequest(")
append("statusDetails=$statusDetails,")
append("stepTimeoutInMinutes=$stepTimeoutInMinutes,")
append("thingName=$thingName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = statusDetails?.hashCode() ?: 0
result = 31 * result + (stepTimeoutInMinutes?.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 StartNextPendingJobExecutionRequest
if (statusDetails != other.statusDetails) return false
if (stepTimeoutInMinutes != other.stepTimeoutInMinutes) return false
if (thingName != other.thingName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotjobsdataplane.model.StartNextPendingJobExecutionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
*/
public var statusDetails: Map? = null
/**
* Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling `UpdateJobExecution`, setting the status to `IN_PROGRESS` and specifying a new timeout value in field `stepTimeoutInMinutes`) the job execution status will be automatically set to `TIMED_OUT`. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (`CreateJob` using field `timeoutConfig`).
*/
public var stepTimeoutInMinutes: kotlin.Long? = null
/**
* The name of the thing associated with the device.
*/
public var thingName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotjobsdataplane.model.StartNextPendingJobExecutionRequest) : this() {
this.statusDetails = x.statusDetails
this.stepTimeoutInMinutes = x.stepTimeoutInMinutes
this.thingName = x.thingName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotjobsdataplane.model.StartNextPendingJobExecutionRequest = StartNextPendingJobExecutionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy