All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.ViewDefinition.kt Maven / Gradle / Ivy

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

/**
 * A structure containing details for representations.
 */
public class ViewDefinition 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 representations.
     */
    public val representations: List? = builder.representations
    /**
     * A list of table Amazon Resource Names (ARNs).
     */
    public val subObjects: List? = builder.subObjects

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ViewDefinition = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ViewDefinition(")
        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 ViewDefinition

        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.ViewDefinition = 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 representations.
         */
        public var representations: List? = null
        /**
         * A list of table Amazon Resource Names (ARNs).
         */
        public var subObjects: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.ViewDefinition) : 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.ViewDefinition = ViewDefinition(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy