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