
commonMain.aws.sdk.kotlin.services.opensearchserverless.model.BatchGetCollectionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearchserverless.model
public class BatchGetCollectionResponse private constructor(builder: Builder) {
/**
* Details about each collection.
*/
public val collectionDetails: List? = builder.collectionDetails
/**
* Error information for the request.
*/
public val collectionErrorDetails: List? = builder.collectionErrorDetails
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearchserverless.model.BatchGetCollectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetCollectionResponse(")
append("collectionDetails=$collectionDetails,")
append("collectionErrorDetails=$collectionErrorDetails")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectionDetails?.hashCode() ?: 0
result = 31 * result + (collectionErrorDetails?.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 BatchGetCollectionResponse
if (collectionDetails != other.collectionDetails) return false
if (collectionErrorDetails != other.collectionErrorDetails) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearchserverless.model.BatchGetCollectionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Details about each collection.
*/
public var collectionDetails: List? = null
/**
* Error information for the request.
*/
public var collectionErrorDetails: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.BatchGetCollectionResponse) : this() {
this.collectionDetails = x.collectionDetails
this.collectionErrorDetails = x.collectionErrorDetails
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearchserverless.model.BatchGetCollectionResponse = BatchGetCollectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy