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

commonMain.aws.sdk.kotlin.services.lookoutvision.model.GreengrassOutputDetails.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutvision.model



/**
 * Information about the AWS IoT Greengrass component created by a model packaging job.
 */
public class GreengrassOutputDetails private constructor(builder: Builder) {
    /**
     * The name of the component.
     */
    public val componentName: kotlin.String? = builder.componentName
    /**
     * The version of the component.
     */
    public val componentVersion: kotlin.String? = builder.componentVersion
    /**
     * The Amazon Resource Name (ARN) of the component.
     */
    public val componentVersionArn: kotlin.String? = builder.componentVersionArn

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

    override fun toString(): kotlin.String = buildString {
        append("GreengrassOutputDetails(")
        append("componentName=$componentName,")
        append("componentVersion=$componentVersion,")
        append("componentVersionArn=$componentVersionArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = componentName?.hashCode() ?: 0
        result = 31 * result + (componentVersion?.hashCode() ?: 0)
        result = 31 * result + (componentVersionArn?.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 GreengrassOutputDetails

        if (componentName != other.componentName) return false
        if (componentVersion != other.componentVersion) return false
        if (componentVersionArn != other.componentVersionArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the component.
         */
        public var componentName: kotlin.String? = null
        /**
         * The version of the component.
         */
        public var componentVersion: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the component.
         */
        public var componentVersionArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.GreengrassOutputDetails) : this() {
            this.componentName = x.componentName
            this.componentVersion = x.componentVersion
            this.componentVersionArn = x.componentVersionArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy