
commonMain.aws.sdk.kotlin.services.omics.model.CreateWorkflowRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
public class CreateWorkflowRequest private constructor(builder: Builder) {
/**
* The computational accelerator specified to run the workflow.
*/
public val accelerators: aws.sdk.kotlin.services.omics.model.Accelerators? = builder.accelerators
/**
* The URI of a definition for the workflow.
*/
public val definitionUri: kotlin.String? = builder.definitionUri
/**
* A ZIP archive for the workflow.
*/
public val definitionZip: kotlin.ByteArray? = builder.definitionZip
/**
* A description for the workflow.
*/
public val description: kotlin.String? = builder.description
/**
* An engine for the workflow.
*/
public val engine: aws.sdk.kotlin.services.omics.model.WorkflowEngine? = builder.engine
/**
* The path of the main definition file for the workflow.
*/
public val main: kotlin.String? = builder.main
/**
* A name for the workflow.
*/
public val name: kotlin.String? = builder.name
/**
* A parameter template for the workflow.
*/
public val parameterTemplate: Map? = builder.parameterTemplate
/**
* To ensure that requests don't run multiple times, specify a unique ID for each request.
*/
public val requestId: kotlin.String? = builder.requestId
/**
* A storage capacity for the workflow in gigabytes.
*/
public val storageCapacity: kotlin.Int? = builder.storageCapacity
/**
* Tags for the workflow.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.CreateWorkflowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateWorkflowRequest(")
append("accelerators=$accelerators,")
append("definitionUri=$definitionUri,")
append("definitionZip=$definitionZip,")
append("description=$description,")
append("engine=$engine,")
append("main=$main,")
append("name=$name,")
append("parameterTemplate=$parameterTemplate,")
append("requestId=$requestId,")
append("storageCapacity=$storageCapacity,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accelerators?.hashCode() ?: 0
result = 31 * result + (definitionUri?.hashCode() ?: 0)
result = 31 * result + (definitionZip?.contentHashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (engine?.hashCode() ?: 0)
result = 31 * result + (main?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (parameterTemplate?.hashCode() ?: 0)
result = 31 * result + (requestId?.hashCode() ?: 0)
result = 31 * result + (storageCapacity ?: 0)
result = 31 * result + (tags?.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 CreateWorkflowRequest
if (accelerators != other.accelerators) return false
if (definitionUri != other.definitionUri) return false
if (definitionZip != null) {
if (other.definitionZip == null) return false
if (!definitionZip.contentEquals(other.definitionZip)) return false
} else if (other.definitionZip != null) return false
if (description != other.description) return false
if (engine != other.engine) return false
if (main != other.main) return false
if (name != other.name) return false
if (parameterTemplate != other.parameterTemplate) return false
if (requestId != other.requestId) return false
if (storageCapacity != other.storageCapacity) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.CreateWorkflowRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The computational accelerator specified to run the workflow.
*/
public var accelerators: aws.sdk.kotlin.services.omics.model.Accelerators? = null
/**
* The URI of a definition for the workflow.
*/
public var definitionUri: kotlin.String? = null
/**
* A ZIP archive for the workflow.
*/
public var definitionZip: kotlin.ByteArray? = null
/**
* A description for the workflow.
*/
public var description: kotlin.String? = null
/**
* An engine for the workflow.
*/
public var engine: aws.sdk.kotlin.services.omics.model.WorkflowEngine? = null
/**
* The path of the main definition file for the workflow.
*/
public var main: kotlin.String? = null
/**
* A name for the workflow.
*/
public var name: kotlin.String? = null
/**
* A parameter template for the workflow.
*/
public var parameterTemplate: Map? = null
/**
* To ensure that requests don't run multiple times, specify a unique ID for each request.
*/
public var requestId: kotlin.String? = null
/**
* A storage capacity for the workflow in gigabytes.
*/
public var storageCapacity: kotlin.Int? = null
/**
* Tags for the workflow.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateWorkflowRequest) : this() {
this.accelerators = x.accelerators
this.definitionUri = x.definitionUri
this.definitionZip = x.definitionZip
this.description = x.description
this.engine = x.engine
this.main = x.main
this.name = x.name
this.parameterTemplate = x.parameterTemplate
this.requestId = x.requestId
this.storageCapacity = x.storageCapacity
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.CreateWorkflowRequest = CreateWorkflowRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy