commonMain.aws.sdk.kotlin.services.supplychain.model.CreateBillOfMaterialsImportJobRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of supplychain-jvm Show documentation
Show all versions of supplychain-jvm Show documentation
The AWS SDK for Kotlin client for SupplyChain
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.supplychain.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The request parameters for CreateBillOfMaterialsImportJob.
*/
public class CreateBillOfMaterialsImportJobRequest private constructor(builder: Builder) {
/**
* An idempotency token.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The AWS Supply Chain instance identifier.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The S3 URI of the CSV file to be imported. The bucket must grant permissions for AWS Supply Chain to read the file.
*/
public val s3Uri: kotlin.String? = builder.s3Uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.supplychain.model.CreateBillOfMaterialsImportJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateBillOfMaterialsImportJobRequest(")
append("clientToken=$clientToken,")
append("instanceId=$instanceId,")
append("s3Uri=$s3Uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (s3Uri?.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 CreateBillOfMaterialsImportJobRequest
if (clientToken != other.clientToken) return false
if (instanceId != other.instanceId) return false
if (s3Uri != other.s3Uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.supplychain.model.CreateBillOfMaterialsImportJobRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An idempotency token.
*/
public var clientToken: kotlin.String? = null
/**
* The AWS Supply Chain instance identifier.
*/
public var instanceId: kotlin.String? = null
/**
* The S3 URI of the CSV file to be imported. The bucket must grant permissions for AWS Supply Chain to read the file.
*/
public var s3Uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.supplychain.model.CreateBillOfMaterialsImportJobRequest) : this() {
this.clientToken = x.clientToken
this.instanceId = x.instanceId
this.s3Uri = x.s3Uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.supplychain.model.CreateBillOfMaterialsImportJobRequest = CreateBillOfMaterialsImportJobRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}