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

commonMain.aws.sdk.kotlin.services.greengrass.model.S3MachineLearningModelResourceData.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.greengrass.model



/**
 * Attributes that define an Amazon S3 machine learning resource.
 */
public class S3MachineLearningModelResourceData private constructor(builder: Builder) {
    /**
     * The absolute local path of the resource inside the Lambda environment.
     */
    public val destinationPath: kotlin.String? = builder.destinationPath
    /**
     * The owner setting for downloaded machine learning resources.
     */
    public val ownerSetting: aws.sdk.kotlin.services.greengrass.model.ResourceDownloadOwnerSetting? = builder.ownerSetting
    /**
     * The URI of the source model in an S3 bucket. The model package must be in tar.gz or .zip format.
     */
    public val s3Uri: kotlin.String? = builder.s3Uri

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

    override fun toString(): kotlin.String = buildString {
        append("S3MachineLearningModelResourceData(")
        append("destinationPath=$destinationPath,")
        append("ownerSetting=$ownerSetting,")
        append("s3Uri=$s3Uri")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = destinationPath?.hashCode() ?: 0
        result = 31 * result + (ownerSetting?.hashCode() ?: 0)
        result = 31 * result + (s3Uri?.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 S3MachineLearningModelResourceData

        if (destinationPath != other.destinationPath) return false
        if (ownerSetting != other.ownerSetting) return false
        if (s3Uri != other.s3Uri) return false

        return true
    }

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

    public class Builder {
        /**
         * The absolute local path of the resource inside the Lambda environment.
         */
        public var destinationPath: kotlin.String? = null
        /**
         * The owner setting for downloaded machine learning resources.
         */
        public var ownerSetting: aws.sdk.kotlin.services.greengrass.model.ResourceDownloadOwnerSetting? = null
        /**
         * The URI of the source model in an S3 bucket. The model package must be in tar.gz or .zip format.
         */
        public var s3Uri: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.S3MachineLearningModelResourceData) : this() {
            this.destinationPath = x.destinationPath
            this.ownerSetting = x.ownerSetting
            this.s3Uri = x.s3Uri
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy