
commonMain.aws.sdk.kotlin.services.bedrock.model.GetImportedModelResponse.kt Maven / Gradle / Ivy
// 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 GetImportedModelResponse private constructor(builder: Builder) {
/**
* Creation time of the imported model.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* Specifies if the imported model supports converse.
*/
public val instructSupported: kotlin.Boolean? = builder.instructSupported
/**
* Job Amazon Resource Name (ARN) associated with the imported model.
*/
public val jobArn: kotlin.String? = builder.jobArn
/**
* Job name associated with the imported model.
*/
public val jobName: kotlin.String? = builder.jobName
/**
* The architecture of the imported model.
*/
public val modelArchitecture: kotlin.String? = builder.modelArchitecture
/**
* The Amazon Resource Name (ARN) associated with this imported model.
*/
public val modelArn: kotlin.String? = builder.modelArn
/**
* The data source for this imported model.
*/
public val modelDataSource: aws.sdk.kotlin.services.bedrock.model.ModelDataSource? = builder.modelDataSource
/**
* The imported model is encrypted at rest using this key.
*/
public val modelKmsKeyArn: kotlin.String? = builder.modelKmsKeyArn
/**
* The name of the imported model.
*/
public val modelName: kotlin.String? = builder.modelName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.GetImportedModelResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetImportedModelResponse(")
append("creationTime=$creationTime,")
append("instructSupported=$instructSupported,")
append("jobArn=$jobArn,")
append("jobName=$jobName,")
append("modelArchitecture=$modelArchitecture,")
append("modelArn=$modelArn,")
append("modelDataSource=$modelDataSource,")
append("modelKmsKeyArn=$modelKmsKeyArn,")
append("modelName=$modelName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (instructSupported?.hashCode() ?: 0)
result = 31 * result + (jobArn?.hashCode() ?: 0)
result = 31 * result + (jobName?.hashCode() ?: 0)
result = 31 * result + (modelArchitecture?.hashCode() ?: 0)
result = 31 * result + (modelArn?.hashCode() ?: 0)
result = 31 * result + (modelDataSource?.hashCode() ?: 0)
result = 31 * result + (modelKmsKeyArn?.hashCode() ?: 0)
result = 31 * result + (modelName?.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 GetImportedModelResponse
if (creationTime != other.creationTime) return false
if (instructSupported != other.instructSupported) return false
if (jobArn != other.jobArn) return false
if (jobName != other.jobName) return false
if (modelArchitecture != other.modelArchitecture) return false
if (modelArn != other.modelArn) return false
if (modelDataSource != other.modelDataSource) return false
if (modelKmsKeyArn != other.modelKmsKeyArn) return false
if (modelName != other.modelName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.GetImportedModelResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Creation time of the imported model.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specifies if the imported model supports converse.
*/
public var instructSupported: kotlin.Boolean? = null
/**
* Job Amazon Resource Name (ARN) associated with the imported model.
*/
public var jobArn: kotlin.String? = null
/**
* Job name associated with the imported model.
*/
public var jobName: kotlin.String? = null
/**
* The architecture of the imported model.
*/
public var modelArchitecture: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) associated with this imported model.
*/
public var modelArn: kotlin.String? = null
/**
* The data source for this imported model.
*/
public var modelDataSource: aws.sdk.kotlin.services.bedrock.model.ModelDataSource? = null
/**
* The imported model is encrypted at rest using this key.
*/
public var modelKmsKeyArn: kotlin.String? = null
/**
* The name of the imported model.
*/
public var modelName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.GetImportedModelResponse) : this() {
this.creationTime = x.creationTime
this.instructSupported = x.instructSupported
this.jobArn = x.jobArn
this.jobName = x.jobName
this.modelArchitecture = x.modelArchitecture
this.modelArn = x.modelArn
this.modelDataSource = x.modelDataSource
this.modelKmsKeyArn = x.modelKmsKeyArn
this.modelName = x.modelName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.GetImportedModelResponse = GetImportedModelResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy