commonMain.aws.sdk.kotlin.services.deadline.model.ManifestProperties.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 details of the manifest that links a job's source information.
*/
public class ManifestProperties private constructor(builder: Builder) {
/**
* The file system location name.
*/
public val fileSystemLocationName: kotlin.String? = builder.fileSystemLocationName
/**
* The has value of the file.
*/
public val inputManifestHash: kotlin.String? = builder.inputManifestHash
/**
* The file path.
*/
public val inputManifestPath: kotlin.String? = builder.inputManifestPath
/**
* The file path relative to the directory.
*/
public val outputRelativeDirectories: List? = builder.outputRelativeDirectories
/**
* The file's root path.
*/
public val rootPath: kotlin.String = requireNotNull(builder.rootPath) { "A non-null value must be provided for rootPath" }
/**
* The format of the root path.
*/
public val rootPathFormat: aws.sdk.kotlin.services.deadline.model.PathFormat = requireNotNull(builder.rootPathFormat) { "A non-null value must be provided for rootPathFormat" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.ManifestProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ManifestProperties(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fileSystemLocationName?.hashCode() ?: 0
result = 31 * result + (inputManifestHash?.hashCode() ?: 0)
result = 31 * result + (inputManifestPath?.hashCode() ?: 0)
result = 31 * result + (outputRelativeDirectories?.hashCode() ?: 0)
result = 31 * result + (rootPath.hashCode())
result = 31 * result + (rootPathFormat.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 ManifestProperties
if (fileSystemLocationName != other.fileSystemLocationName) return false
if (inputManifestHash != other.inputManifestHash) return false
if (inputManifestPath != other.inputManifestPath) return false
if (outputRelativeDirectories != other.outputRelativeDirectories) return false
if (rootPath != other.rootPath) return false
if (rootPathFormat != other.rootPathFormat) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.ManifestProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The file system location name.
*/
public var fileSystemLocationName: kotlin.String? = null
/**
* The has value of the file.
*/
public var inputManifestHash: kotlin.String? = null
/**
* The file path.
*/
public var inputManifestPath: kotlin.String? = null
/**
* The file path relative to the directory.
*/
public var outputRelativeDirectories: List? = null
/**
* The file's root path.
*/
public var rootPath: kotlin.String? = null
/**
* The format of the root path.
*/
public var rootPathFormat: aws.sdk.kotlin.services.deadline.model.PathFormat? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.ManifestProperties) : this() {
this.fileSystemLocationName = x.fileSystemLocationName
this.inputManifestHash = x.inputManifestHash
this.inputManifestPath = x.inputManifestPath
this.outputRelativeDirectories = x.outputRelativeDirectories
this.rootPath = x.rootPath
this.rootPathFormat = x.rootPathFormat
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.ManifestProperties = ManifestProperties(this)
internal fun correctErrors(): Builder {
if (rootPath == null) rootPath = ""
if (rootPathFormat == null) rootPathFormat = PathFormat.SdkUnknown("no value provided")
return this
}
}
}