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

commonMain.aws.sdk.kotlin.services.neptune.model.Parameter.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.neptune.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies a parameter.
 */
public class Parameter private constructor(builder: Builder) {
    /**
     * Specifies the valid range of values for the parameter.
     */
    public val allowedValues: kotlin.String? = builder.allowedValues
    /**
     * Indicates when to apply parameter updates.
     */
    public val applyMethod: aws.sdk.kotlin.services.neptune.model.ApplyMethod? = builder.applyMethod
    /**
     * Specifies the engine specific parameters type.
     */
    public val applyType: kotlin.String? = builder.applyType
    /**
     * Specifies the valid data type for the parameter.
     */
    public val dataType: kotlin.String? = builder.dataType
    /**
     * Provides a description of the parameter.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Indicates whether (`true`) or not (`false`) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
     */
    public val isModifiable: kotlin.Boolean? = builder.isModifiable
    /**
     * The earliest engine version to which the parameter can apply.
     */
    public val minimumEngineVersion: kotlin.String? = builder.minimumEngineVersion
    /**
     * Specifies the name of the parameter.
     */
    public val parameterName: kotlin.String? = builder.parameterName
    /**
     * Specifies the value of the parameter.
     */
    public val parameterValue: kotlin.String? = builder.parameterValue
    /**
     * Indicates the source of the parameter value.
     */
    public val source: kotlin.String? = builder.source

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

    override fun toString(): kotlin.String = buildString {
        append("Parameter(")
        append("allowedValues=$allowedValues,")
        append("applyMethod=$applyMethod,")
        append("applyType=$applyType,")
        append("dataType=$dataType,")
        append("description=$description,")
        append("isModifiable=$isModifiable,")
        append("minimumEngineVersion=$minimumEngineVersion,")
        append("parameterName=$parameterName,")
        append("parameterValue=$parameterValue,")
        append("source=$source")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = allowedValues?.hashCode() ?: 0
        result = 31 * result + (applyMethod?.hashCode() ?: 0)
        result = 31 * result + (applyType?.hashCode() ?: 0)
        result = 31 * result + (dataType?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (isModifiable?.hashCode() ?: 0)
        result = 31 * result + (minimumEngineVersion?.hashCode() ?: 0)
        result = 31 * result + (parameterName?.hashCode() ?: 0)
        result = 31 * result + (parameterValue?.hashCode() ?: 0)
        result = 31 * result + (source?.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 Parameter

        if (allowedValues != other.allowedValues) return false
        if (applyMethod != other.applyMethod) return false
        if (applyType != other.applyType) return false
        if (dataType != other.dataType) return false
        if (description != other.description) return false
        if (isModifiable != other.isModifiable) return false
        if (minimumEngineVersion != other.minimumEngineVersion) return false
        if (parameterName != other.parameterName) return false
        if (parameterValue != other.parameterValue) return false
        if (source != other.source) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the valid range of values for the parameter.
         */
        public var allowedValues: kotlin.String? = null
        /**
         * Indicates when to apply parameter updates.
         */
        public var applyMethod: aws.sdk.kotlin.services.neptune.model.ApplyMethod? = null
        /**
         * Specifies the engine specific parameters type.
         */
        public var applyType: kotlin.String? = null
        /**
         * Specifies the valid data type for the parameter.
         */
        public var dataType: kotlin.String? = null
        /**
         * Provides a description of the parameter.
         */
        public var description: kotlin.String? = null
        /**
         * Indicates whether (`true`) or not (`false`) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
         */
        public var isModifiable: kotlin.Boolean? = null
        /**
         * The earliest engine version to which the parameter can apply.
         */
        public var minimumEngineVersion: kotlin.String? = null
        /**
         * Specifies the name of the parameter.
         */
        public var parameterName: kotlin.String? = null
        /**
         * Specifies the value of the parameter.
         */
        public var parameterValue: kotlin.String? = null
        /**
         * Indicates the source of the parameter value.
         */
        public var source: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptune.model.Parameter) : this() {
            this.allowedValues = x.allowedValues
            this.applyMethod = x.applyMethod
            this.applyType = x.applyType
            this.dataType = x.dataType
            this.description = x.description
            this.isModifiable = x.isModifiable
            this.minimumEngineVersion = x.minimumEngineVersion
            this.parameterName = x.parameterName
            this.parameterValue = x.parameterValue
            this.source = x.source
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy