commonMain.aws.sdk.kotlin.services.glue.model.Entity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An entity supported by a given `ConnectionType`.
*/
public class Entity private constructor(builder: Builder) {
/**
* The type of entities that are present in the response. This value depends on the source connection. For example this is `SObjects` for Salesforce and `databases` or `schemas` or `tables` for sources like Amazon Redshift.
*/
public val category: kotlin.String? = builder.category
/**
* An optional map of keys which may be returned for an entity by a connector.
*/
public val customProperties: Map? = builder.customProperties
/**
* A description of the entity.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the entity.
*/
public val entityName: kotlin.String? = builder.entityName
/**
* A Boolean value which helps to determine whether there are sub objects that can be listed.
*/
public val isParentEntity: kotlin.Boolean? = builder.isParentEntity
/**
* Label used for the entity.
*/
public val label: kotlin.String? = builder.label
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.Entity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Entity(")
append("category=$category,")
append("customProperties=$customProperties,")
append("description=$description,")
append("entityName=$entityName,")
append("isParentEntity=$isParentEntity,")
append("label=$label")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = category?.hashCode() ?: 0
result = 31 * result + (customProperties?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (entityName?.hashCode() ?: 0)
result = 31 * result + (isParentEntity?.hashCode() ?: 0)
result = 31 * result + (label?.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 Entity
if (category != other.category) return false
if (customProperties != other.customProperties) return false
if (description != other.description) return false
if (entityName != other.entityName) return false
if (isParentEntity != other.isParentEntity) return false
if (label != other.label) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.Entity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of entities that are present in the response. This value depends on the source connection. For example this is `SObjects` for Salesforce and `databases` or `schemas` or `tables` for sources like Amazon Redshift.
*/
public var category: kotlin.String? = null
/**
* An optional map of keys which may be returned for an entity by a connector.
*/
public var customProperties: Map? = null
/**
* A description of the entity.
*/
public var description: kotlin.String? = null
/**
* The name of the entity.
*/
public var entityName: kotlin.String? = null
/**
* A Boolean value which helps to determine whether there are sub objects that can be listed.
*/
public var isParentEntity: kotlin.Boolean? = null
/**
* Label used for the entity.
*/
public var label: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.Entity) : this() {
this.category = x.category
this.customProperties = x.customProperties
this.description = x.description
this.entityName = x.entityName
this.isParentEntity = x.isParentEntity
this.label = x.label
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.Entity = Entity(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy