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