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

aws.sdk.kotlin.services.configservice.model.ConformancePackInputParameter.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.configservice.model



/**
 * Input parameters in the form of key-value pairs for the conformance pack, both of which you define.
 * Keys can have a maximum character length of 255 characters, and values can have a maximum length of 4096 characters.
 */
class ConformancePackInputParameter private constructor(builder: Builder) {
    /**
     * One part of a key-value pair.
     */
    val parameterName: kotlin.String? = builder.parameterName
    /**
     * Another part of the key-value pair.
     */
    val parameterValue: kotlin.String? = builder.parameterValue

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

    override fun toString(): kotlin.String = buildString {
        append("ConformancePackInputParameter(")
        append("parameterName=$parameterName,")
        append("parameterValue=$parameterValue)")
    }

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

        if (parameterName != other.parameterName) return false
        if (parameterValue != other.parameterValue) return false

        return true
    }

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

    class Builder {
        /**
         * One part of a key-value pair.
         */
        var parameterName: kotlin.String? = null
        /**
         * Another part of the key-value pair.
         */
        var parameterValue: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.ConformancePackInputParameter) : this() {
            this.parameterName = x.parameterName
            this.parameterValue = x.parameterValue
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.configservice.model.ConformancePackInputParameter = ConformancePackInputParameter(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy