
commonMain.aws.sdk.kotlin.services.rekognition.model.CreateCollectionResponse.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
public class CreateCollectionResponse private constructor(builder: Builder) {
/**
* Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.
*/
public val collectionArn: kotlin.String? = builder.collectionArn
/**
* Version number of the face detection model associated with the collection you are creating.
*/
public val faceModelVersion: kotlin.String? = builder.faceModelVersion
/**
* HTTP status code indicating the result of the operation.
*/
public val statusCode: kotlin.Int? = builder.statusCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.CreateCollectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCollectionResponse(")
append("collectionArn=$collectionArn,")
append("faceModelVersion=$faceModelVersion,")
append("statusCode=$statusCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectionArn?.hashCode() ?: 0
result = 31 * result + (faceModelVersion?.hashCode() ?: 0)
result = 31 * result + (statusCode ?: 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 CreateCollectionResponse
if (collectionArn != other.collectionArn) return false
if (faceModelVersion != other.faceModelVersion) return false
if (statusCode != other.statusCode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.CreateCollectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.
*/
public var collectionArn: kotlin.String? = null
/**
* Version number of the face detection model associated with the collection you are creating.
*/
public var faceModelVersion: kotlin.String? = null
/**
* HTTP status code indicating the result of the operation.
*/
public var statusCode: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.CreateCollectionResponse) : this() {
this.collectionArn = x.collectionArn
this.faceModelVersion = x.faceModelVersion
this.statusCode = x.statusCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.CreateCollectionResponse = CreateCollectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy