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

commonMain.aws.sdk.kotlin.services.appconfig.model.AppliedExtension.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

/**
 * An extension that was invoked during a deployment.
 */
public class AppliedExtension private constructor(builder: Builder) {
    /**
     * The system-generated ID for the association.
     */
    public val extensionAssociationId: kotlin.String? = builder.extensionAssociationId
    /**
     * The system-generated ID of the extension.
     */
    public val extensionId: kotlin.String? = builder.extensionId
    /**
     * 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.AppliedExtension = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AppliedExtension(")
        append("extensionAssociationId=$extensionAssociationId,")
        append("extensionId=$extensionId,")
        append("parameters=$parameters,")
        append("versionNumber=$versionNumber")
        append(")")
    }

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

        if (extensionAssociationId != other.extensionAssociationId) return false
        if (extensionId != other.extensionId) 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.AppliedExtension = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The system-generated ID for the association.
         */
        public var extensionAssociationId: kotlin.String? = null
        /**
         * The system-generated ID of the extension.
         */
        public var extensionId: 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 = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appconfig.model.AppliedExtension) : this() {
            this.extensionAssociationId = x.extensionAssociationId
            this.extensionId = x.extensionId
            this.parameters = x.parameters
            this.versionNumber = x.versionNumber
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy