{-# 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.FSx.Types.SnapshotLifecycle
-- 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.FSx.Types.SnapshotLifecycle
  ( SnapshotLifecycle
      ( ..,
        SnapshotLifecycle_AVAILABLE,
        SnapshotLifecycle_CREATING,
        SnapshotLifecycle_DELETING,
        SnapshotLifecycle_PENDING
      ),
  )
where

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

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

pattern SnapshotLifecycle_AVAILABLE :: SnapshotLifecycle
pattern $bSnapshotLifecycle_AVAILABLE :: SnapshotLifecycle
$mSnapshotLifecycle_AVAILABLE :: forall {r}. SnapshotLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotLifecycle_AVAILABLE = SnapshotLifecycle' "AVAILABLE"

pattern SnapshotLifecycle_CREATING :: SnapshotLifecycle
pattern $bSnapshotLifecycle_CREATING :: SnapshotLifecycle
$mSnapshotLifecycle_CREATING :: forall {r}. SnapshotLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotLifecycle_CREATING = SnapshotLifecycle' "CREATING"

pattern SnapshotLifecycle_DELETING :: SnapshotLifecycle
pattern $bSnapshotLifecycle_DELETING :: SnapshotLifecycle
$mSnapshotLifecycle_DELETING :: forall {r}. SnapshotLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotLifecycle_DELETING = SnapshotLifecycle' "DELETING"

pattern SnapshotLifecycle_PENDING :: SnapshotLifecycle
pattern $bSnapshotLifecycle_PENDING :: SnapshotLifecycle
$mSnapshotLifecycle_PENDING :: forall {r}. SnapshotLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
SnapshotLifecycle_PENDING = SnapshotLifecycle' "PENDING"

{-# COMPLETE
  SnapshotLifecycle_AVAILABLE,
  SnapshotLifecycle_CREATING,
  SnapshotLifecycle_DELETING,
  SnapshotLifecycle_PENDING,
  SnapshotLifecycle'
  #-}