
commonMain.aws.sdk.kotlin.services.apptest.model.InputFile.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the input file.
*/
public class InputFile private constructor(builder: Builder) {
/**
* The file metadata of the input file.
*/
public val fileMetadata: aws.sdk.kotlin.services.apptest.model.FileMetadata? = builder.fileMetadata
/**
* The source location of the input file.
*/
public val sourceLocation: kotlin.String = requireNotNull(builder.sourceLocation) { "A non-null value must be provided for sourceLocation" }
/**
* The target location of the input file.
*/
public val targetLocation: kotlin.String = requireNotNull(builder.targetLocation) { "A non-null value must be provided for targetLocation" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.InputFile = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputFile(")
append("fileMetadata=$fileMetadata,")
append("sourceLocation=$sourceLocation,")
append("targetLocation=$targetLocation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fileMetadata?.hashCode() ?: 0
result = 31 * result + (sourceLocation.hashCode())
result = 31 * result + (targetLocation.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 InputFile
if (fileMetadata != other.fileMetadata) return false
if (sourceLocation != other.sourceLocation) return false
if (targetLocation != other.targetLocation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.InputFile = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The file metadata of the input file.
*/
public var fileMetadata: aws.sdk.kotlin.services.apptest.model.FileMetadata? = null
/**
* The source location of the input file.
*/
public var sourceLocation: kotlin.String? = null
/**
* The target location of the input file.
*/
public var targetLocation: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.InputFile) : this() {
this.fileMetadata = x.fileMetadata
this.sourceLocation = x.sourceLocation
this.targetLocation = x.targetLocation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.InputFile = InputFile(this)
internal fun correctErrors(): Builder {
if (sourceLocation == null) sourceLocation = ""
if (targetLocation == null) targetLocation = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy