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

commonMain.aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devicefarm.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Returns the status result for a device offering.
 */
public class GetOfferingStatusResponse private constructor(builder: Builder) {
    /**
     * When specified, gets the offering status for the current period.
     */
    public val current: Map? = builder.current
    /**
     * When specified, gets the offering status for the next period.
     */
    public val nextPeriod: Map? = builder.nextPeriod
    /**
     * An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
     */
    public val nextToken: kotlin.String? = builder.nextToken

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetOfferingStatusResponse(")
        append("current=$current,")
        append("nextPeriod=$nextPeriod,")
        append("nextToken=$nextToken")
        append(")")
    }

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

        if (current != other.current) return false
        if (nextPeriod != other.nextPeriod) return false
        if (nextToken != other.nextToken) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * When specified, gets the offering status for the current period.
         */
        public var current: Map? = null
        /**
         * When specified, gets the offering status for the next period.
         */
        public var nextPeriod: Map? = null
        /**
         * An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusResponse) : this() {
            this.current = x.current
            this.nextPeriod = x.nextPeriod
            this.nextToken = x.nextToken
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusResponse = GetOfferingStatusResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy