commonMain.aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeLabelGroupResponse private constructor(builder: Builder) {
/**
* The time at which the label group was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* Codes indicating the type of anomaly associated with the labels in the lagbel group.
*/
public val faultCodes: List? = builder.faultCodes
/**
* The Amazon Resource Name (ARN) of the label group.
*/
public val labelGroupArn: kotlin.String? = builder.labelGroupArn
/**
* The name of the label group.
*/
public val labelGroupName: kotlin.String? = builder.labelGroupName
/**
* The time at which the label group was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeLabelGroupResponse(")
append("createdAt=$createdAt,")
append("faultCodes=$faultCodes,")
append("labelGroupArn=$labelGroupArn,")
append("labelGroupName=$labelGroupName,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (faultCodes?.hashCode() ?: 0)
result = 31 * result + (labelGroupArn?.hashCode() ?: 0)
result = 31 * result + (labelGroupName?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 DescribeLabelGroupResponse
if (createdAt != other.createdAt) return false
if (faultCodes != other.faultCodes) return false
if (labelGroupArn != other.labelGroupArn) return false
if (labelGroupName != other.labelGroupName) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which the label group was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Codes indicating the type of anomaly associated with the labels in the lagbel group.
*/
public var faultCodes: List? = null
/**
* The Amazon Resource Name (ARN) of the label group.
*/
public var labelGroupArn: kotlin.String? = null
/**
* The name of the label group.
*/
public var labelGroupName: kotlin.String? = null
/**
* The time at which the label group was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupResponse) : this() {
this.createdAt = x.createdAt
this.faultCodes = x.faultCodes
this.labelGroupArn = x.labelGroupArn
this.labelGroupName = x.labelGroupName
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupResponse = DescribeLabelGroupResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}