{-# 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.ShippingLabelStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Snowball.Types.ShippingLabelStatus
  ( ShippingLabelStatus
      ( ..,
        ShippingLabelStatus_Failed,
        ShippingLabelStatus_InProgress,
        ShippingLabelStatus_Succeeded,
        ShippingLabelStatus_TimedOut
      ),
  )
where

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

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

pattern ShippingLabelStatus_Failed :: ShippingLabelStatus
pattern $bShippingLabelStatus_Failed :: ShippingLabelStatus
$mShippingLabelStatus_Failed :: forall r. ShippingLabelStatus -> (Void# -> r) -> (Void# -> r) -> r
ShippingLabelStatus_Failed = ShippingLabelStatus' "Failed"

pattern ShippingLabelStatus_InProgress :: ShippingLabelStatus
pattern $bShippingLabelStatus_InProgress :: ShippingLabelStatus
$mShippingLabelStatus_InProgress :: forall r. ShippingLabelStatus -> (Void# -> r) -> (Void# -> r) -> r
ShippingLabelStatus_InProgress = ShippingLabelStatus' "InProgress"

pattern ShippingLabelStatus_Succeeded :: ShippingLabelStatus
pattern $bShippingLabelStatus_Succeeded :: ShippingLabelStatus
$mShippingLabelStatus_Succeeded :: forall r. ShippingLabelStatus -> (Void# -> r) -> (Void# -> r) -> r
ShippingLabelStatus_Succeeded = ShippingLabelStatus' "Succeeded"

pattern ShippingLabelStatus_TimedOut :: ShippingLabelStatus
pattern $bShippingLabelStatus_TimedOut :: ShippingLabelStatus
$mShippingLabelStatus_TimedOut :: forall r. ShippingLabelStatus -> (Void# -> r) -> (Void# -> r) -> r
ShippingLabelStatus_TimedOut = ShippingLabelStatus' "TimedOut"

{-# COMPLETE
  ShippingLabelStatus_Failed,
  ShippingLabelStatus_InProgress,
  ShippingLabelStatus_Succeeded,
  ShippingLabelStatus_TimedOut,
  ShippingLabelStatus'
  #-}