commonMain.aws.sdk.kotlin.services.glue.model.ViewDefinitionInput.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 for creating or updating an Glue view.
*/
public class ViewDefinitionInput private constructor(builder: Builder) {
/**
* The definer of a view in SQL.
*/
public val definer: kotlin.String? = builder.definer
/**
* You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.
*/
public val isProtected: kotlin.Boolean? = builder.isProtected
/**
* A list of structures that contains the dialect of the view, and the query that defines the view.
*/
public val representations: List? = builder.representations
/**
* A list of base table ARNs that make up the view.
*/
public val subObjects: List? = builder.subObjects
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ViewDefinitionInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ViewDefinitionInput(")
append("definer=$definer,")
append("isProtected=$isProtected,")
append("representations=$representations,")
append("subObjects=$subObjects")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = definer?.hashCode() ?: 0
result = 31 * result + (isProtected?.hashCode() ?: 0)
result = 31 * result + (representations?.hashCode() ?: 0)
result = 31 * result + (subObjects?.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 ViewDefinitionInput
if (definer != other.definer) return false
if (isProtected != other.isProtected) return false
if (representations != other.representations) return false
if (subObjects != other.subObjects) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ViewDefinitionInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The definer of a view in SQL.
*/
public var definer: kotlin.String? = null
/**
* You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.
*/
public var isProtected: kotlin.Boolean? = null
/**
* A list of structures that contains the dialect of the view, and the query that defines the view.
*/
public var representations: List? = null
/**
* A list of base table ARNs that make up the view.
*/
public var subObjects: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ViewDefinitionInput) : this() {
this.definer = x.definer
this.isProtected = x.isProtected
this.representations = x.representations
this.subObjects = x.subObjects
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ViewDefinitionInput = ViewDefinitionInput(this)
internal fun correctErrors(): Builder {
return this
}
}
}