commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetImportResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelbuildingservice.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetImportResponse private constructor(builder: Builder) {
/**
* A timestamp for the date and time that the import job was created.
*/
public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
/**
* A string that describes why an import job failed to complete.
*/
public val failureReason: List? = builder.failureReason
/**
* The identifier for the specific import job.
*/
public val importId: kotlin.String? = builder.importId
/**
* The status of the import job. If the status is `FAILED`, you can get the reason for the failure from the `failureReason` field.
*/
public val importStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ImportStatus? = builder.importStatus
/**
* The action taken when there was a conflict between an existing resource and a resource in the import file.
*/
public val mergeStrategy: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MergeStrategy? = builder.mergeStrategy
/**
* The name given to the import job.
*/
public val name: kotlin.String? = builder.name
/**
* The type of resource imported.
*/
public val resourceType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ResourceType? = builder.resourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetImportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetImportResponse(")
append("createdDate=$createdDate,")
append("failureReason=$failureReason,")
append("importId=$importId,")
append("importStatus=$importStatus,")
append("mergeStrategy=$mergeStrategy,")
append("name=$name,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdDate?.hashCode() ?: 0
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (importId?.hashCode() ?: 0)
result = 31 * result + (importStatus?.hashCode() ?: 0)
result = 31 * result + (mergeStrategy?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (resourceType?.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 GetImportResponse
if (createdDate != other.createdDate) return false
if (failureReason != other.failureReason) return false
if (importId != other.importId) return false
if (importStatus != other.importStatus) return false
if (mergeStrategy != other.mergeStrategy) return false
if (name != other.name) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetImportResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A timestamp for the date and time that the import job was created.
*/
public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A string that describes why an import job failed to complete.
*/
public var failureReason: List? = null
/**
* The identifier for the specific import job.
*/
public var importId: kotlin.String? = null
/**
* The status of the import job. If the status is `FAILED`, you can get the reason for the failure from the `failureReason` field.
*/
public var importStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ImportStatus? = null
/**
* The action taken when there was a conflict between an existing resource and a resource in the import file.
*/
public var mergeStrategy: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MergeStrategy? = null
/**
* The name given to the import job.
*/
public var name: kotlin.String? = null
/**
* The type of resource imported.
*/
public var resourceType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ResourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetImportResponse) : this() {
this.createdDate = x.createdDate
this.failureReason = x.failureReason
this.importId = x.importId
this.importStatus = x.importStatus
this.mergeStrategy = x.mergeStrategy
this.name = x.name
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetImportResponse = GetImportResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy