commonMain.aws.sdk.kotlin.services.tnb.model.ModifyVnfInfoMetadata.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
import aws.smithy.kotlin.runtime.content.Document
/**
* Metadata related to the configuration properties used during update of a specific network function in a network instance.
*/
public class ModifyVnfInfoMetadata private constructor(builder: Builder) {
/**
* The configurable properties used during update of the network function instance.
*/
public val vnfConfigurableProperties: aws.smithy.kotlin.runtime.content.Document? = builder.vnfConfigurableProperties
/**
* The network function instance that was updated in the network instance.
*/
public val vnfInstanceId: kotlin.String = requireNotNull(builder.vnfInstanceId) { "A non-null value must be provided for vnfInstanceId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.tnb.model.ModifyVnfInfoMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyVnfInfoMetadata(")
append("vnfConfigurableProperties=$vnfConfigurableProperties,")
append("vnfInstanceId=$vnfInstanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = vnfConfigurableProperties?.hashCode() ?: 0
result = 31 * result + (vnfInstanceId.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 ModifyVnfInfoMetadata
if (vnfConfigurableProperties != other.vnfConfigurableProperties) return false
if (vnfInstanceId != other.vnfInstanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.ModifyVnfInfoMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configurable properties used during update of the network function instance.
*/
public var vnfConfigurableProperties: aws.smithy.kotlin.runtime.content.Document? = null
/**
* The network function instance that was updated in the network instance.
*/
public var vnfInstanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.tnb.model.ModifyVnfInfoMetadata) : this() {
this.vnfConfigurableProperties = x.vnfConfigurableProperties
this.vnfInstanceId = x.vnfInstanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.ModifyVnfInfoMetadata = ModifyVnfInfoMetadata(this)
internal fun correctErrors(): Builder {
if (vnfInstanceId == null) vnfInstanceId = ""
return this
}
}
}