commonMain.aws.sdk.kotlin.services.cleanrooms.model.SchemaStatusDetail.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the schema status.
*
* A status of `READY` means that based on the schema analysis rule, queries of the given analysis rule type are properly configured to run queries on this schema.
*/
public class SchemaStatusDetail private constructor(builder: Builder) {
/**
* The analysis rule type for which the schema status has been evaluated.
*/
public val analysisRuleType: aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleType? = builder.analysisRuleType
/**
* The type of analysis that can be performed on the schema.
*
* A schema can have an `analysisType` of `DIRECT_ANALYSIS`, `ADDITIONAL_ANALYSIS_FOR_AUDIENCE_GENERATION`, or both.
*/
public val analysisType: aws.sdk.kotlin.services.cleanrooms.model.AnalysisType = requireNotNull(builder.analysisType) { "A non-null value must be provided for analysisType" }
/**
* The configuration details of the schema analysis rule for the given type.
*/
public val configurations: List? = builder.configurations
/**
* The reasons why the schema status is set to its current state.
*/
public val reasons: List? = builder.reasons
/**
* The status of the schema, indicating if it is ready to query.
*/
public val status: aws.sdk.kotlin.services.cleanrooms.model.SchemaStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.SchemaStatusDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SchemaStatusDetail(")
append("analysisRuleType=$analysisRuleType,")
append("analysisType=$analysisType,")
append("configurations=$configurations,")
append("reasons=$reasons,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisRuleType?.hashCode() ?: 0
result = 31 * result + (analysisType.hashCode())
result = 31 * result + (configurations?.hashCode() ?: 0)
result = 31 * result + (reasons?.hashCode() ?: 0)
result = 31 * result + (status.hashCode())
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 SchemaStatusDetail
if (analysisRuleType != other.analysisRuleType) return false
if (analysisType != other.analysisType) return false
if (configurations != other.configurations) return false
if (reasons != other.reasons) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.SchemaStatusDetail = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The analysis rule type for which the schema status has been evaluated.
*/
public var analysisRuleType: aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleType? = null
/**
* The type of analysis that can be performed on the schema.
*
* A schema can have an `analysisType` of `DIRECT_ANALYSIS`, `ADDITIONAL_ANALYSIS_FOR_AUDIENCE_GENERATION`, or both.
*/
public var analysisType: aws.sdk.kotlin.services.cleanrooms.model.AnalysisType? = null
/**
* The configuration details of the schema analysis rule for the given type.
*/
public var configurations: List? = null
/**
* The reasons why the schema status is set to its current state.
*/
public var reasons: List? = null
/**
* The status of the schema, indicating if it is ready to query.
*/
public var status: aws.sdk.kotlin.services.cleanrooms.model.SchemaStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.SchemaStatusDetail) : this() {
this.analysisRuleType = x.analysisRuleType
this.analysisType = x.analysisType
this.configurations = x.configurations
this.reasons = x.reasons
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.SchemaStatusDetail = SchemaStatusDetail(this)
internal fun correctErrors(): Builder {
if (analysisType == null) analysisType = AnalysisType.SdkUnknown("no value provided")
if (status == null) status = SchemaStatus.SdkUnknown("no value provided")
return this
}
}
}