commonMain.aws.sdk.kotlin.services.comprehend.model.EndpointProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of comprehend-jvm Show documentation
Show all versions of comprehend-jvm Show documentation
The AWS SDK for Kotlin client for Comprehend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Specifies information about the specified endpoint. For information about endpoints, see [Managing endpoints](https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints.html).
*/
public class EndpointProperties private constructor(builder: Builder) {
/**
* The creation date and time of the endpoint.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The number of inference units currently used by the model using this endpoint.
*/
public val currentInferenceUnits: kotlin.Int? = builder.currentInferenceUnits
/**
* The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
*/
public val dataAccessRoleArn: kotlin.String? = builder.dataAccessRoleArn
/**
* Data access role ARN to use in case the new model is encrypted with a customer KMS key.
*/
public val desiredDataAccessRoleArn: kotlin.String? = builder.desiredDataAccessRoleArn
/**
* The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
*/
public val desiredInferenceUnits: kotlin.Int? = builder.desiredInferenceUnits
/**
* ARN of the new model to use for updating an existing endpoint. This ARN is going to be different from the model ARN when the update is in progress
*/
public val desiredModelArn: kotlin.String? = builder.desiredModelArn
/**
* The Amazon Resource Number (ARN) of the endpoint.
*/
public val endpointArn: kotlin.String? = builder.endpointArn
/**
* The Amazon Resource Number (ARN) of the flywheel
*/
public val flywheelArn: kotlin.String? = builder.flywheelArn
/**
* The date and time that the endpoint was last modified.
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* Specifies a reason for failure in cases of `Failed` status.
*/
public val message: kotlin.String? = builder.message
/**
* The Amazon Resource Number (ARN) of the model to which the endpoint is attached.
*/
public val modelArn: kotlin.String? = builder.modelArn
/**
* Specifies the status of the endpoint. Because the endpoint updates and creation are asynchronous, so customers will need to wait for the endpoint to be `Ready` status before making inference requests.
*/
public val status: aws.sdk.kotlin.services.comprehend.model.EndpointStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.EndpointProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EndpointProperties(")
append("creationTime=$creationTime,")
append("currentInferenceUnits=$currentInferenceUnits,")
append("dataAccessRoleArn=$dataAccessRoleArn,")
append("desiredDataAccessRoleArn=$desiredDataAccessRoleArn,")
append("desiredInferenceUnits=$desiredInferenceUnits,")
append("desiredModelArn=$desiredModelArn,")
append("endpointArn=$endpointArn,")
append("flywheelArn=$flywheelArn,")
append("lastModifiedTime=$lastModifiedTime,")
append("message=$message,")
append("modelArn=$modelArn,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (currentInferenceUnits ?: 0)
result = 31 * result + (dataAccessRoleArn?.hashCode() ?: 0)
result = 31 * result + (desiredDataAccessRoleArn?.hashCode() ?: 0)
result = 31 * result + (desiredInferenceUnits ?: 0)
result = 31 * result + (desiredModelArn?.hashCode() ?: 0)
result = 31 * result + (endpointArn?.hashCode() ?: 0)
result = 31 * result + (flywheelArn?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (modelArn?.hashCode() ?: 0)
result = 31 * result + (status?.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 EndpointProperties
if (creationTime != other.creationTime) return false
if (currentInferenceUnits != other.currentInferenceUnits) return false
if (dataAccessRoleArn != other.dataAccessRoleArn) return false
if (desiredDataAccessRoleArn != other.desiredDataAccessRoleArn) return false
if (desiredInferenceUnits != other.desiredInferenceUnits) return false
if (desiredModelArn != other.desiredModelArn) return false
if (endpointArn != other.endpointArn) return false
if (flywheelArn != other.flywheelArn) return false
if (lastModifiedTime != other.lastModifiedTime) return false
if (message != other.message) return false
if (modelArn != other.modelArn) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.EndpointProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The creation date and time of the endpoint.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The number of inference units currently used by the model using this endpoint.
*/
public var currentInferenceUnits: kotlin.Int? = null
/**
* The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
*/
public var dataAccessRoleArn: kotlin.String? = null
/**
* Data access role ARN to use in case the new model is encrypted with a customer KMS key.
*/
public var desiredDataAccessRoleArn: kotlin.String? = null
/**
* The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
*/
public var desiredInferenceUnits: kotlin.Int? = null
/**
* ARN of the new model to use for updating an existing endpoint. This ARN is going to be different from the model ARN when the update is in progress
*/
public var desiredModelArn: kotlin.String? = null
/**
* The Amazon Resource Number (ARN) of the endpoint.
*/
public var endpointArn: kotlin.String? = null
/**
* The Amazon Resource Number (ARN) of the flywheel
*/
public var flywheelArn: kotlin.String? = null
/**
* The date and time that the endpoint was last modified.
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specifies a reason for failure in cases of `Failed` status.
*/
public var message: kotlin.String? = null
/**
* The Amazon Resource Number (ARN) of the model to which the endpoint is attached.
*/
public var modelArn: kotlin.String? = null
/**
* Specifies the status of the endpoint. Because the endpoint updates and creation are asynchronous, so customers will need to wait for the endpoint to be `Ready` status before making inference requests.
*/
public var status: aws.sdk.kotlin.services.comprehend.model.EndpointStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.EndpointProperties) : this() {
this.creationTime = x.creationTime
this.currentInferenceUnits = x.currentInferenceUnits
this.dataAccessRoleArn = x.dataAccessRoleArn
this.desiredDataAccessRoleArn = x.desiredDataAccessRoleArn
this.desiredInferenceUnits = x.desiredInferenceUnits
this.desiredModelArn = x.desiredModelArn
this.endpointArn = x.endpointArn
this.flywheelArn = x.flywheelArn
this.lastModifiedTime = x.lastModifiedTime
this.message = x.message
this.modelArn = x.modelArn
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.EndpointProperties = EndpointProperties(this)
internal fun correctErrors(): Builder {
return this
}
}
}