commonMain.aws.sdk.kotlin.services.deadline.model.FleetConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// 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
}