commonMain.aws.sdk.kotlin.services.tnb.model.GetSolVnfcResourceInfoMetadata.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
/**
* The metadata of a network function.
*
* A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
*/
public class GetSolVnfcResourceInfoMetadata private constructor(builder: Builder) {
/**
* Information about the cluster.
*/
public val cluster: kotlin.String? = builder.cluster
/**
* Information about the helm chart.
*/
public val helmChart: kotlin.String? = builder.helmChart
/**
* Information about the node group.
*/
public val nodeGroup: kotlin.String? = builder.nodeGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.tnb.model.GetSolVnfcResourceInfoMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSolVnfcResourceInfoMetadata(")
append("cluster=$cluster,")
append("helmChart=$helmChart,")
append("nodeGroup=$nodeGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cluster?.hashCode() ?: 0
result = 31 * result + (helmChart?.hashCode() ?: 0)
result = 31 * result + (nodeGroup?.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 GetSolVnfcResourceInfoMetadata
if (cluster != other.cluster) return false
if (helmChart != other.helmChart) return false
if (nodeGroup != other.nodeGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.GetSolVnfcResourceInfoMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the cluster.
*/
public var cluster: kotlin.String? = null
/**
* Information about the helm chart.
*/
public var helmChart: kotlin.String? = null
/**
* Information about the node group.
*/
public var nodeGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.tnb.model.GetSolVnfcResourceInfoMetadata) : this() {
this.cluster = x.cluster
this.helmChart = x.helmChart
this.nodeGroup = x.nodeGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.GetSolVnfcResourceInfoMetadata = GetSolVnfcResourceInfoMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}