
commonMain.aws.sdk.kotlin.services.rekognition.model.CelebrityDetail.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* Information about a recognized celebrity.
*/
public class CelebrityDetail private constructor(builder: Builder) {
/**
* Bounding box around the body of a celebrity.
*/
public val boundingBox: aws.sdk.kotlin.services.rekognition.model.BoundingBox? = builder.boundingBox
/**
* The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
*/
public val confidence: kotlin.Float? = builder.confidence
/**
* Face details for the recognized celebrity.
*/
public val face: aws.sdk.kotlin.services.rekognition.model.FaceDetail? = builder.face
/**
* The unique identifier for the celebrity.
*/
public val id: kotlin.String? = builder.id
/**
* Retrieves the known gender for the celebrity.
*/
public val knownGender: aws.sdk.kotlin.services.rekognition.model.KnownGender? = builder.knownGender
/**
* The name of the celebrity.
*/
public val name: kotlin.String? = builder.name
/**
* An array of URLs pointing to additional celebrity information.
*/
public val urls: List? = builder.urls
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.CelebrityDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CelebrityDetail(")
append("boundingBox=$boundingBox,")
append("confidence=$confidence,")
append("face=$face,")
append("id=$id,")
append("knownGender=$knownGender,")
append("name=$name,")
append("urls=$urls")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = boundingBox?.hashCode() ?: 0
result = 31 * result + (confidence?.hashCode() ?: 0)
result = 31 * result + (face?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (knownGender?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (urls?.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 CelebrityDetail
if (boundingBox != other.boundingBox) return false
if (confidence != other.confidence) return false
if (face != other.face) return false
if (id != other.id) return false
if (knownGender != other.knownGender) return false
if (name != other.name) return false
if (urls != other.urls) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.CelebrityDetail = Builder(this).apply(block).build()
public class Builder {
/**
* Bounding box around the body of a celebrity.
*/
public var boundingBox: aws.sdk.kotlin.services.rekognition.model.BoundingBox? = null
/**
* The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
*/
public var confidence: kotlin.Float? = null
/**
* Face details for the recognized celebrity.
*/
public var face: aws.sdk.kotlin.services.rekognition.model.FaceDetail? = null
/**
* The unique identifier for the celebrity.
*/
public var id: kotlin.String? = null
/**
* Retrieves the known gender for the celebrity.
*/
public var knownGender: aws.sdk.kotlin.services.rekognition.model.KnownGender? = null
/**
* The name of the celebrity.
*/
public var name: kotlin.String? = null
/**
* An array of URLs pointing to additional celebrity information.
*/
public var urls: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.CelebrityDetail) : this() {
this.boundingBox = x.boundingBox
this.confidence = x.confidence
this.face = x.face
this.id = x.id
this.knownGender = x.knownGender
this.name = x.name
this.urls = x.urls
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.CelebrityDetail = CelebrityDetail(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.BoundingBox] inside the given [block]
*/
public fun boundingBox(block: aws.sdk.kotlin.services.rekognition.model.BoundingBox.Builder.() -> kotlin.Unit) {
this.boundingBox = aws.sdk.kotlin.services.rekognition.model.BoundingBox.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.FaceDetail] inside the given [block]
*/
public fun face(block: aws.sdk.kotlin.services.rekognition.model.FaceDetail.Builder.() -> kotlin.Unit) {
this.face = aws.sdk.kotlin.services.rekognition.model.FaceDetail.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.KnownGender] inside the given [block]
*/
public fun knownGender(block: aws.sdk.kotlin.services.rekognition.model.KnownGender.Builder.() -> kotlin.Unit) {
this.knownGender = aws.sdk.kotlin.services.rekognition.model.KnownGender.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy