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