commonMain.aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the request to retrieve the offering status for the specified customer or account.
*/
public class GetOfferingStatusRequest private constructor(builder: Builder) {
/**
* 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.GetOfferingStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetOfferingStatusRequest(")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 GetOfferingStatusRequest
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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.GetOfferingStatusRequest) : this() {
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.GetOfferingStatusRequest = GetOfferingStatusRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}