
commonMain.aws.sdk.kotlin.services.rekognition.model.GetCelebrityInfoResponse.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 GetCelebrityInfoResponse private constructor(builder: Builder) {
/**
* 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.GetCelebrityInfoResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCelebrityInfoResponse(")
append("knownGender=$knownGender,")
append("name=$name,")
append("urls=$urls")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 GetCelebrityInfoResponse
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.GetCelebrityInfoResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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.GetCelebrityInfoResponse) : this() {
this.knownGender = x.knownGender
this.name = x.name
this.urls = x.urls
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.GetCelebrityInfoResponse = GetCelebrityInfoResponse(this)
/**
* 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