
commonMain.aws.sdk.kotlin.services.bedrock.model.InferenceProfileSummary.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
/**
* Contains information about an inference profile.
*/
public class InferenceProfileSummary private constructor(builder: Builder) {
/**
* The time at which the inference profile was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The description of the inference profile.
*/
public val description: kotlin.String? = builder.description
/**
* The Amazon Resource Name (ARN) of the inference profile.
*/
public val inferenceProfileArn: kotlin.String = requireNotNull(builder.inferenceProfileArn) { "A non-null value must be provided for inferenceProfileArn" }
/**
* The unique identifier of the inference profile.
*/
public val inferenceProfileId: kotlin.String = requireNotNull(builder.inferenceProfileId) { "A non-null value must be provided for inferenceProfileId" }
/**
* The name of the inference profile.
*/
public val inferenceProfileName: kotlin.String = requireNotNull(builder.inferenceProfileName) { "A non-null value must be provided for inferenceProfileName" }
/**
* A list of information about each model in the inference profile.
*/
public val models: List = requireNotNull(builder.models) { "A non-null value must be provided for models" }
/**
* The status of the inference profile. `ACTIVE` means that the inference profile is ready to be used.
*/
public val status: aws.sdk.kotlin.services.bedrock.model.InferenceProfileStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The type of the inference profile. The following types are possible:
* + `SYSTEM_DEFINED` – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
* + `APPLICATION` – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
*/
public val type: aws.sdk.kotlin.services.bedrock.model.InferenceProfileType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
/**
* The time at which the inference profile was last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.InferenceProfileSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InferenceProfileSummary(")
append("createdAt=$createdAt,")
append("description=*** Sensitive Data Redacted ***,")
append("inferenceProfileArn=$inferenceProfileArn,")
append("inferenceProfileId=$inferenceProfileId,")
append("inferenceProfileName=$inferenceProfileName,")
append("models=$models,")
append("status=$status,")
append("type=$type,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (inferenceProfileArn.hashCode())
result = 31 * result + (inferenceProfileId.hashCode())
result = 31 * result + (inferenceProfileName.hashCode())
result = 31 * result + (models.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (type.hashCode())
result = 31 * result + (updatedAt?.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 InferenceProfileSummary
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (inferenceProfileArn != other.inferenceProfileArn) return false
if (inferenceProfileId != other.inferenceProfileId) return false
if (inferenceProfileName != other.inferenceProfileName) return false
if (models != other.models) return false
if (status != other.status) return false
if (type != other.type) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.InferenceProfileSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which the inference profile was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the inference profile.
*/
public var description: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the inference profile.
*/
public var inferenceProfileArn: kotlin.String? = null
/**
* The unique identifier of the inference profile.
*/
public var inferenceProfileId: kotlin.String? = null
/**
* The name of the inference profile.
*/
public var inferenceProfileName: kotlin.String? = null
/**
* A list of information about each model in the inference profile.
*/
public var models: List? = null
/**
* The status of the inference profile. `ACTIVE` means that the inference profile is ready to be used.
*/
public var status: aws.sdk.kotlin.services.bedrock.model.InferenceProfileStatus? = null
/**
* The type of the inference profile. The following types are possible:
* + `SYSTEM_DEFINED` – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
* + `APPLICATION` – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
*/
public var type: aws.sdk.kotlin.services.bedrock.model.InferenceProfileType? = null
/**
* The time at which the inference profile was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.InferenceProfileSummary) : this() {
this.createdAt = x.createdAt
this.description = x.description
this.inferenceProfileArn = x.inferenceProfileArn
this.inferenceProfileId = x.inferenceProfileId
this.inferenceProfileName = x.inferenceProfileName
this.models = x.models
this.status = x.status
this.type = x.type
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.InferenceProfileSummary = InferenceProfileSummary(this)
internal fun correctErrors(): Builder {
if (inferenceProfileArn == null) inferenceProfileArn = ""
if (inferenceProfileId == null) inferenceProfileId = ""
if (inferenceProfileName == null) inferenceProfileName = ""
if (models == null) models = emptyList()
if (status == null) status = InferenceProfileStatus.SdkUnknown("no value provided")
if (type == null) type = InferenceProfileType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy