All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aws.sdk.kotlin.services.sagemaker.model.InferenceRecommendationsJob.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.sagemaker.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * A structure that contains a list of recommendation jobs.
 */
class InferenceRecommendationsJob private constructor(builder: Builder) {
    /**
     * A timestamp that shows when the job completed.
     */
    val completionTime: aws.smithy.kotlin.runtime.time.Instant? = builder.completionTime
    /**
     * A timestamp that shows when the job was created.
     */
    val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * If the job fails, provides information why the job failed.
     */
    val failureReason: kotlin.String? = builder.failureReason
    /**
     * The Amazon Resource Name (ARN) of the recommendation job.
     */
    val jobArn: kotlin.String? = builder.jobArn
    /**
     * The job description.
     */
    val jobDescription: kotlin.String? = builder.jobDescription
    /**
     * The name of the job.
     */
    val jobName: kotlin.String? = builder.jobName
    /**
     * The recommendation job type.
     */
    val jobType: aws.sdk.kotlin.services.sagemaker.model.RecommendationJobType? = builder.jobType
    /**
     * A timestamp that shows when the job was last modified.
     */
    val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
    /**
     * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker
     * to perform tasks on your behalf.
     */
    val roleArn: kotlin.String? = builder.roleArn
    /**
     * The status of the job.
     */
    val status: aws.sdk.kotlin.services.sagemaker.model.RecommendationJobStatus? = builder.status

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.InferenceRecommendationsJob = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("InferenceRecommendationsJob(")
        append("completionTime=$completionTime,")
        append("creationTime=$creationTime,")
        append("failureReason=$failureReason,")
        append("jobArn=$jobArn,")
        append("jobDescription=$jobDescription,")
        append("jobName=$jobName,")
        append("jobType=$jobType,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("roleArn=$roleArn,")
        append("status=$status)")
    }

    override fun hashCode(): kotlin.Int {
        var result = completionTime?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (failureReason?.hashCode() ?: 0)
        result = 31 * result + (jobArn?.hashCode() ?: 0)
        result = 31 * result + (jobDescription?.hashCode() ?: 0)
        result = 31 * result + (jobName?.hashCode() ?: 0)
        result = 31 * result + (jobType?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.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 InferenceRecommendationsJob

        if (completionTime != other.completionTime) return false
        if (creationTime != other.creationTime) return false
        if (failureReason != other.failureReason) return false
        if (jobArn != other.jobArn) return false
        if (jobDescription != other.jobDescription) return false
        if (jobName != other.jobName) return false
        if (jobType != other.jobType) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (roleArn != other.roleArn) return false
        if (status != other.status) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.InferenceRecommendationsJob = Builder(this).apply(block).build()

    class Builder {
        /**
         * A timestamp that shows when the job completed.
         */
        var completionTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A timestamp that shows when the job was created.
         */
        var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * If the job fails, provides information why the job failed.
         */
        var failureReason: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the recommendation job.
         */
        var jobArn: kotlin.String? = null
        /**
         * The job description.
         */
        var jobDescription: kotlin.String? = null
        /**
         * The name of the job.
         */
        var jobName: kotlin.String? = null
        /**
         * The recommendation job type.
         */
        var jobType: aws.sdk.kotlin.services.sagemaker.model.RecommendationJobType? = null
        /**
         * A timestamp that shows when the job was last modified.
         */
        var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker
         * to perform tasks on your behalf.
         */
        var roleArn: kotlin.String? = null
        /**
         * The status of the job.
         */
        var status: aws.sdk.kotlin.services.sagemaker.model.RecommendationJobStatus? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.InferenceRecommendationsJob) : this() {
            this.completionTime = x.completionTime
            this.creationTime = x.creationTime
            this.failureReason = x.failureReason
            this.jobArn = x.jobArn
            this.jobDescription = x.jobDescription
            this.jobName = x.jobName
            this.jobType = x.jobType
            this.lastModifiedTime = x.lastModifiedTime
            this.roleArn = x.roleArn
            this.status = x.status
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.sagemaker.model.InferenceRecommendationsJob = InferenceRecommendationsJob(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy