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