commonMain.aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentResponse.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
public class ValidateSolFunctionPackageContentResponse private constructor(builder: Builder) {
/**
* Function package ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* Function package metadata.
*/
public val metadata: aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentMetadata? = builder.metadata
/**
* Network function product name.
*/
public val vnfProductName: kotlin.String = requireNotNull(builder.vnfProductName) { "A non-null value must be provided for vnfProductName" }
/**
* Network function provider.
*/
public val vnfProvider: kotlin.String = requireNotNull(builder.vnfProvider) { "A non-null value must be provided for vnfProvider" }
/**
* Function package descriptor ID.
*/
public val vnfdId: kotlin.String = requireNotNull(builder.vnfdId) { "A non-null value must be provided for vnfdId" }
/**
* Function package descriptor version.
*/
public val vnfdVersion: kotlin.String = requireNotNull(builder.vnfdVersion) { "A non-null value must be provided for vnfdVersion" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ValidateSolFunctionPackageContentResponse(")
append("id=$id,")
append("metadata=$metadata,")
append("vnfProductName=$vnfProductName,")
append("vnfProvider=$vnfProvider,")
append("vnfdId=$vnfdId,")
append("vnfdVersion=$vnfdVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id.hashCode()
result = 31 * result + (metadata?.hashCode() ?: 0)
result = 31 * result + (vnfProductName.hashCode())
result = 31 * result + (vnfProvider.hashCode())
result = 31 * result + (vnfdId.hashCode())
result = 31 * result + (vnfdVersion.hashCode())
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 ValidateSolFunctionPackageContentResponse
if (id != other.id) return false
if (metadata != other.metadata) return false
if (vnfProductName != other.vnfProductName) return false
if (vnfProvider != other.vnfProvider) return false
if (vnfdId != other.vnfdId) return false
if (vnfdVersion != other.vnfdVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Function package ID.
*/
public var id: kotlin.String? = null
/**
* Function package metadata.
*/
public var metadata: aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentMetadata? = null
/**
* Network function product name.
*/
public var vnfProductName: kotlin.String? = null
/**
* Network function provider.
*/
public var vnfProvider: kotlin.String? = null
/**
* Function package descriptor ID.
*/
public var vnfdId: kotlin.String? = null
/**
* Function package descriptor version.
*/
public var vnfdVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentResponse) : this() {
this.id = x.id
this.metadata = x.metadata
this.vnfProductName = x.vnfProductName
this.vnfProvider = x.vnfProvider
this.vnfdId = x.vnfdId
this.vnfdVersion = x.vnfdVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentResponse = ValidateSolFunctionPackageContentResponse(this)
/**
* construct an [aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentMetadata] inside the given [block]
*/
public fun metadata(block: aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentMetadata.Builder.() -> kotlin.Unit) {
this.metadata = aws.sdk.kotlin.services.tnb.model.ValidateSolFunctionPackageContentMetadata.invoke(block)
}
internal fun correctErrors(): Builder {
if (id == null) id = ""
if (vnfProductName == null) vnfProductName = ""
if (vnfProvider == null) vnfProvider = ""
if (vnfdId == null) vnfdId = ""
if (vnfdVersion == null) vnfdVersion = ""
return this
}
}
}