commonMain.aws.sdk.kotlin.services.iotsitewise.model.CreateBulkImportJobResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotsitewise-jvm Show documentation
Show all versions of iotsitewise-jvm Show documentation
The AWS SDK for Kotlin client for IoTSiteWise
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotsitewise.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateBulkImportJobResponse private constructor(builder: Builder) {
/**
* The ID of the job.
*/
public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* The unique name that helps identify the job request.
*/
public val jobName: kotlin.String = requireNotNull(builder.jobName) { "A non-null value must be provided for jobName" }
/**
* The status of the bulk import job can be one of following values:
* + `PENDING` – IoT SiteWise is waiting for the current bulk import job to finish.
* + `CANCELLED` – The bulk import job has been canceled.
* + `RUNNING` – IoT SiteWise is processing your request to import your data from Amazon S3.
* + `COMPLETED` – IoT SiteWise successfully completed your request to import data from Amazon S3.
* + `FAILED` – IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
* + `COMPLETED_WITH_FAILURES` – IoT SiteWise completed your request to import data from Amazon S3 with errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*/
public val jobStatus: aws.sdk.kotlin.services.iotsitewise.model.JobStatus = requireNotNull(builder.jobStatus) { "A non-null value must be provided for jobStatus" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.CreateBulkImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateBulkImportJobResponse(")
append("jobId=$jobId,")
append("jobName=$jobName,")
append("jobStatus=$jobStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId.hashCode()
result = 31 * result + (jobName.hashCode())
result = 31 * result + (jobStatus.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 CreateBulkImportJobResponse
if (jobId != other.jobId) return false
if (jobName != other.jobName) return false
if (jobStatus != other.jobStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.CreateBulkImportJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the job.
*/
public var jobId: kotlin.String? = null
/**
* The unique name that helps identify the job request.
*/
public var jobName: kotlin.String? = null
/**
* The status of the bulk import job can be one of following values:
* + `PENDING` – IoT SiteWise is waiting for the current bulk import job to finish.
* + `CANCELLED` – The bulk import job has been canceled.
* + `RUNNING` – IoT SiteWise is processing your request to import your data from Amazon S3.
* + `COMPLETED` – IoT SiteWise successfully completed your request to import data from Amazon S3.
* + `FAILED` – IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
* + `COMPLETED_WITH_FAILURES` – IoT SiteWise completed your request to import data from Amazon S3 with errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*/
public var jobStatus: aws.sdk.kotlin.services.iotsitewise.model.JobStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.CreateBulkImportJobResponse) : this() {
this.jobId = x.jobId
this.jobName = x.jobName
this.jobStatus = x.jobStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.CreateBulkImportJobResponse = CreateBulkImportJobResponse(this)
internal fun correctErrors(): Builder {
if (jobId == null) jobId = ""
if (jobName == null) jobName = ""
if (jobStatus == null) jobStatus = JobStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy