All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aws.sdk.kotlin.services.sagemaker.model.ListTrialComponentsResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.sagemaker.model



class ListTrialComponentsResponse private constructor(builder: BuilderImpl) {
    /**
     * A token for getting the next set of components, if there are any.
     */
    val nextToken: String? = builder.nextToken
    /**
     * A list of the summaries of your trial components.
     */
    val trialComponentSummaries: List? = builder.trialComponentSummaries

    companion object {
        @JvmStatic
        fun fluentBuilder(): FluentBuilder = BuilderImpl()

        internal fun builder(): DslBuilder = BuilderImpl()

        operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ListTrialComponentsResponse = BuilderImpl().apply(block).build()

    }

    override fun toString(): kotlin.String = buildString {
        append("ListTrialComponentsResponse(")
        append("nextToken=$nextToken,")
        append("trialComponentSummaries=$trialComponentSummaries)")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextToken?.hashCode() ?: 0
        result = 31 * result + (trialComponentSummaries?.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 ListTrialComponentsResponse

        if (nextToken != other.nextToken) return false
        if (trialComponentSummaries != other.trialComponentSummaries) return false

        return true
    }

    fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ListTrialComponentsResponse = BuilderImpl(this).apply(block).build()

    interface FluentBuilder {
        fun build(): ListTrialComponentsResponse
        /**
         * A token for getting the next set of components, if there are any.
         */
        fun nextToken(nextToken: String): FluentBuilder
        /**
         * A list of the summaries of your trial components.
         */
        fun trialComponentSummaries(trialComponentSummaries: List): FluentBuilder
    }

    interface DslBuilder {
        /**
         * A token for getting the next set of components, if there are any.
         */
        var nextToken: String?
        /**
         * A list of the summaries of your trial components.
         */
        var trialComponentSummaries: List?

        fun build(): ListTrialComponentsResponse
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var nextToken: String? = null
        override var trialComponentSummaries: List? = null

        constructor(x: ListTrialComponentsResponse) : this() {
            this.nextToken = x.nextToken
            this.trialComponentSummaries = x.trialComponentSummaries
        }

        override fun build(): ListTrialComponentsResponse = ListTrialComponentsResponse(this)
        override fun nextToken(nextToken: String): FluentBuilder = apply { this.nextToken = nextToken }
        override fun trialComponentSummaries(trialComponentSummaries: List): FluentBuilder = apply { this.trialComponentSummaries = trialComponentSummaries }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy