commonMain.aws.sdk.kotlin.services.deadline.model.FileSystemLocation.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 file system location for the resource.
*/
public class FileSystemLocation private constructor(builder: Builder) {
/**
* The location name.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The file path.
*/
public val path: kotlin.String = requireNotNull(builder.path) { "A non-null value must be provided for path" }
/**
* The type of file.
*/
public val type: aws.sdk.kotlin.services.deadline.model.FileSystemLocationType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.FileSystemLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FileSystemLocation(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name.hashCode()
result = 31 * result + (path.hashCode())
result = 31 * result + (type.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 FileSystemLocation
if (name != other.name) return false
if (path != other.path) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.FileSystemLocation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The location name.
*/
public var name: kotlin.String? = null
/**
* The file path.
*/
public var path: kotlin.String? = null
/**
* The type of file.
*/
public var type: aws.sdk.kotlin.services.deadline.model.FileSystemLocationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.FileSystemLocation) : this() {
this.name = x.name
this.path = x.path
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.FileSystemLocation = FileSystemLocation(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
if (path == null) path = ""
if (type == null) type = FileSystemLocationType.SdkUnknown("no value provided")
return this
}
}
}