
commonMain.aws.sdk.kotlin.services.rekognition.model.DescribeCollectionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeCollectionResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the collection.
*/
public val collectionArn: kotlin.String? = builder.collectionArn
/**
* The number of milliseconds since the Unix epoch time until the creation of the collection. The Unix epoch time is 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.
*/
public val creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimestamp
/**
* The number of faces that are indexed into the collection. To index faces into a collection, use IndexFaces.
*/
public val faceCount: kotlin.Long? = builder.faceCount
/**
* The version of the face model that's used by the collection for face detection.
*
* For more information, see Model versioning in the Amazon Rekognition Developer Guide.
*/
public val faceModelVersion: kotlin.String? = builder.faceModelVersion
/**
* The number of UserIDs assigned to the specified colleciton.
*/
public val userCount: kotlin.Long? = builder.userCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DescribeCollectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeCollectionResponse(")
append("collectionArn=$collectionArn,")
append("creationTimestamp=$creationTimestamp,")
append("faceCount=$faceCount,")
append("faceModelVersion=$faceModelVersion,")
append("userCount=$userCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectionArn?.hashCode() ?: 0
result = 31 * result + (creationTimestamp?.hashCode() ?: 0)
result = 31 * result + (faceCount?.hashCode() ?: 0)
result = 31 * result + (faceModelVersion?.hashCode() ?: 0)
result = 31 * result + (userCount?.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 DescribeCollectionResponse
if (collectionArn != other.collectionArn) return false
if (creationTimestamp != other.creationTimestamp) return false
if (faceCount != other.faceCount) return false
if (faceModelVersion != other.faceModelVersion) return false
if (userCount != other.userCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DescribeCollectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the collection.
*/
public var collectionArn: kotlin.String? = null
/**
* The number of milliseconds since the Unix epoch time until the creation of the collection. The Unix epoch time is 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.
*/
public var creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The number of faces that are indexed into the collection. To index faces into a collection, use IndexFaces.
*/
public var faceCount: kotlin.Long? = null
/**
* The version of the face model that's used by the collection for face detection.
*
* For more information, see Model versioning in the Amazon Rekognition Developer Guide.
*/
public var faceModelVersion: kotlin.String? = null
/**
* The number of UserIDs assigned to the specified colleciton.
*/
public var userCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DescribeCollectionResponse) : this() {
this.collectionArn = x.collectionArn
this.creationTimestamp = x.creationTimestamp
this.faceCount = x.faceCount
this.faceModelVersion = x.faceModelVersion
this.userCount = x.userCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DescribeCollectionResponse = DescribeCollectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy