{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTFleetWise.Types.VehicleState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTFleetWise.Types.VehicleState
  ( VehicleState
      ( ..,
        VehicleState_CREATED,
        VehicleState_DELETING,
        VehicleState_HEALTHY,
        VehicleState_READY,
        VehicleState_SUSPENDED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype VehicleState = VehicleState'
  { VehicleState -> Text
fromVehicleState ::
      Data.Text
  }
  deriving stock
    ( Int -> VehicleState -> ShowS
[VehicleState] -> ShowS
VehicleState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VehicleState] -> ShowS
$cshowList :: [VehicleState] -> ShowS
show :: VehicleState -> String
$cshow :: VehicleState -> String
showsPrec :: Int -> VehicleState -> ShowS
$cshowsPrec :: Int -> VehicleState -> ShowS
Prelude.Show,
      ReadPrec [VehicleState]
ReadPrec VehicleState
Int -> ReadS VehicleState
ReadS [VehicleState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VehicleState]
$creadListPrec :: ReadPrec [VehicleState]
readPrec :: ReadPrec VehicleState
$creadPrec :: ReadPrec VehicleState
readList :: ReadS [VehicleState]
$creadList :: ReadS [VehicleState]
readsPrec :: Int -> ReadS VehicleState
$creadsPrec :: Int -> ReadS VehicleState
Prelude.Read,
      VehicleState -> VehicleState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VehicleState -> VehicleState -> Bool
$c/= :: VehicleState -> VehicleState -> Bool
== :: VehicleState -> VehicleState -> Bool
$c== :: VehicleState -> VehicleState -> Bool
Prelude.Eq,
      Eq VehicleState
VehicleState -> VehicleState -> Bool
VehicleState -> VehicleState -> Ordering
VehicleState -> VehicleState -> VehicleState
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: VehicleState -> VehicleState -> VehicleState
$cmin :: VehicleState -> VehicleState -> VehicleState
max :: VehicleState -> VehicleState -> VehicleState
$cmax :: VehicleState -> VehicleState -> VehicleState
>= :: VehicleState -> VehicleState -> Bool
$c>= :: VehicleState -> VehicleState -> Bool
> :: VehicleState -> VehicleState -> Bool
$c> :: VehicleState -> VehicleState -> Bool
<= :: VehicleState -> VehicleState -> Bool
$c<= :: VehicleState -> VehicleState -> Bool
< :: VehicleState -> VehicleState -> Bool
$c< :: VehicleState -> VehicleState -> Bool
compare :: VehicleState -> VehicleState -> Ordering
$ccompare :: VehicleState -> VehicleState -> Ordering
Prelude.Ord,
      forall x. Rep VehicleState x -> VehicleState
forall x. VehicleState -> Rep VehicleState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VehicleState x -> VehicleState
$cfrom :: forall x. VehicleState -> Rep VehicleState x
Prelude.Generic
    )
  deriving newtype
    ( Eq VehicleState
Int -> VehicleState -> Int
VehicleState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VehicleState -> Int
$chash :: VehicleState -> Int
hashWithSalt :: Int -> VehicleState -> Int
$chashWithSalt :: Int -> VehicleState -> Int
Prelude.Hashable,
      VehicleState -> ()
forall a. (a -> ()) -> NFData a
rnf :: VehicleState -> ()
$crnf :: VehicleState -> ()
Prelude.NFData,
      Text -> Either String VehicleState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VehicleState
$cfromText :: Text -> Either String VehicleState
Data.FromText,
      VehicleState -> Text
forall a. (a -> Text) -> ToText a
toText :: VehicleState -> Text
$ctoText :: VehicleState -> Text
Data.ToText,
      VehicleState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VehicleState -> ByteString
$ctoBS :: VehicleState -> ByteString
Data.ToByteString,
      VehicleState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VehicleState -> ByteStringBuilder
$cbuild :: VehicleState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> VehicleState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VehicleState -> [Header]
$ctoHeader :: HeaderName -> VehicleState -> [Header]
Data.ToHeader,
      VehicleState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VehicleState -> QueryString
$ctoQuery :: VehicleState -> QueryString
Data.ToQuery,
      Value -> Parser [VehicleState]
Value -> Parser VehicleState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VehicleState]
$cparseJSONList :: Value -> Parser [VehicleState]
parseJSON :: Value -> Parser VehicleState
$cparseJSON :: Value -> Parser VehicleState
Data.FromJSON,
      FromJSONKeyFunction [VehicleState]
FromJSONKeyFunction VehicleState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VehicleState]
$cfromJSONKeyList :: FromJSONKeyFunction [VehicleState]
fromJSONKey :: FromJSONKeyFunction VehicleState
$cfromJSONKey :: FromJSONKeyFunction VehicleState
Data.FromJSONKey,
      [VehicleState] -> Encoding
[VehicleState] -> Value
VehicleState -> Encoding
VehicleState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VehicleState] -> Encoding
$ctoEncodingList :: [VehicleState] -> Encoding
toJSONList :: [VehicleState] -> Value
$ctoJSONList :: [VehicleState] -> Value
toEncoding :: VehicleState -> Encoding
$ctoEncoding :: VehicleState -> Encoding
toJSON :: VehicleState -> Value
$ctoJSON :: VehicleState -> Value
Data.ToJSON,
      ToJSONKeyFunction [VehicleState]
ToJSONKeyFunction VehicleState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VehicleState]
$ctoJSONKeyList :: ToJSONKeyFunction [VehicleState]
toJSONKey :: ToJSONKeyFunction VehicleState
$ctoJSONKey :: ToJSONKeyFunction VehicleState
Data.ToJSONKey,
      [Node] -> Either String VehicleState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VehicleState
$cparseXML :: [Node] -> Either String VehicleState
Data.FromXML,
      VehicleState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VehicleState -> XML
$ctoXML :: VehicleState -> XML
Data.ToXML
    )

pattern VehicleState_CREATED :: VehicleState
pattern $bVehicleState_CREATED :: VehicleState
$mVehicleState_CREATED :: forall {r}. VehicleState -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleState_CREATED = VehicleState' "CREATED"

pattern VehicleState_DELETING :: VehicleState
pattern $bVehicleState_DELETING :: VehicleState
$mVehicleState_DELETING :: forall {r}. VehicleState -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleState_DELETING = VehicleState' "DELETING"

pattern VehicleState_HEALTHY :: VehicleState
pattern $bVehicleState_HEALTHY :: VehicleState
$mVehicleState_HEALTHY :: forall {r}. VehicleState -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleState_HEALTHY = VehicleState' "HEALTHY"

pattern VehicleState_READY :: VehicleState
pattern $bVehicleState_READY :: VehicleState
$mVehicleState_READY :: forall {r}. VehicleState -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleState_READY = VehicleState' "READY"

pattern VehicleState_SUSPENDED :: VehicleState
pattern $bVehicleState_SUSPENDED :: VehicleState
$mVehicleState_SUSPENDED :: forall {r}. VehicleState -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleState_SUSPENDED = VehicleState' "SUSPENDED"

{-# COMPLETE
  VehicleState_CREATED,
  VehicleState_DELETING,
  VehicleState_HEALTHY,
  VehicleState_READY,
  VehicleState_SUSPENDED,
  VehicleState'
  #-}