commonMain.aws.sdk.kotlin.services.deadline.model.ParameterSpace.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
/**
* The details of a search for two or more step parameters.
*/
public class ParameterSpace private constructor(builder: Builder) {
/**
* The combination expression to use in the search.
*/
public val combination: kotlin.String? = builder.combination
/**
* The parameters to search for.
*/
public val parameters: List = requireNotNull(builder.parameters) { "A non-null value must be provided for parameters" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.ParameterSpace = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ParameterSpace(")
append("combination=$combination,")
append("parameters=$parameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = combination?.hashCode() ?: 0
result = 31 * result + (parameters.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 ParameterSpace
if (combination != other.combination) return false
if (parameters != other.parameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.ParameterSpace = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The combination expression to use in the search.
*/
public var combination: kotlin.String? = null
/**
* The parameters to search for.
*/
public var parameters: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.ParameterSpace) : this() {
this.combination = x.combination
this.parameters = x.parameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.ParameterSpace = ParameterSpace(this)
internal fun correctErrors(): Builder {
if (parameters == null) parameters = emptyList()
return this
}
}
}