commonMain.aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutequipment.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeLabelRequest private constructor(builder: Builder) {
/**
* Returns the name of the group containing the label.
*/
public val labelGroupName: kotlin.String? = builder.labelGroupName
/**
* Returns the ID of the label.
*/
public val labelId: kotlin.String? = builder.labelId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeLabelRequest(")
append("labelGroupName=$labelGroupName,")
append("labelId=$labelId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = labelGroupName?.hashCode() ?: 0
result = 31 * result + (labelId?.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 DescribeLabelRequest
if (labelGroupName != other.labelGroupName) return false
if (labelId != other.labelId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Returns the name of the group containing the label.
*/
public var labelGroupName: kotlin.String? = null
/**
* Returns the ID of the label.
*/
public var labelId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelRequest) : this() {
this.labelGroupName = x.labelGroupName
this.labelId = x.labelId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelRequest = DescribeLabelRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}