
commonMain.aws.sdk.kotlin.services.iot.model.AddThingToThingGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class AddThingToThingGroupRequest private constructor(builder: Builder) {
/**
* Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
*/
public val overrideDynamicGroups: kotlin.Boolean? = builder.overrideDynamicGroups
/**
* The ARN of the thing to add to a group.
*/
public val thingArn: kotlin.String? = builder.thingArn
/**
* The ARN of the group to which you are adding a thing.
*/
public val thingGroupArn: kotlin.String? = builder.thingGroupArn
/**
* The name of the group to which you are adding a thing.
*/
public val thingGroupName: kotlin.String? = builder.thingGroupName
/**
* The name of the thing to add to a 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.AddThingToThingGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AddThingToThingGroupRequest(")
append("overrideDynamicGroups=$overrideDynamicGroups,")
append("thingArn=$thingArn,")
append("thingGroupArn=$thingGroupArn,")
append("thingGroupName=$thingGroupName,")
append("thingName=$thingName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = overrideDynamicGroups?.hashCode() ?: 0
result = 31 * 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 AddThingToThingGroupRequest
if (overrideDynamicGroups != other.overrideDynamicGroups) return false
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.AddThingToThingGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
*/
public var overrideDynamicGroups: kotlin.Boolean? = null
/**
* The ARN of the thing to add to a group.
*/
public var thingArn: kotlin.String? = null
/**
* The ARN of the group to which you are adding a thing.
*/
public var thingGroupArn: kotlin.String? = null
/**
* The name of the group to which you are adding a thing.
*/
public var thingGroupName: kotlin.String? = null
/**
* The name of the thing to add to a group.
*/
public var thingName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.AddThingToThingGroupRequest) : this() {
this.overrideDynamicGroups = x.overrideDynamicGroups
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.AddThingToThingGroupRequest = AddThingToThingGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy