commonMain.aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupResponse.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 CreateLabelGroupResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the label group that you have created.
*/
public val labelGroupArn: kotlin.String? = builder.labelGroupArn
/**
* The name of the label group that you have created. Data in this field will be retained for service usage. Follow best practices for the security of your data.
*/
public val labelGroupName: kotlin.String? = builder.labelGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateLabelGroupResponse(")
append("labelGroupArn=$labelGroupArn,")
append("labelGroupName=$labelGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = labelGroupArn?.hashCode() ?: 0
result = 31 * result + (labelGroupName?.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 CreateLabelGroupResponse
if (labelGroupArn != other.labelGroupArn) return false
if (labelGroupName != other.labelGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the label group that you have created.
*/
public var labelGroupArn: kotlin.String? = null
/**
* The name of the label group that you have created. Data in this field will be retained for service usage. Follow best practices for the security of your data.
*/
public var labelGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupResponse) : this() {
this.labelGroupArn = x.labelGroupArn
this.labelGroupName = x.labelGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupResponse = CreateLabelGroupResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}