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

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.FunctionResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iottwinmaker.model



/**
 * The function response.
 */
public class FunctionResponse private constructor(builder: Builder) {
    /**
     * The data connector.
     */
    public val implementedBy: aws.sdk.kotlin.services.iottwinmaker.model.DataConnector? = builder.implementedBy
    /**
     * Indicates whether this function is inherited.
     */
    public val isInherited: kotlin.Boolean? = builder.isInherited
    /**
     * The required properties of the function.
     */
    public val requiredProperties: List? = builder.requiredProperties
    /**
     * The scope of the function.
     */
    public val scope: aws.sdk.kotlin.services.iottwinmaker.model.Scope? = builder.scope

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

    override fun toString(): kotlin.String = buildString {
        append("FunctionResponse(")
        append("implementedBy=$implementedBy,")
        append("isInherited=$isInherited,")
        append("requiredProperties=$requiredProperties,")
        append("scope=$scope")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = implementedBy?.hashCode() ?: 0
        result = 31 * result + (isInherited?.hashCode() ?: 0)
        result = 31 * result + (requiredProperties?.hashCode() ?: 0)
        result = 31 * result + (scope?.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 FunctionResponse

        if (implementedBy != other.implementedBy) return false
        if (isInherited != other.isInherited) return false
        if (requiredProperties != other.requiredProperties) return false
        if (scope != other.scope) return false

        return true
    }

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

    public class Builder {
        /**
         * The data connector.
         */
        public var implementedBy: aws.sdk.kotlin.services.iottwinmaker.model.DataConnector? = null
        /**
         * Indicates whether this function is inherited.
         */
        public var isInherited: kotlin.Boolean? = null
        /**
         * The required properties of the function.
         */
        public var requiredProperties: List? = null
        /**
         * The scope of the function.
         */
        public var scope: aws.sdk.kotlin.services.iottwinmaker.model.Scope? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.FunctionResponse) : this() {
            this.implementedBy = x.implementedBy
            this.isInherited = x.isInherited
            this.requiredProperties = x.requiredProperties
            this.scope = x.scope
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iottwinmaker.model.DataConnector] inside the given [block]
         */
        public fun implementedBy(block: aws.sdk.kotlin.services.iottwinmaker.model.DataConnector.Builder.() -> kotlin.Unit) {
            this.implementedBy = aws.sdk.kotlin.services.iottwinmaker.model.DataConnector.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy