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

commonMain.aws.sdk.kotlin.services.tnb.model.CreateSolNetworkInstanceRequest.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 CreateSolNetworkInstanceRequest private constructor(builder: Builder) {
    /**
     * Network instance description.
     */
    public val nsDescription: kotlin.String? = builder.nsDescription
    /**
     * Network instance name.
     */
    public val nsName: kotlin.String? = builder.nsName
    /**
     * ID for network service descriptor.
     */
    public val nsdInfoId: kotlin.String? = builder.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.CreateSolNetworkInstanceRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateSolNetworkInstanceRequest(")
        append("nsDescription=$nsDescription,")
        append("nsName=$nsName,")
        append("nsdInfoId=$nsdInfoId,")
        append("tags=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = nsDescription?.hashCode() ?: 0
        result = 31 * result + (nsName?.hashCode() ?: 0)
        result = 31 * result + (nsdInfoId?.hashCode() ?: 0)
        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 CreateSolNetworkInstanceRequest

        if (nsDescription != other.nsDescription) return false
        if (nsName != other.nsName) 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.CreateSolNetworkInstanceRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Network instance description.
         */
        public var nsDescription: kotlin.String? = null
        /**
         * Network instance name.
         */
        public var nsName: kotlin.String? = null
        /**
         * ID for network service descriptor.
         */
        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.CreateSolNetworkInstanceRequest) : this() {
            this.nsDescription = x.nsDescription
            this.nsName = x.nsName
            this.nsdInfoId = x.nsdInfoId
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy