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

commonMain.aws.sdk.kotlin.services.lookoutvision.model.ProjectMetadata.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutvision.model

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

/**
 * Metadata about an Amazon Lookout for Vision project.
 */
public class ProjectMetadata private constructor(builder: Builder) {
    /**
     * The unix timestamp for the date and time that the project was created.
     */
    public val creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimestamp
    /**
     * The Amazon Resource Name (ARN) of the project.
     */
    public val projectArn: kotlin.String? = builder.projectArn
    /**
     * The name of the project.
     */
    public val projectName: kotlin.String? = builder.projectName

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

    override fun toString(): kotlin.String = buildString {
        append("ProjectMetadata(")
        append("creationTimestamp=$creationTimestamp,")
        append("projectArn=$projectArn,")
        append("projectName=$projectName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTimestamp?.hashCode() ?: 0
        result = 31 * result + (projectArn?.hashCode() ?: 0)
        result = 31 * result + (projectName?.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 ProjectMetadata

        if (creationTimestamp != other.creationTimestamp) return false
        if (projectArn != other.projectArn) return false
        if (projectName != other.projectName) return false

        return true
    }

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

    public class Builder {
        /**
         * The unix timestamp for the date and time that the project was created.
         */
        public var creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the project.
         */
        public var projectArn: kotlin.String? = null
        /**
         * The name of the project.
         */
        public var projectName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.ProjectMetadata) : this() {
            this.creationTimestamp = x.creationTimestamp
            this.projectArn = x.projectArn
            this.projectName = x.projectName
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy