
commonMain.aws.sdk.kotlin.services.omics.model.CreateRunGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
public class CreateRunGroupRequest private constructor(builder: Builder) {
/**
* The maximum number of CPUs to use in the group.
*/
public val maxCpus: kotlin.Int? = builder.maxCpus
/**
* A maximum run time for the group in minutes.
*/
public val maxDuration: kotlin.Int? = builder.maxDuration
/**
* The maximum GPUs that can be used by a run group.
*/
public val maxGpus: kotlin.Int? = builder.maxGpus
/**
* The maximum number of concurrent runs for the group.
*/
public val maxRuns: kotlin.Int? = builder.maxRuns
/**
* A name for the group.
*/
public val name: kotlin.String? = builder.name
/**
* To ensure that requests don't run multiple times, specify a unique ID for each request.
*/
public val requestId: kotlin.String? = builder.requestId
/**
* Tags for the group.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.CreateRunGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateRunGroupRequest(")
append("maxCpus=$maxCpus,")
append("maxDuration=$maxDuration,")
append("maxGpus=$maxGpus,")
append("maxRuns=$maxRuns,")
append("name=$name,")
append("requestId=$requestId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxCpus ?: 0
result = 31 * result + (maxDuration ?: 0)
result = 31 * result + (maxGpus ?: 0)
result = 31 * result + (maxRuns ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (requestId?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateRunGroupRequest
if (maxCpus != other.maxCpus) return false
if (maxDuration != other.maxDuration) return false
if (maxGpus != other.maxGpus) return false
if (maxRuns != other.maxRuns) return false
if (name != other.name) return false
if (requestId != other.requestId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.CreateRunGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum number of CPUs to use in the group.
*/
public var maxCpus: kotlin.Int? = null
/**
* A maximum run time for the group in minutes.
*/
public var maxDuration: kotlin.Int? = null
/**
* The maximum GPUs that can be used by a run group.
*/
public var maxGpus: kotlin.Int? = null
/**
* The maximum number of concurrent runs for the group.
*/
public var maxRuns: kotlin.Int? = null
/**
* A name for the group.
*/
public var name: kotlin.String? = null
/**
* To ensure that requests don't run multiple times, specify a unique ID for each request.
*/
public var requestId: kotlin.String? = null
/**
* Tags for the group.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateRunGroupRequest) : this() {
this.maxCpus = x.maxCpus
this.maxDuration = x.maxDuration
this.maxGpus = x.maxGpus
this.maxRuns = x.maxRuns
this.name = x.name
this.requestId = x.requestId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.CreateRunGroupRequest = CreateRunGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy