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