
commonMain.aws.sdk.kotlin.services.opensearch.model.CrossClusterSearchConnectionProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Cross-cluster search specific connection properties.
*/
public class CrossClusterSearchConnectionProperties private constructor(builder: Builder) {
/**
* The status of the `SkipUnavailable` setting for the outbound connection. This feature allows you to specify some clusters as optional and ensure that your cross-cluster queries return partial results despite failures on one or more remote clusters.
*/
public val skipUnavailable: aws.sdk.kotlin.services.opensearch.model.SkipUnavailableStatus? = builder.skipUnavailable
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.CrossClusterSearchConnectionProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CrossClusterSearchConnectionProperties(")
append("skipUnavailable=$skipUnavailable")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = skipUnavailable?.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 CrossClusterSearchConnectionProperties
if (skipUnavailable != other.skipUnavailable) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.CrossClusterSearchConnectionProperties = Builder(this).apply(block).build()
public class Builder {
/**
* The status of the `SkipUnavailable` setting for the outbound connection. This feature allows you to specify some clusters as optional and ensure that your cross-cluster queries return partial results despite failures on one or more remote clusters.
*/
public var skipUnavailable: aws.sdk.kotlin.services.opensearch.model.SkipUnavailableStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.CrossClusterSearchConnectionProperties) : this() {
this.skipUnavailable = x.skipUnavailable
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.CrossClusterSearchConnectionProperties = CrossClusterSearchConnectionProperties(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy