{-# 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.Snowball.Types.ShipmentState
-- 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.Snowball.Types.ShipmentState
  ( ShipmentState
      ( ..,
        ShipmentState_RECEIVED,
        ShipmentState_RETURNED
      ),
  )
where

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

newtype ShipmentState = ShipmentState'
  { ShipmentState -> Text
fromShipmentState ::
      Data.Text
  }
  deriving stock
    ( Int -> ShipmentState -> ShowS
[ShipmentState] -> ShowS
ShipmentState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ShipmentState
Int -> ShipmentState -> Int
ShipmentState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ShipmentState -> ()
$crnf :: ShipmentState -> ()
Prelude.NFData,
      Text -> Either String ShipmentState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ShipmentState
$cfromText :: Text -> Either String ShipmentState
Data.FromText,
      ShipmentState -> Text
forall a. (a -> Text) -> ToText a
toText :: ShipmentState -> Text
$ctoText :: ShipmentState -> Text
Data.ToText,
      ShipmentState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ShipmentState -> ByteString
$ctoBS :: ShipmentState -> ByteString
Data.ToByteString,
      ShipmentState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ShipmentState -> ByteStringBuilder
$cbuild :: ShipmentState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ShipmentState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ShipmentState -> [Header]
$ctoHeader :: HeaderName -> ShipmentState -> [Header]
Data.ToHeader,
      ShipmentState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ShipmentState -> QueryString
$ctoQuery :: ShipmentState -> QueryString
Data.ToQuery,
      Value -> Parser [ShipmentState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ShipmentState]
FromJSONKeyFunction ShipmentState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ShipmentState]
$cfromJSONKeyList :: FromJSONKeyFunction [ShipmentState]
fromJSONKey :: FromJSONKeyFunction ShipmentState
$cfromJSONKey :: FromJSONKeyFunction ShipmentState
Data.FromJSONKey,
      [ShipmentState] -> Encoding
[ShipmentState] -> Value
ShipmentState -> Encoding
ShipmentState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ShipmentState]
ToJSONKeyFunction ShipmentState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ShipmentState]
$ctoJSONKeyList :: ToJSONKeyFunction [ShipmentState]
toJSONKey :: ToJSONKeyFunction ShipmentState
$ctoJSONKey :: ToJSONKeyFunction ShipmentState
Data.ToJSONKey,
      [Node] -> Either String ShipmentState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ShipmentState
$cparseXML :: [Node] -> Either String ShipmentState
Data.FromXML,
      ShipmentState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ShipmentState -> XML
$ctoXML :: ShipmentState -> XML
Data.ToXML
    )

pattern ShipmentState_RECEIVED :: ShipmentState
pattern $bShipmentState_RECEIVED :: ShipmentState
$mShipmentState_RECEIVED :: forall {r}. ShipmentState -> ((# #) -> r) -> ((# #) -> r) -> r
ShipmentState_RECEIVED = ShipmentState' "RECEIVED"

pattern ShipmentState_RETURNED :: ShipmentState
pattern $bShipmentState_RETURNED :: ShipmentState
$mShipmentState_RETURNED :: forall {r}. ShipmentState -> ((# #) -> r) -> ((# #) -> r) -> r
ShipmentState_RETURNED = ShipmentState' "RETURNED"

{-# COMPLETE
  ShipmentState_RECEIVED,
  ShipmentState_RETURNED,
  ShipmentState'
  #-}