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

commonMain.aws.sdk.kotlin.services.deadline.model.Attachments.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.deadline.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The attachments for jobs.
 */
public class Attachments private constructor(builder: Builder) {
    /**
     * The file system.
     */
    public val fileSystem: aws.sdk.kotlin.services.deadline.model.JobAttachmentsFileSystem = builder.fileSystem
    /**
     * A list of manifests which describe job attachment configurations.
     */
    public val manifests: List = requireNotNull(builder.manifests) { "A non-null value must be provided for manifests" }

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

    override fun toString(): kotlin.String = buildString {
        append("Attachments(")
        append("fileSystem=$fileSystem,")
        append("manifests=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fileSystem.hashCode()
        result = 31 * result + (manifests.hashCode())
        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 Attachments

        if (fileSystem != other.fileSystem) return false
        if (manifests != other.manifests) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The file system.
         */
        public var fileSystem: aws.sdk.kotlin.services.deadline.model.JobAttachmentsFileSystem = aws.sdk.kotlin.services.deadline.model.JobAttachmentsFileSystem.fromValue("COPIED")
        /**
         * A list of manifests which describe job attachment configurations.
         */
        public var manifests: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.deadline.model.Attachments) : this() {
            this.fileSystem = x.fileSystem
            this.manifests = x.manifests
        }

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

        internal fun correctErrors(): Builder {
            if (manifests == null) manifests = emptyList()
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy