commonMain.aws.sdk.kotlin.services.deadline.model.UpdateFarmRequest.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 UpdateFarmRequest private constructor(builder: Builder) {
/**
* The description of the farm to update.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public val description: kotlin.String? = builder.description
/**
* The display name of the farm to update.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The farm ID to update.
*/
public val farmId: kotlin.String? = builder.farmId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.UpdateFarmRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFarmRequest(")
append("description=*** Sensitive Data Redacted ***,")
append("displayName=$displayName,")
append("farmId=$farmId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (farmId?.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 UpdateFarmRequest
if (description != other.description) return false
if (displayName != other.displayName) return false
if (farmId != other.farmId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.UpdateFarmRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the farm to update.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public var description: kotlin.String? = null
/**
* The display name of the farm to update.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public var displayName: kotlin.String? = null
/**
* The farm ID to update.
*/
public var farmId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.UpdateFarmRequest) : this() {
this.description = x.description
this.displayName = x.displayName
this.farmId = x.farmId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.UpdateFarmRequest = UpdateFarmRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}