aws.sdk.kotlin.services.sagemaker.model.ListModelPackageGroupsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class ListModelPackageGroupsResponse private constructor(builder: BuilderImpl) {
/**
* A list of summaries of the model groups in your Amazon Web Services account.
*/
val modelPackageGroupSummaryList: List? = builder.modelPackageGroupSummaryList
/**
* If the response is truncated, SageMaker returns this token. To retrieve the next set
* of model groups, use it in the subsequent request.
*/
val nextToken: String? = builder.nextToken
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ListModelPackageGroupsResponse = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ListModelPackageGroupsResponse(")
append("modelPackageGroupSummaryList=$modelPackageGroupSummaryList,")
append("nextToken=$nextToken)")
}
override fun hashCode(): kotlin.Int {
var result = modelPackageGroupSummaryList?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as ListModelPackageGroupsResponse
if (modelPackageGroupSummaryList != other.modelPackageGroupSummaryList) return false
if (nextToken != other.nextToken) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ListModelPackageGroupsResponse = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): ListModelPackageGroupsResponse
/**
* A list of summaries of the model groups in your Amazon Web Services account.
*/
fun modelPackageGroupSummaryList(modelPackageGroupSummaryList: List): FluentBuilder
/**
* If the response is truncated, SageMaker returns this token. To retrieve the next set
* of model groups, use it in the subsequent request.
*/
fun nextToken(nextToken: String): FluentBuilder
}
interface DslBuilder {
/**
* A list of summaries of the model groups in your Amazon Web Services account.
*/
var modelPackageGroupSummaryList: List?
/**
* If the response is truncated, SageMaker returns this token. To retrieve the next set
* of model groups, use it in the subsequent request.
*/
var nextToken: String?
fun build(): ListModelPackageGroupsResponse
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var modelPackageGroupSummaryList: List? = null
override var nextToken: String? = null
constructor(x: ListModelPackageGroupsResponse) : this() {
this.modelPackageGroupSummaryList = x.modelPackageGroupSummaryList
this.nextToken = x.nextToken
}
override fun build(): ListModelPackageGroupsResponse = ListModelPackageGroupsResponse(this)
override fun modelPackageGroupSummaryList(modelPackageGroupSummaryList: List): FluentBuilder = apply { this.modelPackageGroupSummaryList = modelPackageGroupSummaryList }
override fun nextToken(nextToken: String): FluentBuilder = apply { this.nextToken = nextToken }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy