commonMain.aws.sdk.kotlin.services.rekognition.model.DescribeProjectsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rekognition-jvm Show documentation
Show all versions of rekognition-jvm Show documentation
The AWS SDK for Kotlin client for Rekognition
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeProjectsRequest private constructor(builder: Builder) {
/**
* Specifies the type of customization to filter projects by. If no value is specified, CUSTOM_LABELS is used as a default.
*/
public val features: List? = builder.features
/**
* The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* If the previous response was incomplete (because there is more results to retrieve), 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 the projects that you want Rekognition to describe. If you don't specify a value, the response includes descriptions for all the projects in your AWS account.
*/
public val projectNames: List? = builder.projectNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DescribeProjectsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeProjectsRequest(")
append("features=$features,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("projectNames=$projectNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = features?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (projectNames?.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 DescribeProjectsRequest
if (features != other.features) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (projectNames != other.projectNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DescribeProjectsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the type of customization to filter projects by. If no value is specified, CUSTOM_LABELS is used as a default.
*/
public var features: List? = null
/**
* The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
*/
public var maxResults: kotlin.Int? = null
/**
* If the previous response was incomplete (because there is more results to retrieve), 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 the projects that you want Rekognition to describe. If you don't specify a value, the response includes descriptions for all the projects in your AWS account.
*/
public var projectNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DescribeProjectsRequest) : this() {
this.features = x.features
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.projectNames = x.projectNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DescribeProjectsRequest = DescribeProjectsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}