
commonMain.aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The details of a customer managed fleet configuration.
*/
public class CustomerManagedFleetConfiguration private constructor(builder: Builder) {
/**
* The Auto Scaling mode for the customer managed fleet configuration.
*/
public val mode: aws.sdk.kotlin.services.deadline.model.AutoScalingMode = requireNotNull(builder.mode) { "A non-null value must be provided for mode" }
/**
* The storage profile ID.
*/
public val storageProfileId: kotlin.String? = builder.storageProfileId
/**
* The worker capabilities for a customer managed fleet configuration.
*/
public val workerCapabilities: aws.sdk.kotlin.services.deadline.model.CustomerManagedWorkerCapabilities? = builder.workerCapabilities
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomerManagedFleetConfiguration(")
append("mode=$mode,")
append("storageProfileId=$storageProfileId,")
append("workerCapabilities=$workerCapabilities")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mode.hashCode()
result = 31 * result + (storageProfileId?.hashCode() ?: 0)
result = 31 * result + (workerCapabilities?.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 CustomerManagedFleetConfiguration
if (mode != other.mode) return false
if (storageProfileId != other.storageProfileId) return false
if (workerCapabilities != other.workerCapabilities) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Auto Scaling mode for the customer managed fleet configuration.
*/
public var mode: aws.sdk.kotlin.services.deadline.model.AutoScalingMode? = null
/**
* The storage profile ID.
*/
public var storageProfileId: kotlin.String? = null
/**
* The worker capabilities for a customer managed fleet configuration.
*/
public var workerCapabilities: aws.sdk.kotlin.services.deadline.model.CustomerManagedWorkerCapabilities? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration) : this() {
this.mode = x.mode
this.storageProfileId = x.storageProfileId
this.workerCapabilities = x.workerCapabilities
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration = CustomerManagedFleetConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.deadline.model.CustomerManagedWorkerCapabilities] inside the given [block]
*/
public fun workerCapabilities(block: aws.sdk.kotlin.services.deadline.model.CustomerManagedWorkerCapabilities.Builder.() -> kotlin.Unit) {
this.workerCapabilities = aws.sdk.kotlin.services.deadline.model.CustomerManagedWorkerCapabilities.invoke(block)
}
internal fun correctErrors(): Builder {
if (mode == null) mode = AutoScalingMode.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy