commonMain.aws.sdk.kotlin.services.entityresolution.model.ProviderSchemaAttribute.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entityresolution-jvm Show documentation
Show all versions of entityresolution-jvm Show documentation
The AWS SDK for Kotlin client for EntityResolution
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.entityresolution.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The provider schema attribute.
*/
public class ProviderSchemaAttribute private constructor(builder: Builder) {
/**
* The field name.
*/
public val fieldName: kotlin.String = requireNotNull(builder.fieldName) { "A non-null value must be provided for fieldName" }
/**
* The hashing attribute of the provider schema.
*/
public val hashing: kotlin.Boolean? = builder.hashing
/**
* The sub type of the provider schema attribute.
*/
public val subType: kotlin.String? = builder.subType
/**
* The type of the provider schema attribute.
*/
public val type: aws.sdk.kotlin.services.entityresolution.model.SchemaAttributeType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.ProviderSchemaAttribute = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProviderSchemaAttribute(")
append("fieldName=$fieldName,")
append("hashing=$hashing,")
append("subType=$subType,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fieldName.hashCode()
result = 31 * result + (hashing?.hashCode() ?: 0)
result = 31 * result + (subType?.hashCode() ?: 0)
result = 31 * result + (type.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 ProviderSchemaAttribute
if (fieldName != other.fieldName) return false
if (hashing != other.hashing) return false
if (subType != other.subType) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.ProviderSchemaAttribute = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The field name.
*/
public var fieldName: kotlin.String? = null
/**
* The hashing attribute of the provider schema.
*/
public var hashing: kotlin.Boolean? = null
/**
* The sub type of the provider schema attribute.
*/
public var subType: kotlin.String? = null
/**
* The type of the provider schema attribute.
*/
public var type: aws.sdk.kotlin.services.entityresolution.model.SchemaAttributeType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.ProviderSchemaAttribute) : this() {
this.fieldName = x.fieldName
this.hashing = x.hashing
this.subType = x.subType
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.ProviderSchemaAttribute = ProviderSchemaAttribute(this)
internal fun correctErrors(): Builder {
if (fieldName == null) fieldName = ""
if (type == null) type = SchemaAttributeType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy