commonMain.aws.sdk.kotlin.services.glue.model.GetPartitionIndexesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetPartitionIndexesResponse private constructor(builder: Builder) {
/**
* A continuation token, present if the current list segment is not the last.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* A list of index descriptors.
*/
public val partitionIndexDescriptorList: List? = builder.partitionIndexDescriptorList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetPartitionIndexesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPartitionIndexesResponse(")
append("nextToken=$nextToken,")
append("partitionIndexDescriptorList=$partitionIndexDescriptorList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (partitionIndexDescriptorList?.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 GetPartitionIndexesResponse
if (nextToken != other.nextToken) return false
if (partitionIndexDescriptorList != other.partitionIndexDescriptorList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetPartitionIndexesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A continuation token, present if the current list segment is not the last.
*/
public var nextToken: kotlin.String? = null
/**
* A list of index descriptors.
*/
public var partitionIndexDescriptorList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetPartitionIndexesResponse) : this() {
this.nextToken = x.nextToken
this.partitionIndexDescriptorList = x.partitionIndexDescriptorList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetPartitionIndexesResponse = GetPartitionIndexesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}