commonMain.aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageResponse.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 GetSolNetworkPackageResponse 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" }
/**
* Metadata associated with a network package.
*
* A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.
*/
public val metadata: aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageMetadata? = 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 onboarding state.
*/
public val nsdOnboardingState: aws.sdk.kotlin.services.tnb.model.NsdOnboardingState = requireNotNull(builder.nsdOnboardingState) { "A non-null value must be provided for nsdOnboardingState" }
/**
* Network service descriptor operational state.
*/
public val nsdOperationalState: aws.sdk.kotlin.services.tnb.model.NsdOperationalState = requireNotNull(builder.nsdOperationalState) { "A non-null value must be provided for nsdOperationalState" }
/**
* Network service descriptor usage state.
*/
public val nsdUsageState: aws.sdk.kotlin.services.tnb.model.NsdUsageState = requireNotNull(builder.nsdUsageState) { "A non-null value must be provided for nsdUsageState" }
/**
* Network service descriptor version.
*/
public val nsdVersion: kotlin.String = requireNotNull(builder.nsdVersion) { "A non-null value must be provided for nsdVersion" }
/**
* 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
/**
* Identifies the function package for the function package descriptor referenced by the onboarded network package.
*/
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.GetSolNetworkPackageResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSolNetworkPackageResponse(")
append("arn=$arn,")
append("id=$id,")
append("metadata=$metadata,")
append("nsdId=$nsdId,")
append("nsdName=$nsdName,")
append("nsdOnboardingState=$nsdOnboardingState,")
append("nsdOperationalState=$nsdOperationalState,")
append("nsdUsageState=$nsdUsageState,")
append("nsdVersion=$nsdVersion,")
append("tags=*** Sensitive Data Redacted ***,")
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 + (nsdOnboardingState.hashCode())
result = 31 * result + (nsdOperationalState.hashCode())
result = 31 * result + (nsdUsageState.hashCode())
result = 31 * result + (nsdVersion.hashCode())
result = 31 * result + (tags?.hashCode() ?: 0)
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 GetSolNetworkPackageResponse
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 (nsdOnboardingState != other.nsdOnboardingState) return false
if (nsdOperationalState != other.nsdOperationalState) return false
if (nsdUsageState != other.nsdUsageState) return false
if (nsdVersion != other.nsdVersion) return false
if (tags != other.tags) return false
if (vnfPkgIds != other.vnfPkgIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageResponse = 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
/**
* Metadata associated with a network package.
*
* A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.
*/
public var metadata: aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageMetadata? = null
/**
* Network service descriptor ID.
*/
public var nsdId: kotlin.String? = null
/**
* Network service descriptor name.
*/
public var nsdName: kotlin.String? = null
/**
* Network service descriptor onboarding state.
*/
public var nsdOnboardingState: aws.sdk.kotlin.services.tnb.model.NsdOnboardingState? = null
/**
* Network service descriptor operational state.
*/
public var nsdOperationalState: aws.sdk.kotlin.services.tnb.model.NsdOperationalState? = null
/**
* Network service descriptor usage state.
*/
public var nsdUsageState: aws.sdk.kotlin.services.tnb.model.NsdUsageState? = null
/**
* Network service descriptor version.
*/
public var nsdVersion: kotlin.String? = 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
/**
* Identifies the function package for the function package descriptor referenced by the onboarded network package.
*/
public var vnfPkgIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageResponse) : this() {
this.arn = x.arn
this.id = x.id
this.metadata = x.metadata
this.nsdId = x.nsdId
this.nsdName = x.nsdName
this.nsdOnboardingState = x.nsdOnboardingState
this.nsdOperationalState = x.nsdOperationalState
this.nsdUsageState = x.nsdUsageState
this.nsdVersion = x.nsdVersion
this.tags = x.tags
this.vnfPkgIds = x.vnfPkgIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageResponse = GetSolNetworkPackageResponse(this)
/**
* construct an [aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageMetadata] inside the given [block]
*/
public fun metadata(block: aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageMetadata.Builder.() -> kotlin.Unit) {
this.metadata = aws.sdk.kotlin.services.tnb.model.GetSolNetworkPackageMetadata.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (id == null) id = ""
if (nsdId == null) nsdId = ""
if (nsdName == null) nsdName = ""
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")
if (nsdVersion == null) nsdVersion = ""
if (vnfPkgIds == null) vnfPkgIds = emptyList()
return this
}
}
}