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