commonMain.aws.sdk.kotlin.services.bedrock.model.GetModelImportJobResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrock-jvm Show documentation
Show all versions of bedrock-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetModelImportJobResponse private constructor(builder: Builder) {
/**
* The time the resource was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* Time that the resource transitioned to terminal state.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* Information about why the import job failed.
*/
public val failureMessage: kotlin.String? = builder.failureMessage
/**
* The Amazon Resource Name (ARN) of the imported model.
*/
public val importedModelArn: kotlin.String? = builder.importedModelArn
/**
* The imported model is encrypted at rest using this key.
*/
public val importedModelKmsKeyArn: kotlin.String? = builder.importedModelKmsKeyArn
/**
* The name of the imported model.
*/
public val importedModelName: kotlin.String? = builder.importedModelName
/**
* The Amazon Resource Name (ARN) of the import job.
*/
public val jobArn: kotlin.String? = builder.jobArn
/**
* The name of the import job.
*/
public val jobName: kotlin.String? = builder.jobName
/**
* Time the resource was last modified.
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* The data source for the imported model.
*/
public val modelDataSource: aws.sdk.kotlin.services.bedrock.model.ModelDataSource? = builder.modelDataSource
/**
* The Amazon Resource Name (ARN) of the IAM role associated with this job.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use. If the job failed, the failure message contains information about why the job failed.
*/
public val status: aws.sdk.kotlin.services.bedrock.model.ModelImportJobStatus? = builder.status
/**
* The Virtual Private Cloud (VPC) configuration of the import model job.
*/
public val vpcConfig: aws.sdk.kotlin.services.bedrock.model.VpcConfig? = builder.vpcConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.GetModelImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetModelImportJobResponse(")
append("creationTime=$creationTime,")
append("endTime=$endTime,")
append("failureMessage=$failureMessage,")
append("importedModelArn=$importedModelArn,")
append("importedModelKmsKeyArn=$importedModelKmsKeyArn,")
append("importedModelName=$importedModelName,")
append("jobArn=$jobArn,")
append("jobName=$jobName,")
append("lastModifiedTime=$lastModifiedTime,")
append("modelDataSource=$modelDataSource,")
append("roleArn=$roleArn,")
append("status=$status,")
append("vpcConfig=$vpcConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (endTime?.hashCode() ?: 0)
result = 31 * result + (failureMessage?.hashCode() ?: 0)
result = 31 * result + (importedModelArn?.hashCode() ?: 0)
result = 31 * result + (importedModelKmsKeyArn?.hashCode() ?: 0)
result = 31 * result + (importedModelName?.hashCode() ?: 0)
result = 31 * result + (jobArn?.hashCode() ?: 0)
result = 31 * result + (jobName?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
result = 31 * result + (modelDataSource?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (vpcConfig?.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 GetModelImportJobResponse
if (creationTime != other.creationTime) return false
if (endTime != other.endTime) return false
if (failureMessage != other.failureMessage) return false
if (importedModelArn != other.importedModelArn) return false
if (importedModelKmsKeyArn != other.importedModelKmsKeyArn) return false
if (importedModelName != other.importedModelName) return false
if (jobArn != other.jobArn) return false
if (jobName != other.jobName) return false
if (lastModifiedTime != other.lastModifiedTime) return false
if (modelDataSource != other.modelDataSource) return false
if (roleArn != other.roleArn) return false
if (status != other.status) return false
if (vpcConfig != other.vpcConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.GetModelImportJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time the resource was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Time that the resource transitioned to terminal state.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Information about why the import job failed.
*/
public var failureMessage: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the imported model.
*/
public var importedModelArn: kotlin.String? = null
/**
* The imported model is encrypted at rest using this key.
*/
public var importedModelKmsKeyArn: kotlin.String? = null
/**
* The name of the imported model.
*/
public var importedModelName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the import job.
*/
public var jobArn: kotlin.String? = null
/**
* The name of the import job.
*/
public var jobName: kotlin.String? = null
/**
* Time the resource was last modified.
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The data source for the imported model.
*/
public var modelDataSource: aws.sdk.kotlin.services.bedrock.model.ModelDataSource? = null
/**
* The Amazon Resource Name (ARN) of the IAM role associated with this job.
*/
public var roleArn: kotlin.String? = null
/**
* The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use. If the job failed, the failure message contains information about why the job failed.
*/
public var status: aws.sdk.kotlin.services.bedrock.model.ModelImportJobStatus? = null
/**
* The Virtual Private Cloud (VPC) configuration of the import model job.
*/
public var vpcConfig: aws.sdk.kotlin.services.bedrock.model.VpcConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.GetModelImportJobResponse) : this() {
this.creationTime = x.creationTime
this.endTime = x.endTime
this.failureMessage = x.failureMessage
this.importedModelArn = x.importedModelArn
this.importedModelKmsKeyArn = x.importedModelKmsKeyArn
this.importedModelName = x.importedModelName
this.jobArn = x.jobArn
this.jobName = x.jobName
this.lastModifiedTime = x.lastModifiedTime
this.modelDataSource = x.modelDataSource
this.roleArn = x.roleArn
this.status = x.status
this.vpcConfig = x.vpcConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.GetModelImportJobResponse = GetModelImportJobResponse(this)
/**
* construct an [aws.sdk.kotlin.services.bedrock.model.VpcConfig] inside the given [block]
*/
public fun vpcConfig(block: aws.sdk.kotlin.services.bedrock.model.VpcConfig.Builder.() -> kotlin.Unit) {
this.vpcConfig = aws.sdk.kotlin.services.bedrock.model.VpcConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy