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