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