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

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

/**
 * Validates function package content metadata.
 *
 * A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.
 */
public class ValidateSolFunctionPackageContentMetadata private constructor(builder: Builder) {
    /**
     * Metadata for function package artifacts.
     *
     * Artifacts are the contents of the package descriptor file and the state of the package.
     */
    public val vnfd: aws.sdk.kotlin.services.tnb.model.FunctionArtifactMeta? = builder.vnfd

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

    override fun toString(): kotlin.String = buildString {
        append("ValidateSolFunctionPackageContentMetadata(")
        append("vnfd=$vnfd")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = vnfd?.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 ValidateSolFunctionPackageContentMetadata

        if (vnfd != other.vnfd) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Metadata for function package artifacts.
         *
         * Artifacts are the contents of the package descriptor file and the state of the package.
         */
        public var vnfd: aws.sdk.kotlin.services.tnb.model.FunctionArtifactMeta? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentMetadata) : this() {
            this.vnfd = x.vnfd
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.tnb.model.FunctionArtifactMeta] inside the given [block]
         */
        public fun vnfd(block: aws.sdk.kotlin.services.tnb.model.FunctionArtifactMeta.Builder.() -> kotlin.Unit) {
            this.vnfd = aws.sdk.kotlin.services.tnb.model.FunctionArtifactMeta.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy