
commonMain.aws.sdk.kotlin.services.lookoutvision.model.ProjectDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutvision.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describe an Amazon Lookout for Vision project. For more information, see DescribeProject.
*/
public class ProjectDescription 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
/**
* A list of datasets in the project.
*/
public val datasets: List? = builder.datasets
/**
* 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.ProjectDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectDescription(")
append("creationTimestamp=$creationTimestamp,")
append("datasets=$datasets,")
append("projectArn=$projectArn,")
append("projectName=$projectName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTimestamp?.hashCode() ?: 0
result = 31 * result + (datasets?.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 ProjectDescription
if (creationTimestamp != other.creationTimestamp) return false
if (datasets != other.datasets) 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.ProjectDescription = 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
/**
* A list of datasets in the project.
*/
public var datasets: List? = 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.ProjectDescription) : this() {
this.creationTimestamp = x.creationTimestamp
this.datasets = x.datasets
this.projectArn = x.projectArn
this.projectName = x.projectName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutvision.model.ProjectDescription = ProjectDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy