commonMain.aws.sdk.kotlin.services.deadline.model.QueueEnvironmentSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The summary of a queue environment.
*/
public class QueueEnvironmentSummary private constructor(builder: Builder) {
/**
* The name of the queue environment.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The queue environment's priority.
*/
public val priority: kotlin.Int = requireNotNull(builder.priority) { "A non-null value must be provided for priority" }
/**
* The queue environment ID.
*/
public val queueEnvironmentId: kotlin.String = requireNotNull(builder.queueEnvironmentId) { "A non-null value must be provided for queueEnvironmentId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.QueueEnvironmentSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueueEnvironmentSummary(")
append("name=$name,")
append("priority=$priority,")
append("queueEnvironmentId=$queueEnvironmentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name.hashCode()
result = 31 * result + (priority)
result = 31 * result + (queueEnvironmentId.hashCode())
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 QueueEnvironmentSummary
if (name != other.name) return false
if (priority != other.priority) return false
if (queueEnvironmentId != other.queueEnvironmentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.QueueEnvironmentSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the queue environment.
*/
public var name: kotlin.String? = null
/**
* The queue environment's priority.
*/
public var priority: kotlin.Int? = null
/**
* The queue environment ID.
*/
public var queueEnvironmentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.QueueEnvironmentSummary) : this() {
this.name = x.name
this.priority = x.priority
this.queueEnvironmentId = x.queueEnvironmentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.QueueEnvironmentSummary = QueueEnvironmentSummary(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
if (priority == null) priority = 0
if (queueEnvironmentId == null) queueEnvironmentId = ""
return this
}
}
}