commonMain.aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceResponse.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 GetSolNetworkInstanceResponse private constructor(builder: Builder) {
/**
* Network instance ARN.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* Network instance ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* Lifecycle management operation details on the network instance.
*
* Lifecycle management operations are deploy, update, or delete operations.
*/
public val lcmOpInfo: aws.sdk.kotlin.services.tnb.model.LcmOperationInfo? = builder.lcmOpInfo
/**
* The metadata of a network instance.
*
* 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 val metadata: aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceMetadata? = builder.metadata
/**
* Network instance description.
*/
public val nsInstanceDescription: kotlin.String = requireNotNull(builder.nsInstanceDescription) { "A non-null value must be provided for nsInstanceDescription" }
/**
* Network instance name.
*/
public val nsInstanceName: kotlin.String = requireNotNull(builder.nsInstanceName) { "A non-null value must be provided for nsInstanceName" }
/**
* Network instance state.
*/
public val nsState: aws.sdk.kotlin.services.tnb.model.NsState? = builder.nsState
/**
* Network service descriptor ID.
*/
public val nsdId: kotlin.String = requireNotNull(builder.nsdId) { "A non-null value must be provided for nsdId" }
/**
* Network service descriptor info ID.
*/
public val nsdInfoId: kotlin.String = requireNotNull(builder.nsdInfoId) { "A non-null value must be provided for nsdInfoId" }
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSolNetworkInstanceResponse(")
append("arn=$arn,")
append("id=$id,")
append("lcmOpInfo=$lcmOpInfo,")
append("metadata=$metadata,")
append("nsInstanceDescription=$nsInstanceDescription,")
append("nsInstanceName=$nsInstanceName,")
append("nsState=$nsState,")
append("nsdId=$nsdId,")
append("nsdInfoId=$nsdInfoId,")
append("tags=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (id.hashCode())
result = 31 * result + (lcmOpInfo?.hashCode() ?: 0)
result = 31 * result + (metadata?.hashCode() ?: 0)
result = 31 * result + (nsInstanceDescription.hashCode())
result = 31 * result + (nsInstanceName.hashCode())
result = 31 * result + (nsState?.hashCode() ?: 0)
result = 31 * result + (nsdId.hashCode())
result = 31 * result + (nsdInfoId.hashCode())
result = 31 * result + (tags?.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 GetSolNetworkInstanceResponse
if (arn != other.arn) return false
if (id != other.id) return false
if (lcmOpInfo != other.lcmOpInfo) return false
if (metadata != other.metadata) return false
if (nsInstanceDescription != other.nsInstanceDescription) return false
if (nsInstanceName != other.nsInstanceName) return false
if (nsState != other.nsState) return false
if (nsdId != other.nsdId) return false
if (nsdInfoId != other.nsdInfoId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Network instance ARN.
*/
public var arn: kotlin.String? = null
/**
* Network instance ID.
*/
public var id: kotlin.String? = null
/**
* Lifecycle management operation details on the network instance.
*
* Lifecycle management operations are deploy, update, or delete operations.
*/
public var lcmOpInfo: aws.sdk.kotlin.services.tnb.model.LcmOperationInfo? = null
/**
* The metadata of a network instance.
*
* 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 var metadata: aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceMetadata? = null
/**
* Network instance description.
*/
public var nsInstanceDescription: kotlin.String? = null
/**
* Network instance name.
*/
public var nsInstanceName: kotlin.String? = null
/**
* Network instance state.
*/
public var nsState: aws.sdk.kotlin.services.tnb.model.NsState? = null
/**
* Network service descriptor ID.
*/
public var nsdId: kotlin.String? = null
/**
* Network service descriptor info ID.
*/
public var nsdInfoId: 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceResponse) : this() {
this.arn = x.arn
this.id = x.id
this.lcmOpInfo = x.lcmOpInfo
this.metadata = x.metadata
this.nsInstanceDescription = x.nsInstanceDescription
this.nsInstanceName = x.nsInstanceName
this.nsState = x.nsState
this.nsdId = x.nsdId
this.nsdInfoId = x.nsdInfoId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceResponse = GetSolNetworkInstanceResponse(this)
/**
* construct an [aws.sdk.kotlin.services.tnb.model.LcmOperationInfo] inside the given [block]
*/
public fun lcmOpInfo(block: aws.sdk.kotlin.services.tnb.model.LcmOperationInfo.Builder.() -> kotlin.Unit) {
this.lcmOpInfo = aws.sdk.kotlin.services.tnb.model.LcmOperationInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceMetadata] inside the given [block]
*/
public fun metadata(block: aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceMetadata.Builder.() -> kotlin.Unit) {
this.metadata = aws.sdk.kotlin.services.tnb.model.GetSolNetworkInstanceMetadata.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (id == null) id = ""
if (nsInstanceDescription == null) nsInstanceDescription = ""
if (nsInstanceName == null) nsInstanceName = ""
if (nsdId == null) nsdId = ""
if (nsdInfoId == null) nsdInfoId = ""
return this
}
}
}