commonMain.aws.sdk.kotlin.services.iot.model.CreateJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreateJobResponse private constructor(builder: Builder) {
/**
* The job description.
*/
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.
*/
public val jobId: kotlin.String? = builder.jobId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CreateJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateJobResponse(")
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 CreateJobResponse
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.CreateJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The job description.
*/
public var description: kotlin.String? = null
/**
* The job ARN.
*/
public var jobArn: kotlin.String? = null
/**
* The unique identifier you assigned to this job.
*/
public var jobId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateJobResponse) : this() {
this.description = x.description
this.jobArn = x.jobArn
this.jobId = x.jobId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreateJobResponse = CreateJobResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy