{-# 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.Backup.Types.CopyJobState
-- 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.Backup.Types.CopyJobState
  ( CopyJobState
      ( ..,
        CopyJobState_COMPLETED,
        CopyJobState_CREATED,
        CopyJobState_FAILED,
        CopyJobState_RUNNING
      ),
  )
where

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

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

pattern CopyJobState_COMPLETED :: CopyJobState
pattern $bCopyJobState_COMPLETED :: CopyJobState
$mCopyJobState_COMPLETED :: forall r. CopyJobState -> (Void# -> r) -> (Void# -> r) -> r
CopyJobState_COMPLETED = CopyJobState' "COMPLETED"

pattern CopyJobState_CREATED :: CopyJobState
pattern $bCopyJobState_CREATED :: CopyJobState
$mCopyJobState_CREATED :: forall r. CopyJobState -> (Void# -> r) -> (Void# -> r) -> r
CopyJobState_CREATED = CopyJobState' "CREATED"

pattern CopyJobState_FAILED :: CopyJobState
pattern $bCopyJobState_FAILED :: CopyJobState
$mCopyJobState_FAILED :: forall r. CopyJobState -> (Void# -> r) -> (Void# -> r) -> r
CopyJobState_FAILED = CopyJobState' "FAILED"

pattern CopyJobState_RUNNING :: CopyJobState
pattern $bCopyJobState_RUNNING :: CopyJobState
$mCopyJobState_RUNNING :: forall r. CopyJobState -> (Void# -> r) -> (Void# -> r) -> r
CopyJobState_RUNNING = CopyJobState' "RUNNING"

{-# COMPLETE
  CopyJobState_COMPLETED,
  CopyJobState_CREATED,
  CopyJobState_FAILED,
  CopyJobState_RUNNING,
  CopyJobState'
  #-}