
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.ComponentRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* An object that sets information about a component type create or update request.
*/
public class ComponentRequest private constructor(builder: Builder) {
/**
* The ID of the component type.
*/
public val componentTypeId: kotlin.String? = builder.componentTypeId
/**
* The description of the component request.
*/
public val description: kotlin.String? = builder.description
/**
* An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
*/
public val properties: Map? = builder.properties
/**
* The property groups.
*/
public val propertyGroups: Map? = builder.propertyGroups
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.ComponentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComponentRequest(")
append("componentTypeId=$componentTypeId,")
append("description=$description,")
append("properties=$properties,")
append("propertyGroups=$propertyGroups")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = componentTypeId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (properties?.hashCode() ?: 0)
result = 31 * result + (propertyGroups?.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 ComponentRequest
if (componentTypeId != other.componentTypeId) return false
if (description != other.description) return false
if (properties != other.properties) return false
if (propertyGroups != other.propertyGroups) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.ComponentRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the component type.
*/
public var componentTypeId: kotlin.String? = null
/**
* The description of the component request.
*/
public var description: kotlin.String? = null
/**
* An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
*/
public var properties: Map? = null
/**
* The property groups.
*/
public var propertyGroups: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.ComponentRequest) : this() {
this.componentTypeId = x.componentTypeId
this.description = x.description
this.properties = x.properties
this.propertyGroups = x.propertyGroups
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.ComponentRequest = ComponentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy