{-# 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.KinesisAnalyticsV2.Types.SnapshotStatus
-- 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.KinesisAnalyticsV2.Types.SnapshotStatus
  ( SnapshotStatus
      ( ..,
        SnapshotStatus_CREATING,
        SnapshotStatus_DELETING,
        SnapshotStatus_FAILED,
        SnapshotStatus_READY
      ),
  )
where

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

newtype SnapshotStatus = SnapshotStatus'
  { SnapshotStatus -> Text
fromSnapshotStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> SnapshotStatus -> ShowS
[SnapshotStatus] -> ShowS
SnapshotStatus -> String
(Int -> SnapshotStatus -> ShowS)
-> (SnapshotStatus -> String)
-> ([SnapshotStatus] -> ShowS)
-> Show SnapshotStatus
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]
(Int -> ReadS SnapshotStatus)
-> ReadS [SnapshotStatus]
-> ReadPrec SnapshotStatus
-> ReadPrec [SnapshotStatus]
-> Read 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
(SnapshotStatus -> SnapshotStatus -> Bool)
-> (SnapshotStatus -> SnapshotStatus -> Bool) -> Eq SnapshotStatus
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
Eq SnapshotStatus
-> (SnapshotStatus -> SnapshotStatus -> Ordering)
-> (SnapshotStatus -> SnapshotStatus -> Bool)
-> (SnapshotStatus -> SnapshotStatus -> Bool)
-> (SnapshotStatus -> SnapshotStatus -> Bool)
-> (SnapshotStatus -> SnapshotStatus -> Bool)
-> (SnapshotStatus -> SnapshotStatus -> SnapshotStatus)
-> (SnapshotStatus -> SnapshotStatus -> SnapshotStatus)
-> Ord 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
$cp1Ord :: Eq SnapshotStatus
Prelude.Ord,
      (forall x. SnapshotStatus -> Rep SnapshotStatus x)
-> (forall x. Rep SnapshotStatus x -> SnapshotStatus)
-> Generic SnapshotStatus
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
    ( Int -> SnapshotStatus -> Int
SnapshotStatus -> Int
(Int -> SnapshotStatus -> Int)
-> (SnapshotStatus -> Int) -> Hashable SnapshotStatus
forall 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 -> ()
(SnapshotStatus -> ()) -> NFData SnapshotStatus
forall a. (a -> ()) -> NFData a
rnf :: SnapshotStatus -> ()
$crnf :: SnapshotStatus -> ()
Prelude.NFData,
      Text -> Either String SnapshotStatus
(Text -> Either String SnapshotStatus) -> FromText SnapshotStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SnapshotStatus
$cfromText :: Text -> Either String SnapshotStatus
Core.FromText,
      SnapshotStatus -> Text
(SnapshotStatus -> Text) -> ToText SnapshotStatus
forall a. (a -> Text) -> ToText a
toText :: SnapshotStatus -> Text
$ctoText :: SnapshotStatus -> Text
Core.ToText,
      SnapshotStatus -> ByteString
(SnapshotStatus -> ByteString) -> ToByteString SnapshotStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: SnapshotStatus -> ByteString
$ctoBS :: SnapshotStatus -> ByteString
Core.ToByteString,
      SnapshotStatus -> ByteStringBuilder
(SnapshotStatus -> ByteStringBuilder) -> ToLog SnapshotStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SnapshotStatus -> ByteStringBuilder
$cbuild :: SnapshotStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SnapshotStatus -> [Header]
(HeaderName -> SnapshotStatus -> [Header])
-> ToHeader SnapshotStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SnapshotStatus -> [Header]
$ctoHeader :: HeaderName -> SnapshotStatus -> [Header]
Core.ToHeader,
      SnapshotStatus -> QueryString
(SnapshotStatus -> QueryString) -> ToQuery SnapshotStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SnapshotStatus -> QueryString
$ctoQuery :: SnapshotStatus -> QueryString
Core.ToQuery,
      Value -> Parser [SnapshotStatus]
Value -> Parser SnapshotStatus
(Value -> Parser SnapshotStatus)
-> (Value -> Parser [SnapshotStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SnapshotStatus]
FromJSONKeyFunction SnapshotStatus
FromJSONKeyFunction SnapshotStatus
-> FromJSONKeyFunction [SnapshotStatus]
-> FromJSONKey SnapshotStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SnapshotStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SnapshotStatus]
fromJSONKey :: FromJSONKeyFunction SnapshotStatus
$cfromJSONKey :: FromJSONKeyFunction SnapshotStatus
Core.FromJSONKey,
      [SnapshotStatus] -> Encoding
[SnapshotStatus] -> Value
SnapshotStatus -> Encoding
SnapshotStatus -> Value
(SnapshotStatus -> Value)
-> (SnapshotStatus -> Encoding)
-> ([SnapshotStatus] -> Value)
-> ([SnapshotStatus] -> Encoding)
-> ToJSON SnapshotStatus
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
Core.ToJSON,
      ToJSONKeyFunction [SnapshotStatus]
ToJSONKeyFunction SnapshotStatus
ToJSONKeyFunction SnapshotStatus
-> ToJSONKeyFunction [SnapshotStatus] -> ToJSONKey SnapshotStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SnapshotStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SnapshotStatus]
toJSONKey :: ToJSONKeyFunction SnapshotStatus
$ctoJSONKey :: ToJSONKeyFunction SnapshotStatus
Core.ToJSONKey,
      [Node] -> Either String SnapshotStatus
([Node] -> Either String SnapshotStatus) -> FromXML SnapshotStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SnapshotStatus
$cparseXML :: [Node] -> Either String SnapshotStatus
Core.FromXML,
      SnapshotStatus -> XML
(SnapshotStatus -> XML) -> ToXML SnapshotStatus
forall a. (a -> XML) -> ToXML a
toXML :: SnapshotStatus -> XML
$ctoXML :: SnapshotStatus -> XML
Core.ToXML
    )

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

pattern SnapshotStatus_DELETING :: SnapshotStatus
pattern $bSnapshotStatus_DELETING :: SnapshotStatus
$mSnapshotStatus_DELETING :: forall r. SnapshotStatus -> (Void# -> r) -> (Void# -> r) -> r
SnapshotStatus_DELETING = SnapshotStatus' "DELETING"

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

pattern SnapshotStatus_READY :: SnapshotStatus
pattern $bSnapshotStatus_READY :: SnapshotStatus
$mSnapshotStatus_READY :: forall r. SnapshotStatus -> (Void# -> r) -> (Void# -> r) -> r
SnapshotStatus_READY = SnapshotStatus' "READY"

{-# COMPLETE
  SnapshotStatus_CREATING,
  SnapshotStatus_DELETING,
  SnapshotStatus_FAILED,
  SnapshotStatus_READY,
  SnapshotStatus'
  #-}