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