All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.CompositeComponentRequest.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 the composite component update request.
 */
public class CompositeComponentRequest private constructor(builder: Builder) {
    /**
     * The description of the component type.
     */
    public val description: kotlin.String? = builder.description
    /**
     * This is 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.CompositeComponentRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CompositeComponentRequest(")
        append("description=$description,")
        append("properties=$properties,")
        append("propertyGroups=$propertyGroups")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var 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 CompositeComponentRequest

        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.CompositeComponentRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The description of the component type.
         */
        public var description: kotlin.String? = null
        /**
         * This is 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.CompositeComponentRequest) : this() {
            this.description = x.description
            this.properties = x.properties
            this.propertyGroups = x.propertyGroups
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.CompositeComponentRequest = CompositeComponentRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy