commonMain.aws.sdk.kotlin.services.omics.model.StartReferenceImportJobRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of omics-jvm Show documentation
Show all versions of omics-jvm Show documentation
The AWS SDK for Kotlin client for Omics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
public class StartReferenceImportJobRequest private constructor(builder: Builder) {
/**
* To ensure that jobs don't run multiple times, specify a unique token for each job.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The job's reference store ID.
*/
public val referenceStoreId: kotlin.String? = builder.referenceStoreId
/**
* A service role for the job.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The job's source files.
*/
public val sources: List? = builder.sources
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.StartReferenceImportJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartReferenceImportJobRequest(")
append("clientToken=$clientToken,")
append("referenceStoreId=$referenceStoreId,")
append("roleArn=$roleArn,")
append("sources=$sources")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (referenceStoreId?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (sources?.hashCode() ?: 0)
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 StartReferenceImportJobRequest
if (clientToken != other.clientToken) return false
if (referenceStoreId != other.referenceStoreId) return false
if (roleArn != other.roleArn) return false
if (sources != other.sources) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.StartReferenceImportJobRequest = Builder(this).apply(block).build()
public class Builder {
/**
* To ensure that jobs don't run multiple times, specify a unique token for each job.
*/
public var clientToken: kotlin.String? = null
/**
* The job's reference store ID.
*/
public var referenceStoreId: kotlin.String? = null
/**
* A service role for the job.
*/
public var roleArn: kotlin.String? = null
/**
* The job's source files.
*/
public var sources: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.StartReferenceImportJobRequest) : this() {
this.clientToken = x.clientToken
this.referenceStoreId = x.referenceStoreId
this.roleArn = x.roleArn
this.sources = x.sources
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.StartReferenceImportJobRequest = StartReferenceImportJobRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}