commonMain.aws.sdk.kotlin.services.tnb.model.CreateSolFunctionPackageResponse.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 CreateSolFunctionPackageResponse private constructor(builder: Builder) {
/**
* Function package ARN.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* ID of the function package.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* Onboarding state of the function package.
*/
public val onboardingState: aws.sdk.kotlin.services.tnb.model.OnboardingState = requireNotNull(builder.onboardingState) { "A non-null value must be provided for onboardingState" }
/**
* Operational state of the function package.
*/
public val operationalState: aws.sdk.kotlin.services.tnb.model.OperationalState = requireNotNull(builder.operationalState) { "A non-null value must be provided for operationalState" }
/**
* 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
/**
* Usage state of the function package.
*/
public val usageState: aws.sdk.kotlin.services.tnb.model.UsageState = requireNotNull(builder.usageState) { "A non-null value must be provided for usageState" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.tnb.model.CreateSolFunctionPackageResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSolFunctionPackageResponse(")
append("arn=$arn,")
append("id=$id,")
append("onboardingState=$onboardingState,")
append("operationalState=$operationalState,")
append("tags=*** Sensitive Data Redacted ***,")
append("usageState=$usageState")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (id.hashCode())
result = 31 * result + (onboardingState.hashCode())
result = 31 * result + (operationalState.hashCode())
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (usageState.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 CreateSolFunctionPackageResponse
if (arn != other.arn) return false
if (id != other.id) return false
if (onboardingState != other.onboardingState) return false
if (operationalState != other.operationalState) return false
if (tags != other.tags) return false
if (usageState != other.usageState) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.tnb.model.CreateSolFunctionPackageResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Function package ARN.
*/
public var arn: kotlin.String? = null
/**
* ID of the function package.
*/
public var id: kotlin.String? = null
/**
* Onboarding state of the function package.
*/
public var onboardingState: aws.sdk.kotlin.services.tnb.model.OnboardingState? = null
/**
* Operational state of the function package.
*/
public var operationalState: aws.sdk.kotlin.services.tnb.model.OperationalState? = 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
/**
* Usage state of the function package.
*/
public var usageState: aws.sdk.kotlin.services.tnb.model.UsageState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.tnb.model.CreateSolFunctionPackageResponse) : this() {
this.arn = x.arn
this.id = x.id
this.onboardingState = x.onboardingState
this.operationalState = x.operationalState
this.tags = x.tags
this.usageState = x.usageState
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.tnb.model.CreateSolFunctionPackageResponse = CreateSolFunctionPackageResponse(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (id == null) id = ""
if (onboardingState == null) onboardingState = OnboardingState.SdkUnknown("no value provided")
if (operationalState == null) operationalState = OperationalState.SdkUnknown("no value provided")
if (usageState == null) usageState = UsageState.SdkUnknown("no value provided")
return this
}
}
}