commonMain.aws.sdk.kotlin.services.glue.model.ViewRepresentationInput.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure containing details of a representation to update or create a Lake Formation view.
*/
public class ViewRepresentationInput private constructor(builder: Builder) {
/**
* A parameter that specifies the engine type of a specific representation.
*/
public val dialect: aws.sdk.kotlin.services.glue.model.ViewDialect? = builder.dialect
/**
* A parameter that specifies the version of the engine of a specific representation.
*/
public val dialectVersion: kotlin.String? = builder.dialectVersion
/**
* The name of the connection to be used to validate the specific representation of the view.
*/
public val validationConnection: kotlin.String? = builder.validationConnection
/**
* A string that represents the SQL query that describes the view with expanded resource ARNs
*/
public val viewExpandedText: kotlin.String? = builder.viewExpandedText
/**
* A string that represents the original SQL query that describes the view.
*/
public val viewOriginalText: kotlin.String? = builder.viewOriginalText
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ViewRepresentationInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ViewRepresentationInput(")
append("dialect=$dialect,")
append("dialectVersion=$dialectVersion,")
append("validationConnection=$validationConnection,")
append("viewExpandedText=$viewExpandedText,")
append("viewOriginalText=$viewOriginalText")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dialect?.hashCode() ?: 0
result = 31 * result + (dialectVersion?.hashCode() ?: 0)
result = 31 * result + (validationConnection?.hashCode() ?: 0)
result = 31 * result + (viewExpandedText?.hashCode() ?: 0)
result = 31 * result + (viewOriginalText?.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 ViewRepresentationInput
if (dialect != other.dialect) return false
if (dialectVersion != other.dialectVersion) return false
if (validationConnection != other.validationConnection) return false
if (viewExpandedText != other.viewExpandedText) return false
if (viewOriginalText != other.viewOriginalText) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ViewRepresentationInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A parameter that specifies the engine type of a specific representation.
*/
public var dialect: aws.sdk.kotlin.services.glue.model.ViewDialect? = null
/**
* A parameter that specifies the version of the engine of a specific representation.
*/
public var dialectVersion: kotlin.String? = null
/**
* The name of the connection to be used to validate the specific representation of the view.
*/
public var validationConnection: kotlin.String? = null
/**
* A string that represents the SQL query that describes the view with expanded resource ARNs
*/
public var viewExpandedText: kotlin.String? = null
/**
* A string that represents the original SQL query that describes the view.
*/
public var viewOriginalText: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ViewRepresentationInput) : this() {
this.dialect = x.dialect
this.dialectVersion = x.dialectVersion
this.validationConnection = x.validationConnection
this.viewExpandedText = x.viewExpandedText
this.viewOriginalText = x.viewOriginalText
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ViewRepresentationInput = ViewRepresentationInput(this)
internal fun correctErrors(): Builder {
return this
}
}
}