
commonMain.aws.sdk.kotlin.services.opensearchserverless.model.SecurityConfigStats.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearchserverless.model
/**
* Statistics for an OpenSearch Serverless security configuration.
*/
public class SecurityConfigStats private constructor(builder: Builder) {
/**
* The number of security configurations in the current account.
*/
public val samlConfigCount: kotlin.Long? = builder.samlConfigCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearchserverless.model.SecurityConfigStats = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SecurityConfigStats(")
append("samlConfigCount=$samlConfigCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = samlConfigCount?.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 SecurityConfigStats
if (samlConfigCount != other.samlConfigCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearchserverless.model.SecurityConfigStats = Builder(this).apply(block).build()
public class Builder {
/**
* The number of security configurations in the current account.
*/
public var samlConfigCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.SecurityConfigStats) : this() {
this.samlConfigCount = x.samlConfigCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearchserverless.model.SecurityConfigStats = SecurityConfigStats(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy