
commonMain.aws.sdk.kotlin.services.opensearchserverless.model.AccessPolicyStats.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 access policy.
*/
public class AccessPolicyStats private constructor(builder: Builder) {
/**
* The number of data access policies in the current account.
*/
public val dataPolicyCount: kotlin.Long? = builder.dataPolicyCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearchserverless.model.AccessPolicyStats = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AccessPolicyStats(")
append("dataPolicyCount=$dataPolicyCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataPolicyCount?.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 AccessPolicyStats
if (dataPolicyCount != other.dataPolicyCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearchserverless.model.AccessPolicyStats = Builder(this).apply(block).build()
public class Builder {
/**
* The number of data access policies in the current account.
*/
public var dataPolicyCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.AccessPolicyStats) : this() {
this.dataPolicyCount = x.dataPolicyCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearchserverless.model.AccessPolicyStats = AccessPolicyStats(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy