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

aws.sdk.kotlin.services.connect.model.ListHoursOfOperationsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.connect.model



class ListHoursOfOperationsRequest private constructor(builder: BuilderImpl) {
    /**
     * The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
     */
    val instanceId: String? = builder.instanceId
    /**
     * The maximum number of results to return per page.
     */
    val maxResults: Int = builder.maxResults
    /**
     * The token for the next set of results. Use the value returned in the previous
     * response in the next request to retrieve the next set of results.
     */
    val nextToken: String? = builder.nextToken

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

        internal fun builder(): DslBuilder = BuilderImpl()

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

    }

    override fun toString(): kotlin.String = buildString {
        append("ListHoursOfOperationsRequest(")
        append("instanceId=$instanceId,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken)")
    }

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

        if (instanceId != other.instanceId) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    interface FluentBuilder {
        fun build(): ListHoursOfOperationsRequest
        /**
         * The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
         */
        fun instanceId(instanceId: String): FluentBuilder
        /**
         * The maximum number of results to return per page.
         */
        fun maxResults(maxResults: Int): FluentBuilder
        /**
         * The token for the next set of results. Use the value returned in the previous
         * response in the next request to retrieve the next set of results.
         */
        fun nextToken(nextToken: String): FluentBuilder
    }

    interface DslBuilder {
        /**
         * The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
         */
        var instanceId: String?
        /**
         * The maximum number of results to return per page.
         */
        var maxResults: Int
        /**
         * The token for the next set of results. Use the value returned in the previous
         * response in the next request to retrieve the next set of results.
         */
        var nextToken: String?

        fun build(): ListHoursOfOperationsRequest
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var instanceId: String? = null
        override var maxResults: Int = 0
        override var nextToken: String? = null

        constructor(x: ListHoursOfOperationsRequest) : this() {
            this.instanceId = x.instanceId
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
        }

        override fun build(): ListHoursOfOperationsRequest = ListHoursOfOperationsRequest(this)
        override fun instanceId(instanceId: String): FluentBuilder = apply { this.instanceId = instanceId }
        override fun maxResults(maxResults: Int): FluentBuilder = apply { this.maxResults = maxResults }
        override fun nextToken(nextToken: String): FluentBuilder = apply { this.nextToken = nextToken }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy