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

commonMain.aws.sdk.kotlin.services.glue.model.ConfigurationObject.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

/**
 * Specifies the values that an admin sets for each job or session parameter configured in a Glue usage profile.
 */
public class ConfigurationObject private constructor(builder: Builder) {
    /**
     * A list of allowed values for the parameter.
     */
    public val allowedValues: List? = builder.allowedValues
    /**
     * A default value for the parameter.
     */
    public val defaultValue: kotlin.String? = builder.defaultValue
    /**
     * A maximum allowed value for the parameter.
     */
    public val maxValue: kotlin.String? = builder.maxValue
    /**
     * A minimum allowed value for the parameter.
     */
    public val minValue: kotlin.String? = builder.minValue

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

    override fun toString(): kotlin.String = buildString {
        append("ConfigurationObject(")
        append("allowedValues=$allowedValues,")
        append("defaultValue=$defaultValue,")
        append("maxValue=$maxValue,")
        append("minValue=$minValue")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = allowedValues?.hashCode() ?: 0
        result = 31 * result + (defaultValue?.hashCode() ?: 0)
        result = 31 * result + (maxValue?.hashCode() ?: 0)
        result = 31 * result + (minValue?.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 ConfigurationObject

        if (allowedValues != other.allowedValues) return false
        if (defaultValue != other.defaultValue) return false
        if (maxValue != other.maxValue) return false
        if (minValue != other.minValue) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ConfigurationObject = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A list of allowed values for the parameter.
         */
        public var allowedValues: List? = null
        /**
         * A default value for the parameter.
         */
        public var defaultValue: kotlin.String? = null
        /**
         * A maximum allowed value for the parameter.
         */
        public var maxValue: kotlin.String? = null
        /**
         * A minimum allowed value for the parameter.
         */
        public var minValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.ConfigurationObject) : this() {
            this.allowedValues = x.allowedValues
            this.defaultValue = x.defaultValue
            this.maxValue = x.maxValue
            this.minValue = x.minValue
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.ConfigurationObject = ConfigurationObject(this)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy