{-# 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.JobState
-- 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.JobState
  ( JobState
      ( ..,
        JobState_Cancelled,
        JobState_Complete,
        JobState_InProgress,
        JobState_InTransitToAWS,
        JobState_InTransitToCustomer,
        JobState_Listing,
        JobState_New,
        JobState_Pending,
        JobState_PreparingAppliance,
        JobState_PreparingShipment,
        JobState_WithAWS,
        JobState_WithAWSSortingFacility,
        JobState_WithCustomer
      ),
  )
where

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

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

pattern JobState_Cancelled :: JobState
pattern $bJobState_Cancelled :: JobState
$mJobState_Cancelled :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_Cancelled = JobState' "Cancelled"

pattern JobState_Complete :: JobState
pattern $bJobState_Complete :: JobState
$mJobState_Complete :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_Complete = JobState' "Complete"

pattern JobState_InProgress :: JobState
pattern $bJobState_InProgress :: JobState
$mJobState_InProgress :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_InProgress = JobState' "InProgress"

pattern JobState_InTransitToAWS :: JobState
pattern $bJobState_InTransitToAWS :: JobState
$mJobState_InTransitToAWS :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_InTransitToAWS = JobState' "InTransitToAWS"

pattern JobState_InTransitToCustomer :: JobState
pattern $bJobState_InTransitToCustomer :: JobState
$mJobState_InTransitToCustomer :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_InTransitToCustomer = JobState' "InTransitToCustomer"

pattern JobState_Listing :: JobState
pattern $bJobState_Listing :: JobState
$mJobState_Listing :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_Listing = JobState' "Listing"

pattern JobState_New :: JobState
pattern $bJobState_New :: JobState
$mJobState_New :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_New = JobState' "New"

pattern JobState_Pending :: JobState
pattern $bJobState_Pending :: JobState
$mJobState_Pending :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_Pending = JobState' "Pending"

pattern JobState_PreparingAppliance :: JobState
pattern $bJobState_PreparingAppliance :: JobState
$mJobState_PreparingAppliance :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_PreparingAppliance = JobState' "PreparingAppliance"

pattern JobState_PreparingShipment :: JobState
pattern $bJobState_PreparingShipment :: JobState
$mJobState_PreparingShipment :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_PreparingShipment = JobState' "PreparingShipment"

pattern JobState_WithAWS :: JobState
pattern $bJobState_WithAWS :: JobState
$mJobState_WithAWS :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_WithAWS = JobState' "WithAWS"

pattern JobState_WithAWSSortingFacility :: JobState
pattern $bJobState_WithAWSSortingFacility :: JobState
$mJobState_WithAWSSortingFacility :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_WithAWSSortingFacility = JobState' "WithAWSSortingFacility"

pattern JobState_WithCustomer :: JobState
pattern $bJobState_WithCustomer :: JobState
$mJobState_WithCustomer :: forall r. JobState -> (Void# -> r) -> (Void# -> r) -> r
JobState_WithCustomer = JobState' "WithCustomer"

{-# COMPLETE
  JobState_Cancelled,
  JobState_Complete,
  JobState_InProgress,
  JobState_InTransitToAWS,
  JobState_InTransitToCustomer,
  JobState_Listing,
  JobState_New,
  JobState_Pending,
  JobState_PreparingAppliance,
  JobState_PreparingShipment,
  JobState_WithAWS,
  JobState_WithAWSSortingFacility,
  JobState_WithCustomer,
  JobState'
  #-}