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

commonMain.aws.sdk.kotlin.services.appconfig.model.UpdateExtensionRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.4.42
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appconfig.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateExtensionRequest private constructor(builder: Builder) {
    /**
     * The actions defined in the extension.
     */
    public val actions: Map>? = builder.actions
    /**
     * Information about the extension.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name, the ID, or the Amazon Resource Name (ARN) of the extension.
     */
    public val extensionIdentifier: kotlin.String? = builder.extensionIdentifier
    /**
     * One or more parameters for the actions called by the extension.
     */
    public val parameters: Map? = builder.parameters
    /**
     * The extension version number.
     */
    public val versionNumber: kotlin.Int? = builder.versionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateExtensionRequest(")
        append("actions=$actions,")
        append("description=$description,")
        append("extensionIdentifier=$extensionIdentifier,")
        append("parameters=$parameters,")
        append("versionNumber=$versionNumber")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actions?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (extensionIdentifier?.hashCode() ?: 0)
        result = 31 * result + (parameters?.hashCode() ?: 0)
        result = 31 * result + (versionNumber ?: 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 UpdateExtensionRequest

        if (actions != other.actions) return false
        if (description != other.description) return false
        if (extensionIdentifier != other.extensionIdentifier) return false
        if (parameters != other.parameters) return false
        if (versionNumber != other.versionNumber) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The actions defined in the extension.
         */
        public var actions: Map>? = null
        /**
         * Information about the extension.
         */
        public var description: kotlin.String? = null
        /**
         * The name, the ID, or the Amazon Resource Name (ARN) of the extension.
         */
        public var extensionIdentifier: kotlin.String? = null
        /**
         * One or more parameters for the actions called by the extension.
         */
        public var parameters: Map? = null
        /**
         * The extension version number.
         */
        public var versionNumber: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appconfig.model.UpdateExtensionRequest) : this() {
            this.actions = x.actions
            this.description = x.description
            this.extensionIdentifier = x.extensionIdentifier
            this.parameters = x.parameters
            this.versionNumber = x.versionNumber
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy