commonMain.aws.sdk.kotlin.services.deadline.model.Attachments.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// 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
}
}
}