commonMain.aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleetwise-jvm Show documentation
Show all versions of iotfleetwise-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetWise
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 NetworkInterfaceFailureReason {
public abstract val value: kotlin.String
public object CanNetworkInterfaceInfoIsNull : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "CAN_NETWORK_INTERFACE_INFO_IS_NULL"
override fun toString(): kotlin.String = "CanNetworkInterfaceInfoIsNull"
}
public object ConflictingNetworkInterface : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "CONFLICTING_NETWORK_INTERFACE"
override fun toString(): kotlin.String = "ConflictingNetworkInterface"
}
public object DuplicateInterface : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "DUPLICATE_NETWORK_INTERFACE"
override fun toString(): kotlin.String = "DuplicateInterface"
}
public object NetworkInterfaceToAddAlreadyExists : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS"
override fun toString(): kotlin.String = "NetworkInterfaceToAddAlreadyExists"
}
public object NetworkInterfaceToRemoveAssociatedWithSignals : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS"
override fun toString(): kotlin.String = "NetworkInterfaceToRemoveAssociatedWithSignals"
}
public object ObdNetworkInterfaceInfoIsNull : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "OBD_NETWORK_INTERFACE_INFO_IS_NULL"
override fun toString(): kotlin.String = "ObdNetworkInterfaceInfoIsNull"
}
public object VehicleMiddlewareNetworkInterfaceInfoIsNull : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
override val value: kotlin.String = "VEHICLE_MIDDLEWARE_NETWORK_INTERFACE_INFO_IS_NULL"
override fun toString(): kotlin.String = "VehicleMiddlewareNetworkInterfaceInfoIsNull"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotfleetwise.model.NetworkInterfaceFailureReason() {
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.NetworkInterfaceFailureReason = when (value) {
"CAN_NETWORK_INTERFACE_INFO_IS_NULL" -> CanNetworkInterfaceInfoIsNull
"CONFLICTING_NETWORK_INTERFACE" -> ConflictingNetworkInterface
"DUPLICATE_NETWORK_INTERFACE" -> DuplicateInterface
"NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS" -> NetworkInterfaceToAddAlreadyExists
"NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS" -> NetworkInterfaceToRemoveAssociatedWithSignals
"OBD_NETWORK_INTERFACE_INFO_IS_NULL" -> ObdNetworkInterfaceInfoIsNull
"VEHICLE_MIDDLEWARE_NETWORK_INTERFACE_INFO_IS_NULL" -> VehicleMiddlewareNetworkInterfaceInfoIsNull
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
CanNetworkInterfaceInfoIsNull,
ConflictingNetworkInterface,
DuplicateInterface,
NetworkInterfaceToAddAlreadyExists,
NetworkInterfaceToRemoveAssociatedWithSignals,
ObdNetworkInterfaceInfoIsNull,
VehicleMiddlewareNetworkInterfaceInfoIsNull,
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy