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

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

There is a newer version: 1.3.76
Show 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 job and session values that an admin configures in an Glue usage profile.
 */
public class ProfileConfiguration private constructor(builder: Builder) {
    /**
     * A key-value map of configuration parameters for Glue jobs.
     */
    public val jobConfiguration: Map? = builder.jobConfiguration
    /**
     * A key-value map of configuration parameters for Glue sessions.
     */
    public val sessionConfiguration: Map? = builder.sessionConfiguration

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

    override fun toString(): kotlin.String = buildString {
        append("ProfileConfiguration(")
        append("jobConfiguration=$jobConfiguration,")
        append("sessionConfiguration=$sessionConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobConfiguration?.hashCode() ?: 0
        result = 31 * result + (sessionConfiguration?.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 ProfileConfiguration

        if (jobConfiguration != other.jobConfiguration) return false
        if (sessionConfiguration != other.sessionConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A key-value map of configuration parameters for Glue jobs.
         */
        public var jobConfiguration: Map? = null
        /**
         * A key-value map of configuration parameters for Glue sessions.
         */
        public var sessionConfiguration: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.ProfileConfiguration) : this() {
            this.jobConfiguration = x.jobConfiguration
            this.sessionConfiguration = x.sessionConfiguration
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy