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

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

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

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

import kotlin.collections.List

public sealed class SignalDecoderFailureReason {
    public abstract val value: kotlin.String

    public object CanSignalInfoIsNull : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "CAN_SIGNAL_INFO_IS_NULL"
        override fun toString(): kotlin.String = "CanSignalInfoIsNull"
    }

    public object ConflictingSignal : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "CONFLICTING_SIGNAL"
        override fun toString(): kotlin.String = "ConflictingSignal"
    }

    public object DuplicateSignal : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "DUPLICATE_SIGNAL"
        override fun toString(): kotlin.String = "DuplicateSignal"
    }

    public object EmptyMessageSignal : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "EMPTY_MESSAGE_SIGNAL"
        override fun toString(): kotlin.String = "EmptyMessageSignal"
    }

    public object MessageSignalInfoIsNull : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "MESSAGE_SIGNAL_INFO_IS_NULL"
        override fun toString(): kotlin.String = "MessageSignalInfoIsNull"
    }

    public object NetworkInterfaceTypeIncompatibleWithSignalDecoderType : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE"
        override fun toString(): kotlin.String = "NetworkInterfaceTypeIncompatibleWithSignalDecoderType"
    }

    public object NoDecoderInfoForSignalInModel : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL"
        override fun toString(): kotlin.String = "NoDecoderInfoForSignalInModel"
    }

    public object NoSignalInCatalogForDecoderSignal : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "NO_SIGNAL_IN_CATALOG_FOR_DECODER_SIGNAL"
        override fun toString(): kotlin.String = "NoSignalInCatalogForDecoderSignal"
    }

    public object ObdSignalInfoIsNull : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "OBD_SIGNAL_INFO_IS_NULL"
        override fun toString(): kotlin.String = "ObdSignalInfoIsNull"
    }

    public object SignalDecoderIncompatibleWithSignalCatalog : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "SIGNAL_DECODER_INCOMPATIBLE_WITH_SIGNAL_CATALOG"
        override fun toString(): kotlin.String = "SignalDecoderIncompatibleWithSignalCatalog"
    }

    public object SignalDecoderTypeIncompatibleWithMessageSignalType : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "SIGNAL_DECODER_TYPE_INCOMPATIBLE_WITH_MESSAGE_SIGNAL_TYPE"
        override fun toString(): kotlin.String = "SignalDecoderTypeIncompatibleWithMessageSignalType"
    }

    public object SignalNotAssociatedWithNetworkInterface : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE"
        override fun toString(): kotlin.String = "SignalNotAssociatedWithNetworkInterface"
    }

    public object SignalNotInModel : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "SIGNAL_NOT_IN_MODEL"
        override fun toString(): kotlin.String = "SignalNotInModel"
    }

    public object SignalToAddAlreadyExists : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "SIGNAL_TO_ADD_ALREADY_EXISTS"
        override fun toString(): kotlin.String = "SignalToAddAlreadyExists"
    }

    public object StructSizeMismatch : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override val value: kotlin.String = "STRUCT_SIZE_MISMATCH"
        override fun toString(): kotlin.String = "StructSizeMismatch"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason() {
        override fun toString(): kotlin.String = "SdkUnknown($value)"
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.iotfleetwise.model.SignalDecoderFailureReason = when (value) {
            "CAN_SIGNAL_INFO_IS_NULL" -> CanSignalInfoIsNull
            "CONFLICTING_SIGNAL" -> ConflictingSignal
            "DUPLICATE_SIGNAL" -> DuplicateSignal
            "EMPTY_MESSAGE_SIGNAL" -> EmptyMessageSignal
            "MESSAGE_SIGNAL_INFO_IS_NULL" -> MessageSignalInfoIsNull
            "NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE" -> NetworkInterfaceTypeIncompatibleWithSignalDecoderType
            "NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL" -> NoDecoderInfoForSignalInModel
            "NO_SIGNAL_IN_CATALOG_FOR_DECODER_SIGNAL" -> NoSignalInCatalogForDecoderSignal
            "OBD_SIGNAL_INFO_IS_NULL" -> ObdSignalInfoIsNull
            "SIGNAL_DECODER_INCOMPATIBLE_WITH_SIGNAL_CATALOG" -> SignalDecoderIncompatibleWithSignalCatalog
            "SIGNAL_DECODER_TYPE_INCOMPATIBLE_WITH_MESSAGE_SIGNAL_TYPE" -> SignalDecoderTypeIncompatibleWithMessageSignalType
            "SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE" -> SignalNotAssociatedWithNetworkInterface
            "SIGNAL_NOT_IN_MODEL" -> SignalNotInModel
            "SIGNAL_TO_ADD_ALREADY_EXISTS" -> SignalToAddAlreadyExists
            "STRUCT_SIZE_MISMATCH" -> StructSizeMismatch
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            CanSignalInfoIsNull,
            ConflictingSignal,
            DuplicateSignal,
            EmptyMessageSignal,
            MessageSignalInfoIsNull,
            NetworkInterfaceTypeIncompatibleWithSignalDecoderType,
            NoDecoderInfoForSignalInModel,
            NoSignalInCatalogForDecoderSignal,
            ObdSignalInfoIsNull,
            SignalDecoderIncompatibleWithSignalCatalog,
            SignalDecoderTypeIncompatibleWithMessageSignalType,
            SignalNotAssociatedWithNetworkInterface,
            SignalNotInModel,
            SignalToAddAlreadyExists,
            StructSizeMismatch,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy