All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.deadline.model.FleetConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.deadline.model



/**
 * Fleet configuration details.
 */
public sealed class FleetConfiguration {
    /**
     * The customer managed fleets within a fleet configuration.
     */
    public data class CustomerManaged(val value: aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration) : aws.sdk.kotlin.services.deadline.model.FleetConfiguration() {
    }

    /**
     * The service managed Amazon EC2 instances for a fleet configuration.
     */
    public data class ServiceManagedEc2(val value: aws.sdk.kotlin.services.deadline.model.ServiceManagedEc2FleetConfiguration) : aws.sdk.kotlin.services.deadline.model.FleetConfiguration() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.FleetConfiguration() {
    }

    /**
     * Casts this [FleetConfiguration] as a [CustomerManaged] and retrieves its [aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration] value. Throws an exception if the [FleetConfiguration] is not a
     * [CustomerManaged].
     */
    public fun asCustomerManaged(): aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration = (this as FleetConfiguration.CustomerManaged).value

    /**
     * Casts this [FleetConfiguration] as a [CustomerManaged] and retrieves its [aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration] value. Returns null if the [FleetConfiguration] is not a [CustomerManaged].
     */
    public fun asCustomerManagedOrNull(): aws.sdk.kotlin.services.deadline.model.CustomerManagedFleetConfiguration? = (this as? FleetConfiguration.CustomerManaged)?.value

    /**
     * Casts this [FleetConfiguration] as a [ServiceManagedEc2] and retrieves its [aws.sdk.kotlin.services.deadline.model.ServiceManagedEc2FleetConfiguration] value. Throws an exception if the [FleetConfiguration] is not a
     * [ServiceManagedEc2].
     */
    public fun asServiceManagedEc2(): aws.sdk.kotlin.services.deadline.model.ServiceManagedEc2FleetConfiguration = (this as FleetConfiguration.ServiceManagedEc2).value

    /**
     * Casts this [FleetConfiguration] as a [ServiceManagedEc2] and retrieves its [aws.sdk.kotlin.services.deadline.model.ServiceManagedEc2FleetConfiguration] value. Returns null if the [FleetConfiguration] is not a [ServiceManagedEc2].
     */
    public fun asServiceManagedEc2OrNull(): aws.sdk.kotlin.services.deadline.model.ServiceManagedEc2FleetConfiguration? = (this as? FleetConfiguration.ServiceManagedEc2)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy