commonMain.aws.sdk.kotlin.services.deadline.model.UpdateQueueEnvironmentRequest.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
public class UpdateQueueEnvironmentRequest private constructor(builder: Builder) {
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The farm ID of the queue environment to update.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The priority to update.
*/
public val priority: kotlin.Int? = builder.priority
/**
* The queue environment ID to update.
*/
public val queueEnvironmentId: kotlin.String? = builder.queueEnvironmentId
/**
* The queue ID of the queue environment to update.
*/
public val queueId: kotlin.String? = builder.queueId
/**
* The template to update.
*/
public val template: kotlin.String? = builder.template
/**
* The template type to update.
*/
public val templateType: aws.sdk.kotlin.services.deadline.model.EnvironmentTemplateType? = builder.templateType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.UpdateQueueEnvironmentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateQueueEnvironmentRequest(")
append("clientToken=$clientToken,")
append("farmId=$farmId,")
append("priority=$priority,")
append("queueEnvironmentId=$queueEnvironmentId,")
append("queueId=$queueId,")
append("template=*** Sensitive Data Redacted ***,")
append("templateType=$templateType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (farmId?.hashCode() ?: 0)
result = 31 * result + (priority ?: 0)
result = 31 * result + (queueEnvironmentId?.hashCode() ?: 0)
result = 31 * result + (queueId?.hashCode() ?: 0)
result = 31 * result + (template?.hashCode() ?: 0)
result = 31 * result + (templateType?.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 UpdateQueueEnvironmentRequest
if (clientToken != other.clientToken) return false
if (farmId != other.farmId) return false
if (priority != other.priority) return false
if (queueEnvironmentId != other.queueEnvironmentId) return false
if (queueId != other.queueId) return false
if (template != other.template) return false
if (templateType != other.templateType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.UpdateQueueEnvironmentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public var clientToken: kotlin.String? = null
/**
* The farm ID of the queue environment to update.
*/
public var farmId: kotlin.String? = null
/**
* The priority to update.
*/
public var priority: kotlin.Int? = null
/**
* The queue environment ID to update.
*/
public var queueEnvironmentId: kotlin.String? = null
/**
* The queue ID of the queue environment to update.
*/
public var queueId: kotlin.String? = null
/**
* The template to update.
*/
public var template: kotlin.String? = null
/**
* The template type to update.
*/
public var templateType: aws.sdk.kotlin.services.deadline.model.EnvironmentTemplateType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.UpdateQueueEnvironmentRequest) : this() {
this.clientToken = x.clientToken
this.farmId = x.farmId
this.priority = x.priority
this.queueEnvironmentId = x.queueEnvironmentId
this.queueId = x.queueId
this.template = x.template
this.templateType = x.templateType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.UpdateQueueEnvironmentRequest = UpdateQueueEnvironmentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}