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