commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeContinuousExportsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationdiscoveryservice-jvm Show documentation
Show all versions of applicationdiscoveryservice-jvm Show documentation
The AWS SDK for Kotlin client for Application Discovery Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeContinuousExportsResponse private constructor(builder: Builder) {
/**
* A list of continuous export descriptions.
*/
public val descriptions: List? = builder.descriptions
/**
* The token from the previous call to `DescribeExportTasks`.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeContinuousExportsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeContinuousExportsResponse(")
append("descriptions=$descriptions,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = descriptions?.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 DescribeContinuousExportsResponse
if (descriptions != other.descriptions) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeContinuousExportsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of continuous export descriptions.
*/
public var descriptions: List? = null
/**
* The token from the previous call to `DescribeExportTasks`.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeContinuousExportsResponse) : this() {
this.descriptions = x.descriptions
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeContinuousExportsResponse = DescribeContinuousExportsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}