
commonMain.aws.sdk.kotlin.services.drs.model.Licensing.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.drs.model
/**
* Configuration of a machine's license.
*/
public class Licensing private constructor(builder: Builder) {
/**
* Whether to enable "Bring your own license" or not.
*/
public val osByol: kotlin.Boolean? = builder.osByol
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.drs.model.Licensing = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Licensing(")
append("osByol=$osByol")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = osByol?.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 Licensing
if (osByol != other.osByol) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.drs.model.Licensing = Builder(this).apply(block).build()
public class Builder {
/**
* Whether to enable "Bring your own license" or not.
*/
public var osByol: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.drs.model.Licensing) : this() {
this.osByol = x.osByol
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.drs.model.Licensing = Licensing(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy