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

commonMain.aws.sdk.kotlin.services.tnb.model.CreateSolNetworkInstanceResponse.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.tnb.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateSolNetworkInstanceResponse private constructor(builder: Builder) {
    /**
     * Network instance ARN.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * Network instance ID.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * Network instance name.
     */
    public val nsInstanceName: kotlin.String = requireNotNull(builder.nsInstanceName) { "A non-null value must be provided for nsInstanceName" }
    /**
     * Network service descriptor ID.
     */
    public val nsdInfoId: kotlin.String = requireNotNull(builder.nsdInfoId) { "A non-null value must be provided for nsdInfoId" }
    /**
     * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateSolNetworkInstanceResponse(")
        append("arn=$arn,")
        append("id=$id,")
        append("nsInstanceName=$nsInstanceName,")
        append("nsdInfoId=$nsdInfoId,")
        append("tags=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (id.hashCode())
        result = 31 * result + (nsInstanceName.hashCode())
        result = 31 * result + (nsdInfoId.hashCode())
        result = 31 * result + (tags?.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 CreateSolNetworkInstanceResponse

        if (arn != other.arn) return false
        if (id != other.id) return false
        if (nsInstanceName != other.nsInstanceName) return false
        if (nsdInfoId != other.nsdInfoId) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Network instance ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * Network instance ID.
         */
        public var id: kotlin.String? = null
        /**
         * Network instance name.
         */
        public var nsInstanceName: kotlin.String? = null
        /**
         * Network service descriptor ID.
         */
        public var nsdInfoId: kotlin.String? = null
        /**
         * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.tnb.model.CreateSolNetworkInstanceResponse) : this() {
            this.arn = x.arn
            this.id = x.id
            this.nsInstanceName = x.nsInstanceName
            this.nsdInfoId = x.nsdInfoId
            this.tags = x.tags
        }

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

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            if (id == null) id = ""
            if (nsInstanceName == null) nsInstanceName = ""
            if (nsdInfoId == null) nsdInfoId = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy