{-# 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.OpsWorksCM.Types.BackupStatus
-- 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.OpsWorksCM.Types.BackupStatus
  ( BackupStatus
      ( ..,
        BackupStatus_DELETING,
        BackupStatus_FAILED,
        BackupStatus_IN_PROGRESS,
        BackupStatus_OK
      ),
  )
where

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

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

pattern BackupStatus_DELETING :: BackupStatus
pattern $bBackupStatus_DELETING :: BackupStatus
$mBackupStatus_DELETING :: forall r. BackupStatus -> (Void# -> r) -> (Void# -> r) -> r
BackupStatus_DELETING = BackupStatus' "DELETING"

pattern BackupStatus_FAILED :: BackupStatus
pattern $bBackupStatus_FAILED :: BackupStatus
$mBackupStatus_FAILED :: forall r. BackupStatus -> (Void# -> r) -> (Void# -> r) -> r
BackupStatus_FAILED = BackupStatus' "FAILED"

pattern BackupStatus_IN_PROGRESS :: BackupStatus
pattern $bBackupStatus_IN_PROGRESS :: BackupStatus
$mBackupStatus_IN_PROGRESS :: forall r. BackupStatus -> (Void# -> r) -> (Void# -> r) -> r
BackupStatus_IN_PROGRESS = BackupStatus' "IN_PROGRESS"

pattern BackupStatus_OK :: BackupStatus
pattern $bBackupStatus_OK :: BackupStatus
$mBackupStatus_OK :: forall r. BackupStatus -> (Void# -> r) -> (Void# -> r) -> r
BackupStatus_OK = BackupStatus' "OK"

{-# COMPLETE
  BackupStatus_DELETING,
  BackupStatus_FAILED,
  BackupStatus_IN_PROGRESS,
  BackupStatus_OK,
  BackupStatus'
  #-}