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

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

There is a newer version: 1.4.1
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 CreateExtensionResponse private constructor(builder: Builder) {
    /**
     * The actions defined in the extension.
     */
    public val actions: Map>? = builder.actions
    /**
     * The system-generated Amazon Resource Name (ARN) for the extension.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Information about the extension.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The system-generated ID of the extension.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The extension name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the `CreateExtensionAssociation` API action. For Lambda extension actions, these parameters are included in the Lambda request object.
     */
    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.CreateExtensionResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateExtensionResponse(")
        append("actions=$actions,")
        append("arn=$arn,")
        append("description=$description,")
        append("id=$id,")
        append("name=$name,")
        append("parameters=$parameters,")
        append("versionNumber=$versionNumber")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actions?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (name?.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 CreateExtensionResponse

        if (actions != other.actions) return false
        if (arn != other.arn) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (name != other.name) 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.CreateExtensionResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The actions defined in the extension.
         */
        public var actions: Map>? = null
        /**
         * The system-generated Amazon Resource Name (ARN) for the extension.
         */
        public var arn: kotlin.String? = null
        /**
         * Information about the extension.
         */
        public var description: kotlin.String? = null
        /**
         * The system-generated ID of the extension.
         */
        public var id: kotlin.String? = null
        /**
         * The extension name.
         */
        public var name: kotlin.String? = null
        /**
         * The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the `CreateExtensionAssociation` API action. For Lambda extension actions, these parameters are included in the Lambda request object.
         */
        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.CreateExtensionResponse) : this() {
            this.actions = x.actions
            this.arn = x.arn
            this.description = x.description
            this.id = x.id
            this.name = x.name
            this.parameters = x.parameters
            this.versionNumber = x.versionNumber
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy