
commonMain.aws.sdk.kotlin.services.rekognition.model.DescribeProjectVersionsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
public class DescribeProjectVersionsResponse private constructor(builder: Builder) {
/**
* If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* A list of project version descriptions. The list is sorted by the creation date and time of the project versions, latest to earliest.
*/
public val projectVersionDescriptions: List? = builder.projectVersionDescriptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DescribeProjectVersionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeProjectVersionsResponse(")
append("nextToken=$nextToken,")
append("projectVersionDescriptions=$projectVersionDescriptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (projectVersionDescriptions?.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 DescribeProjectVersionsResponse
if (nextToken != other.nextToken) return false
if (projectVersionDescriptions != other.projectVersionDescriptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DescribeProjectVersionsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* A list of project version descriptions. The list is sorted by the creation date and time of the project versions, latest to earliest.
*/
public var projectVersionDescriptions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DescribeProjectVersionsResponse) : this() {
this.nextToken = x.nextToken
this.projectVersionDescriptions = x.projectVersionDescriptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DescribeProjectVersionsResponse = DescribeProjectVersionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy