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