
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.ComponentPropertyGroupResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* The component property group response.
*/
public class ComponentPropertyGroupResponse private constructor(builder: Builder) {
/**
* The group type.
*/
public val groupType: aws.sdk.kotlin.services.iottwinmaker.model.GroupType = requireNotNull(builder.groupType) { "A non-null value must be provided for groupType" }
/**
* A Boolean value that specifies whether the property group is inherited from a parent entity
*/
public val isInherited: kotlin.Boolean = requireNotNull(builder.isInherited) { "A non-null value must be provided for isInherited" }
/**
* The names of properties
*/
public val propertyNames: List = requireNotNull(builder.propertyNames) { "A non-null value must be provided for propertyNames" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.ComponentPropertyGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComponentPropertyGroupResponse(")
append("groupType=$groupType,")
append("isInherited=$isInherited,")
append("propertyNames=$propertyNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupType.hashCode()
result = 31 * result + (isInherited.hashCode())
result = 31 * result + (propertyNames.hashCode())
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 ComponentPropertyGroupResponse
if (groupType != other.groupType) return false
if (isInherited != other.isInherited) return false
if (propertyNames != other.propertyNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.ComponentPropertyGroupResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The group type.
*/
public var groupType: aws.sdk.kotlin.services.iottwinmaker.model.GroupType? = null
/**
* A Boolean value that specifies whether the property group is inherited from a parent entity
*/
public var isInherited: kotlin.Boolean? = null
/**
* The names of properties
*/
public var propertyNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.ComponentPropertyGroupResponse) : this() {
this.groupType = x.groupType
this.isInherited = x.isInherited
this.propertyNames = x.propertyNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.ComponentPropertyGroupResponse = ComponentPropertyGroupResponse(this)
internal fun correctErrors(): Builder {
if (groupType == null) groupType = GroupType.SdkUnknown("no value provided")
if (isInherited == null) isInherited = false
if (propertyNames == null) propertyNames = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy