
commonMain.aws.sdk.kotlin.services.lookoutvision.model.DescribeModelRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutvision.model
public class DescribeModelRequest private constructor(builder: Builder) {
/**
* The version of the model that you want to describe.
*/
public val modelVersion: kotlin.String? = builder.modelVersion
/**
* The project that contains the version of a model that you want to describe.
*/
public val projectName: kotlin.String? = builder.projectName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutvision.model.DescribeModelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeModelRequest(")
append("modelVersion=$modelVersion,")
append("projectName=$projectName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = modelVersion?.hashCode() ?: 0
result = 31 * result + (projectName?.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 DescribeModelRequest
if (modelVersion != other.modelVersion) return false
if (projectName != other.projectName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutvision.model.DescribeModelRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The version of the model that you want to describe.
*/
public var modelVersion: kotlin.String? = null
/**
* The project that contains the version of a model that you want to describe.
*/
public var projectName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.DescribeModelRequest) : this() {
this.modelVersion = x.modelVersion
this.projectName = x.projectName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutvision.model.DescribeModelRequest = DescribeModelRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy