{-# 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.RedshiftServerLess.Types.SnapshotStatus
-- 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.RedshiftServerLess.Types.SnapshotStatus
  ( SnapshotStatus
      ( ..,
        SnapshotStatus_AVAILABLE,
        SnapshotStatus_CANCELLED,
        SnapshotStatus_COPYING,
        SnapshotStatus_CREATING,
        SnapshotStatus_DELETED,
        SnapshotStatus_FAILED
      ),
  )
where

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

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

pattern SnapshotStatus_AVAILABLE :: SnapshotStatus
pattern $bSnapshotStatus_AVAILABLE :: SnapshotStatus
$mSnapshotStatus_AVAILABLE :: forall {r}. SnapshotStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotStatus_AVAILABLE = SnapshotStatus' "AVAILABLE"

pattern SnapshotStatus_CANCELLED :: SnapshotStatus
pattern $bSnapshotStatus_CANCELLED :: SnapshotStatus
$mSnapshotStatus_CANCELLED :: forall {r}. SnapshotStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotStatus_CANCELLED = SnapshotStatus' "CANCELLED"

pattern SnapshotStatus_COPYING :: SnapshotStatus
pattern $bSnapshotStatus_COPYING :: SnapshotStatus
$mSnapshotStatus_COPYING :: forall {r}. SnapshotStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotStatus_COPYING = SnapshotStatus' "COPYING"

pattern SnapshotStatus_CREATING :: SnapshotStatus
pattern $bSnapshotStatus_CREATING :: SnapshotStatus
$mSnapshotStatus_CREATING :: forall {r}. SnapshotStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotStatus_CREATING = SnapshotStatus' "CREATING"

pattern SnapshotStatus_DELETED :: SnapshotStatus
pattern $bSnapshotStatus_DELETED :: SnapshotStatus
$mSnapshotStatus_DELETED :: forall {r}. SnapshotStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotStatus_DELETED = SnapshotStatus' "DELETED"

pattern SnapshotStatus_FAILED :: SnapshotStatus
pattern $bSnapshotStatus_FAILED :: SnapshotStatus
$mSnapshotStatus_FAILED :: forall {r}. SnapshotStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotStatus_FAILED = SnapshotStatus' "FAILED"

{-# COMPLETE
  SnapshotStatus_AVAILABLE,
  SnapshotStatus_CANCELLED,
  SnapshotStatus_COPYING,
  SnapshotStatus_CREATING,
  SnapshotStatus_DELETED,
  SnapshotStatus_FAILED,
  SnapshotStatus'
  #-}