commonMain.aws.sdk.kotlin.services.tnb.model.PutSolFunctionPackageContentMetadata.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tnb-jvm Show documentation
Show all versions of tnb-jvm Show documentation
The AWS SDK for Kotlin client for tnb
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.tnb.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Update metadata in a function package.
*
* 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 PutSolFunctionPackageContentMetadata 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.PutSolFunctionPackageContentMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutSolFunctionPackageContentMetadata(")
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 PutSolFunctionPackageContentMetadata
if (vnfd != other.vnfd) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.PutSolFunctionPackageContentMetadata = 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.PutSolFunctionPackageContentMetadata) : this() {
this.vnfd = x.vnfd
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.PutSolFunctionPackageContentMetadata = PutSolFunctionPackageContentMetadata(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
}
}
}