
commonMain.aws.sdk.kotlin.services.iot.model.CreateThingResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The output of the CreateThing operation.
*/
public class CreateThingResponse private constructor(builder: Builder) {
/**
* The ARN of the new thing.
*/
public val thingArn: kotlin.String? = builder.thingArn
/**
* The thing ID.
*/
public val thingId: kotlin.String? = builder.thingId
/**
* The name of the new thing.
*/
public val thingName: kotlin.String? = builder.thingName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CreateThingResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateThingResponse(")
append("thingArn=$thingArn,")
append("thingId=$thingId,")
append("thingName=$thingName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = thingArn?.hashCode() ?: 0
result = 31 * result + (thingId?.hashCode() ?: 0)
result = 31 * result + (thingName?.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 CreateThingResponse
if (thingArn != other.thingArn) return false
if (thingId != other.thingId) return false
if (thingName != other.thingName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CreateThingResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the new thing.
*/
public var thingArn: kotlin.String? = null
/**
* The thing ID.
*/
public var thingId: kotlin.String? = null
/**
* The name of the new thing.
*/
public var thingName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateThingResponse) : this() {
this.thingArn = x.thingArn
this.thingId = x.thingId
this.thingName = x.thingName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreateThingResponse = CreateThingResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy