commonMain.aws.sdk.kotlin.services.deadline.model.WorkerSearchSummary.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The details of a worker search.
*/
public class WorkerSearchSummary private constructor(builder: Builder) {
/**
* The date and time the resource was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The user or system that created this resource.
*/
public val createdBy: kotlin.String? = builder.createdBy
/**
* The fleet ID.
*/
public val fleetId: kotlin.String? = builder.fleetId
/**
* Provides the Amazon EC2 instance properties of the worker host.
*/
public val hostProperties: aws.sdk.kotlin.services.deadline.model.HostPropertiesResponse? = builder.hostProperties
/**
* The status of the worker search.
*/
public val status: aws.sdk.kotlin.services.deadline.model.WorkerStatus? = builder.status
/**
* The date and time the resource was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* The user or system that updated this resource.
*/
public val updatedBy: kotlin.String? = builder.updatedBy
/**
* The worker ID.
*/
public val workerId: kotlin.String? = builder.workerId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.WorkerSearchSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkerSearchSummary(")
append("createdAt=$createdAt,")
append("createdBy=$createdBy,")
append("fleetId=$fleetId,")
append("hostProperties=$hostProperties,")
append("status=$status,")
append("updatedAt=$updatedAt,")
append("updatedBy=$updatedBy,")
append("workerId=$workerId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (createdBy?.hashCode() ?: 0)
result = 31 * result + (fleetId?.hashCode() ?: 0)
result = 31 * result + (hostProperties?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.hashCode() ?: 0)
result = 31 * result + (updatedBy?.hashCode() ?: 0)
result = 31 * result + (workerId?.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 WorkerSearchSummary
if (createdAt != other.createdAt) return false
if (createdBy != other.createdBy) return false
if (fleetId != other.fleetId) return false
if (hostProperties != other.hostProperties) return false
if (status != other.status) return false
if (updatedAt != other.updatedAt) return false
if (updatedBy != other.updatedBy) return false
if (workerId != other.workerId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.WorkerSearchSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time the resource was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user or system that created this resource.
*/
public var createdBy: kotlin.String? = null
/**
* The fleet ID.
*/
public var fleetId: kotlin.String? = null
/**
* Provides the Amazon EC2 instance properties of the worker host.
*/
public var hostProperties: aws.sdk.kotlin.services.deadline.model.HostPropertiesResponse? = null
/**
* The status of the worker search.
*/
public var status: aws.sdk.kotlin.services.deadline.model.WorkerStatus? = null
/**
* The date and time the resource was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user or system that updated this resource.
*/
public var updatedBy: kotlin.String? = null
/**
* The worker ID.
*/
public var workerId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.WorkerSearchSummary) : this() {
this.createdAt = x.createdAt
this.createdBy = x.createdBy
this.fleetId = x.fleetId
this.hostProperties = x.hostProperties
this.status = x.status
this.updatedAt = x.updatedAt
this.updatedBy = x.updatedBy
this.workerId = x.workerId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.WorkerSearchSummary = WorkerSearchSummary(this)
/**
* construct an [aws.sdk.kotlin.services.deadline.model.HostPropertiesResponse] inside the given [block]
*/
public fun hostProperties(block: aws.sdk.kotlin.services.deadline.model.HostPropertiesResponse.Builder.() -> kotlin.Unit) {
this.hostProperties = aws.sdk.kotlin.services.deadline.model.HostPropertiesResponse.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}