commonMain.aws.sdk.kotlin.services.deadline.model.SearchStepsResponse.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SearchStepsResponse private constructor(builder: Builder) {
/**
* The next incremental starting point after the defined `itemOffset`.
*/
public val nextItemOffset: kotlin.Int? = builder.nextItemOffset
/**
* The steps in the search.
*/
public val steps: List = requireNotNull(builder.steps) { "A non-null value must be provided for steps" }
/**
* The total number of results in the search.
*/
public val totalResults: kotlin.Int = requireNotNull(builder.totalResults) { "A non-null value must be provided for totalResults" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.SearchStepsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchStepsResponse(")
append("nextItemOffset=$nextItemOffset,")
append("steps=$steps,")
append("totalResults=$totalResults")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextItemOffset ?: 0
result = 31 * result + (steps.hashCode())
result = 31 * result + (totalResults)
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 SearchStepsResponse
if (nextItemOffset != other.nextItemOffset) return false
if (steps != other.steps) return false
if (totalResults != other.totalResults) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.SearchStepsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The next incremental starting point after the defined `itemOffset`.
*/
public var nextItemOffset: kotlin.Int? = null
/**
* The steps in the search.
*/
public var steps: List? = null
/**
* The total number of results in the search.
*/
public var totalResults: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.SearchStepsResponse) : this() {
this.nextItemOffset = x.nextItemOffset
this.steps = x.steps
this.totalResults = x.totalResults
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.SearchStepsResponse = SearchStepsResponse(this)
internal fun correctErrors(): Builder {
if (steps == null) steps = emptyList()
if (totalResults == null) totalResults = 0
return this
}
}
}