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

commonMain.aws.sdk.kotlin.services.datazone.model.UpdateEnvironmentActionResponse.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.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateEnvironmentActionResponse private constructor(builder: Builder) {
    /**
     * The description of the environment action.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The domain ID of the environment action.
     */
    public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
    /**
     * The environment ID of the environment action.
     */
    public val environmentId: kotlin.String = requireNotNull(builder.environmentId) { "A non-null value must be provided for environmentId" }
    /**
     * The ID of the environment action.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The name of the environment action.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The parameters of the environment action.
     */
    public val parameters: aws.sdk.kotlin.services.datazone.model.ActionParameters? = builder.parameters

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateEnvironmentActionResponse(")
        append("description=$description,")
        append("domainId=$domainId,")
        append("environmentId=$environmentId,")
        append("id=$id,")
        append("name=$name,")
        append("parameters=$parameters")
        append(")")
    }

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

        if (description != other.description) return false
        if (domainId != other.domainId) return false
        if (environmentId != other.environmentId) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (parameters != other.parameters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The description of the environment action.
         */
        public var description: kotlin.String? = null
        /**
         * The domain ID of the environment action.
         */
        public var domainId: kotlin.String? = null
        /**
         * The environment ID of the environment action.
         */
        public var environmentId: kotlin.String? = null
        /**
         * The ID of the environment action.
         */
        public var id: kotlin.String? = null
        /**
         * The name of the environment action.
         */
        public var name: kotlin.String? = null
        /**
         * The parameters of the environment action.
         */
        public var parameters: aws.sdk.kotlin.services.datazone.model.ActionParameters? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateEnvironmentActionResponse) : this() {
            this.description = x.description
            this.domainId = x.domainId
            this.environmentId = x.environmentId
            this.id = x.id
            this.name = x.name
            this.parameters = x.parameters
        }

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

        internal fun correctErrors(): Builder {
            if (domainId == null) domainId = ""
            if (environmentId == null) environmentId = ""
            if (id == null) id = ""
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy