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

commonMain.aws.sdk.kotlin.services.tnb.model.CreateSolNetworkPackageResponse.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 CreateSolNetworkPackageResponse private constructor(builder: Builder) {
    /**
     * Network package ARN.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * ID of the network package.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * Onboarding state of the network service descriptor in the network package.
     */
    public val nsdOnboardingState: aws.sdk.kotlin.services.tnb.model.NsdOnboardingState = requireNotNull(builder.nsdOnboardingState) { "A non-null value must be provided for nsdOnboardingState" }
    /**
     * Operational state of the network service descriptor in the network package.
     */
    public val nsdOperationalState: aws.sdk.kotlin.services.tnb.model.NsdOperationalState = requireNotNull(builder.nsdOperationalState) { "A non-null value must be provided for nsdOperationalState" }
    /**
     * Usage state of the network service descriptor in the network package.
     */
    public val nsdUsageState: aws.sdk.kotlin.services.tnb.model.NsdUsageState = requireNotNull(builder.nsdUsageState) { "A non-null value must be provided for nsdUsageState" }
    /**
     * 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.CreateSolNetworkPackageResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateSolNetworkPackageResponse(")
        append("arn=$arn,")
        append("id=$id,")
        append("nsdOnboardingState=$nsdOnboardingState,")
        append("nsdOperationalState=$nsdOperationalState,")
        append("nsdUsageState=$nsdUsageState,")
        append("tags=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (id.hashCode())
        result = 31 * result + (nsdOnboardingState.hashCode())
        result = 31 * result + (nsdOperationalState.hashCode())
        result = 31 * result + (nsdUsageState.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 CreateSolNetworkPackageResponse

        if (arn != other.arn) return false
        if (id != other.id) return false
        if (nsdOnboardingState != other.nsdOnboardingState) return false
        if (nsdOperationalState != other.nsdOperationalState) return false
        if (nsdUsageState != other.nsdUsageState) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Network package ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * ID of the network package.
         */
        public var id: kotlin.String? = null
        /**
         * Onboarding state of the network service descriptor in the network package.
         */
        public var nsdOnboardingState: aws.sdk.kotlin.services.tnb.model.NsdOnboardingState? = null
        /**
         * Operational state of the network service descriptor in the network package.
         */
        public var nsdOperationalState: aws.sdk.kotlin.services.tnb.model.NsdOperationalState? = null
        /**
         * Usage state of the network service descriptor in the network package.
         */
        public var nsdUsageState: aws.sdk.kotlin.services.tnb.model.NsdUsageState? = 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.CreateSolNetworkPackageResponse) : this() {
            this.arn = x.arn
            this.id = x.id
            this.nsdOnboardingState = x.nsdOnboardingState
            this.nsdOperationalState = x.nsdOperationalState
            this.nsdUsageState = x.nsdUsageState
            this.tags = x.tags
        }

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

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            if (id == null) id = ""
            if (nsdOnboardingState == null) nsdOnboardingState = NsdOnboardingState.SdkUnknown("no value provided")
            if (nsdOperationalState == null) nsdOperationalState = NsdOperationalState.SdkUnknown("no value provided")
            if (nsdUsageState == null) nsdUsageState = NsdUsageState.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy