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

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.CompositeComponentUpdateRequest.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 CompositeComponentUpdateRequest private constructor(builder: Builder) {
    /**
     * The description of the component type.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The property group updates.
     */
    public val propertyGroupUpdates: Map? = builder.propertyGroupUpdates
    /**
     * An object that maps strings to the properties to set in the component type update. Each string in the mapping must be unique to this object.
     */
    public val propertyUpdates: Map? = builder.propertyUpdates
    /**
     * The update type of the component update request.
     */
    public val updateType: aws.sdk.kotlin.services.iottwinmaker.model.ComponentUpdateType? = builder.updateType

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.CompositeComponentUpdateRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CompositeComponentUpdateRequest(")
        append("description=$description,")
        append("propertyGroupUpdates=$propertyGroupUpdates,")
        append("propertyUpdates=$propertyUpdates,")
        append("updateType=$updateType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (propertyGroupUpdates?.hashCode() ?: 0)
        result = 31 * result + (propertyUpdates?.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 CompositeComponentUpdateRequest

        if (description != other.description) return false
        if (propertyGroupUpdates != other.propertyGroupUpdates) return false
        if (propertyUpdates != other.propertyUpdates) return false
        if (updateType != other.updateType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.CompositeComponentUpdateRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The description of the component type.
         */
        public var description: kotlin.String? = null
        /**
         * The property group updates.
         */
        public var propertyGroupUpdates: Map? = null
        /**
         * An object that maps strings to the properties to set in the component type update. Each string in the mapping must be unique to this object.
         */
        public var propertyUpdates: Map? = null
        /**
         * The update type of the component update request.
         */
        public var updateType: aws.sdk.kotlin.services.iottwinmaker.model.ComponentUpdateType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.CompositeComponentUpdateRequest) : this() {
            this.description = x.description
            this.propertyGroupUpdates = x.propertyGroupUpdates
            this.propertyUpdates = x.propertyUpdates
            this.updateType = x.updateType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy