
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.BundleInformation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* Information about the pricing bundle.
*/
public class BundleInformation private constructor(builder: Builder) {
/**
* The bundle names.
*/
public val bundleNames: List = requireNotNull(builder.bundleNames) { "A non-null value must be provided for bundleNames" }
/**
* The pricing tier.
*/
public val pricingTier: aws.sdk.kotlin.services.iottwinmaker.model.PricingTier? = builder.pricingTier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.BundleInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BundleInformation(")
append("bundleNames=$bundleNames,")
append("pricingTier=$pricingTier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bundleNames.hashCode()
result = 31 * result + (pricingTier?.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 BundleInformation
if (bundleNames != other.bundleNames) return false
if (pricingTier != other.pricingTier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.BundleInformation = Builder(this).apply(block).build()
public class Builder {
/**
* The bundle names.
*/
public var bundleNames: List? = null
/**
* The pricing tier.
*/
public var pricingTier: aws.sdk.kotlin.services.iottwinmaker.model.PricingTier? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.BundleInformation) : this() {
this.bundleNames = x.bundleNames
this.pricingTier = x.pricingTier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.BundleInformation = BundleInformation(this)
internal fun correctErrors(): Builder {
if (bundleNames == null) bundleNames = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy