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