
commonMain.aws.sdk.kotlin.services.rekognition.model.StartProjectVersionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartProjectVersionRequest private constructor(builder: Builder) {
/**
* The maximum number of inference units to use for auto-scaling the model. If you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale the model.
*/
public val maxInferenceUnits: kotlin.Int? = builder.maxInferenceUnits
/**
* The minimum number of inference units to use. A single inference unit represents 1 hour of processing.
*
* Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
*/
public val minInferenceUnits: kotlin.Int? = builder.minInferenceUnits
/**
* The Amazon Resource Name(ARN) of the model version that you want to start.
*/
public val projectVersionArn: kotlin.String? = builder.projectVersionArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.StartProjectVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartProjectVersionRequest(")
append("maxInferenceUnits=$maxInferenceUnits,")
append("minInferenceUnits=$minInferenceUnits,")
append("projectVersionArn=$projectVersionArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxInferenceUnits ?: 0
result = 31 * result + (minInferenceUnits ?: 0)
result = 31 * result + (projectVersionArn?.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 StartProjectVersionRequest
if (maxInferenceUnits != other.maxInferenceUnits) return false
if (minInferenceUnits != other.minInferenceUnits) return false
if (projectVersionArn != other.projectVersionArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.StartProjectVersionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of inference units to use for auto-scaling the model. If you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale the model.
*/
public var maxInferenceUnits: kotlin.Int? = null
/**
* The minimum number of inference units to use. A single inference unit represents 1 hour of processing.
*
* Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
*/
public var minInferenceUnits: kotlin.Int? = null
/**
* The Amazon Resource Name(ARN) of the model version that you want to start.
*/
public var projectVersionArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.StartProjectVersionRequest) : this() {
this.maxInferenceUnits = x.maxInferenceUnits
this.minInferenceUnits = x.minInferenceUnits
this.projectVersionArn = x.projectVersionArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.StartProjectVersionRequest = StartProjectVersionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy