{-# 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.EFS.Types.LifeCycleState
-- 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.EFS.Types.LifeCycleState
  ( LifeCycleState
      ( ..,
        LifeCycleState_Available,
        LifeCycleState_Creating,
        LifeCycleState_Deleted,
        LifeCycleState_Deleting,
        LifeCycleState_Error,
        LifeCycleState_Updating
      ),
  )
where

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

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

pattern LifeCycleState_Available :: LifeCycleState
pattern $bLifeCycleState_Available :: LifeCycleState
$mLifeCycleState_Available :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_Available = LifeCycleState' "available"

pattern LifeCycleState_Creating :: LifeCycleState
pattern $bLifeCycleState_Creating :: LifeCycleState
$mLifeCycleState_Creating :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_Creating = LifeCycleState' "creating"

pattern LifeCycleState_Deleted :: LifeCycleState
pattern $bLifeCycleState_Deleted :: LifeCycleState
$mLifeCycleState_Deleted :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_Deleted = LifeCycleState' "deleted"

pattern LifeCycleState_Deleting :: LifeCycleState
pattern $bLifeCycleState_Deleting :: LifeCycleState
$mLifeCycleState_Deleting :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_Deleting = LifeCycleState' "deleting"

pattern LifeCycleState_Error :: LifeCycleState
pattern $bLifeCycleState_Error :: LifeCycleState
$mLifeCycleState_Error :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_Error = LifeCycleState' "error"

pattern LifeCycleState_Updating :: LifeCycleState
pattern $bLifeCycleState_Updating :: LifeCycleState
$mLifeCycleState_Updating :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_Updating = LifeCycleState' "updating"

{-# COMPLETE
  LifeCycleState_Available,
  LifeCycleState_Creating,
  LifeCycleState_Deleted,
  LifeCycleState_Deleting,
  LifeCycleState_Error,
  LifeCycleState_Updating,
  LifeCycleState'
  #-}