{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Location.Types.TravelMode
( TravelMode
( ..,
TravelMode_Car,
TravelMode_Truck,
TravelMode_Walking
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TravelMode = TravelMode'
{ TravelMode -> Text
fromTravelMode ::
Core.Text
}
deriving stock
( Int -> TravelMode -> ShowS
[TravelMode] -> ShowS
TravelMode -> String
(Int -> TravelMode -> ShowS)
-> (TravelMode -> String)
-> ([TravelMode] -> ShowS)
-> Show TravelMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TravelMode] -> ShowS
$cshowList :: [TravelMode] -> ShowS
show :: TravelMode -> String
$cshow :: TravelMode -> String
showsPrec :: Int -> TravelMode -> ShowS
$cshowsPrec :: Int -> TravelMode -> ShowS
Prelude.Show,
ReadPrec [TravelMode]
ReadPrec TravelMode
Int -> ReadS TravelMode
ReadS [TravelMode]
(Int -> ReadS TravelMode)
-> ReadS [TravelMode]
-> ReadPrec TravelMode
-> ReadPrec [TravelMode]
-> Read TravelMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TravelMode]
$creadListPrec :: ReadPrec [TravelMode]
readPrec :: ReadPrec TravelMode
$creadPrec :: ReadPrec TravelMode
readList :: ReadS [TravelMode]
$creadList :: ReadS [TravelMode]
readsPrec :: Int -> ReadS TravelMode
$creadsPrec :: Int -> ReadS TravelMode
Prelude.Read,
TravelMode -> TravelMode -> Bool
(TravelMode -> TravelMode -> Bool)
-> (TravelMode -> TravelMode -> Bool) -> Eq TravelMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TravelMode -> TravelMode -> Bool
$c/= :: TravelMode -> TravelMode -> Bool
== :: TravelMode -> TravelMode -> Bool
$c== :: TravelMode -> TravelMode -> Bool
Prelude.Eq,
Eq TravelMode
Eq TravelMode
-> (TravelMode -> TravelMode -> Ordering)
-> (TravelMode -> TravelMode -> Bool)
-> (TravelMode -> TravelMode -> Bool)
-> (TravelMode -> TravelMode -> Bool)
-> (TravelMode -> TravelMode -> Bool)
-> (TravelMode -> TravelMode -> TravelMode)
-> (TravelMode -> TravelMode -> TravelMode)
-> Ord TravelMode
TravelMode -> TravelMode -> Bool
TravelMode -> TravelMode -> Ordering
TravelMode -> TravelMode -> TravelMode
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 :: TravelMode -> TravelMode -> TravelMode
$cmin :: TravelMode -> TravelMode -> TravelMode
max :: TravelMode -> TravelMode -> TravelMode
$cmax :: TravelMode -> TravelMode -> TravelMode
>= :: TravelMode -> TravelMode -> Bool
$c>= :: TravelMode -> TravelMode -> Bool
> :: TravelMode -> TravelMode -> Bool
$c> :: TravelMode -> TravelMode -> Bool
<= :: TravelMode -> TravelMode -> Bool
$c<= :: TravelMode -> TravelMode -> Bool
< :: TravelMode -> TravelMode -> Bool
$c< :: TravelMode -> TravelMode -> Bool
compare :: TravelMode -> TravelMode -> Ordering
$ccompare :: TravelMode -> TravelMode -> Ordering
$cp1Ord :: Eq TravelMode
Prelude.Ord,
(forall x. TravelMode -> Rep TravelMode x)
-> (forall x. Rep TravelMode x -> TravelMode) -> Generic TravelMode
forall x. Rep TravelMode x -> TravelMode
forall x. TravelMode -> Rep TravelMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TravelMode x -> TravelMode
$cfrom :: forall x. TravelMode -> Rep TravelMode x
Prelude.Generic
)
deriving newtype
( Int -> TravelMode -> Int
TravelMode -> Int
(Int -> TravelMode -> Int)
-> (TravelMode -> Int) -> Hashable TravelMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TravelMode -> Int
$chash :: TravelMode -> Int
hashWithSalt :: Int -> TravelMode -> Int
$chashWithSalt :: Int -> TravelMode -> Int
Prelude.Hashable,
TravelMode -> ()
(TravelMode -> ()) -> NFData TravelMode
forall a. (a -> ()) -> NFData a
rnf :: TravelMode -> ()
$crnf :: TravelMode -> ()
Prelude.NFData,
Text -> Either String TravelMode
(Text -> Either String TravelMode) -> FromText TravelMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TravelMode
$cfromText :: Text -> Either String TravelMode
Core.FromText,
TravelMode -> Text
(TravelMode -> Text) -> ToText TravelMode
forall a. (a -> Text) -> ToText a
toText :: TravelMode -> Text
$ctoText :: TravelMode -> Text
Core.ToText,
TravelMode -> ByteString
(TravelMode -> ByteString) -> ToByteString TravelMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: TravelMode -> ByteString
$ctoBS :: TravelMode -> ByteString
Core.ToByteString,
TravelMode -> ByteStringBuilder
(TravelMode -> ByteStringBuilder) -> ToLog TravelMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TravelMode -> ByteStringBuilder
$cbuild :: TravelMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> TravelMode -> [Header]
(HeaderName -> TravelMode -> [Header]) -> ToHeader TravelMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TravelMode -> [Header]
$ctoHeader :: HeaderName -> TravelMode -> [Header]
Core.ToHeader,
TravelMode -> QueryString
(TravelMode -> QueryString) -> ToQuery TravelMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TravelMode -> QueryString
$ctoQuery :: TravelMode -> QueryString
Core.ToQuery,
Value -> Parser [TravelMode]
Value -> Parser TravelMode
(Value -> Parser TravelMode)
-> (Value -> Parser [TravelMode]) -> FromJSON TravelMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TravelMode]
$cparseJSONList :: Value -> Parser [TravelMode]
parseJSON :: Value -> Parser TravelMode
$cparseJSON :: Value -> Parser TravelMode
Core.FromJSON,
FromJSONKeyFunction [TravelMode]
FromJSONKeyFunction TravelMode
FromJSONKeyFunction TravelMode
-> FromJSONKeyFunction [TravelMode] -> FromJSONKey TravelMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TravelMode]
$cfromJSONKeyList :: FromJSONKeyFunction [TravelMode]
fromJSONKey :: FromJSONKeyFunction TravelMode
$cfromJSONKey :: FromJSONKeyFunction TravelMode
Core.FromJSONKey,
[TravelMode] -> Encoding
[TravelMode] -> Value
TravelMode -> Encoding
TravelMode -> Value
(TravelMode -> Value)
-> (TravelMode -> Encoding)
-> ([TravelMode] -> Value)
-> ([TravelMode] -> Encoding)
-> ToJSON TravelMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TravelMode] -> Encoding
$ctoEncodingList :: [TravelMode] -> Encoding
toJSONList :: [TravelMode] -> Value
$ctoJSONList :: [TravelMode] -> Value
toEncoding :: TravelMode -> Encoding
$ctoEncoding :: TravelMode -> Encoding
toJSON :: TravelMode -> Value
$ctoJSON :: TravelMode -> Value
Core.ToJSON,
ToJSONKeyFunction [TravelMode]
ToJSONKeyFunction TravelMode
ToJSONKeyFunction TravelMode
-> ToJSONKeyFunction [TravelMode] -> ToJSONKey TravelMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TravelMode]
$ctoJSONKeyList :: ToJSONKeyFunction [TravelMode]
toJSONKey :: ToJSONKeyFunction TravelMode
$ctoJSONKey :: ToJSONKeyFunction TravelMode
Core.ToJSONKey,
[Node] -> Either String TravelMode
([Node] -> Either String TravelMode) -> FromXML TravelMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TravelMode
$cparseXML :: [Node] -> Either String TravelMode
Core.FromXML,
TravelMode -> XML
(TravelMode -> XML) -> ToXML TravelMode
forall a. (a -> XML) -> ToXML a
toXML :: TravelMode -> XML
$ctoXML :: TravelMode -> XML
Core.ToXML
)
pattern TravelMode_Car :: TravelMode
pattern $bTravelMode_Car :: TravelMode
$mTravelMode_Car :: forall r. TravelMode -> (Void# -> r) -> (Void# -> r) -> r
TravelMode_Car = TravelMode' "Car"
pattern TravelMode_Truck :: TravelMode
pattern $bTravelMode_Truck :: TravelMode
$mTravelMode_Truck :: forall r. TravelMode -> (Void# -> r) -> (Void# -> r) -> r
TravelMode_Truck = TravelMode' "Truck"
pattern TravelMode_Walking :: TravelMode
pattern $bTravelMode_Walking :: TravelMode
$mTravelMode_Walking :: forall r. TravelMode -> (Void# -> r) -> (Void# -> r) -> r
TravelMode_Walking = TravelMode' "Walking"
{-# COMPLETE
TravelMode_Car,
TravelMode_Truck,
TravelMode_Walking,
TravelMode'
#-}