
commonMain.aws.sdk.kotlin.services.lightsail.model.DistributionBundle.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes the specifications of a distribution bundle.
*/
public class DistributionBundle private constructor(builder: Builder) {
/**
* The ID of the bundle.
*/
public val bundleId: kotlin.String? = builder.bundleId
/**
* Indicates whether the bundle is active, and can be specified for a new or existing distribution.
*/
public val isActive: kotlin.Boolean? = builder.isActive
/**
* The name of the distribution bundle.
*/
public val name: kotlin.String? = builder.name
/**
* The monthly price, in US dollars, of the bundle.
*/
public val price: kotlin.Float? = builder.price
/**
* The monthly network transfer quota of the bundle.
*/
public val transferPerMonthInGb: kotlin.Int? = builder.transferPerMonthInGb
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.DistributionBundle = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DistributionBundle(")
append("bundleId=$bundleId,")
append("isActive=$isActive,")
append("name=$name,")
append("price=$price,")
append("transferPerMonthInGb=$transferPerMonthInGb")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bundleId?.hashCode() ?: 0
result = 31 * result + (isActive?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (price?.hashCode() ?: 0)
result = 31 * result + (transferPerMonthInGb ?: 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 DistributionBundle
if (bundleId != other.bundleId) return false
if (isActive != other.isActive) return false
if (name != other.name) return false
if (price != other.price) return false
if (transferPerMonthInGb != other.transferPerMonthInGb) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.DistributionBundle = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the bundle.
*/
public var bundleId: kotlin.String? = null
/**
* Indicates whether the bundle is active, and can be specified for a new or existing distribution.
*/
public var isActive: kotlin.Boolean? = null
/**
* The name of the distribution bundle.
*/
public var name: kotlin.String? = null
/**
* The monthly price, in US dollars, of the bundle.
*/
public var price: kotlin.Float? = null
/**
* The monthly network transfer quota of the bundle.
*/
public var transferPerMonthInGb: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.DistributionBundle) : this() {
this.bundleId = x.bundleId
this.isActive = x.isActive
this.name = x.name
this.price = x.price
this.transferPerMonthInGb = x.transferPerMonthInGb
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.DistributionBundle = DistributionBundle(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy