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

commonMain.aws.sdk.kotlin.services.iotfleetwise.model.NetworkFileDefinition.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotfleetwise.model



/**
 * Specifications for defining a vehicle network.
 */
public sealed class NetworkFileDefinition {
    /**
     * Information, including CAN DBC files, about the configurations used to create a decoder manifest.
     */
    public data class CanDbc(val value: aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition) : aws.sdk.kotlin.services.iotfleetwise.model.NetworkFileDefinition() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.iotfleetwise.model.NetworkFileDefinition() {
    }

    /**
     * Casts this [NetworkFileDefinition] as a [CanDbc] and retrieves its [aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition] value. Throws an exception if the [NetworkFileDefinition] is not a
     * [CanDbc].
     */
    public fun asCanDbc(): aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition = (this as NetworkFileDefinition.CanDbc).value

    /**
     * Casts this [NetworkFileDefinition] as a [CanDbc] and retrieves its [aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition] value. Returns null if the [NetworkFileDefinition] is not a [CanDbc].
     */
    public fun asCanDbcOrNull(): aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition? = (this as? NetworkFileDefinition.CanDbc)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy