{-# 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.VolumeLifecycle
-- 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.VolumeLifecycle
  ( VolumeLifecycle
      ( ..,
        VolumeLifecycle_AVAILABLE,
        VolumeLifecycle_CREATED,
        VolumeLifecycle_CREATING,
        VolumeLifecycle_DELETING,
        VolumeLifecycle_FAILED,
        VolumeLifecycle_MISCONFIGURED,
        VolumeLifecycle_PENDING
      ),
  )
where

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

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

pattern VolumeLifecycle_AVAILABLE :: VolumeLifecycle
pattern $bVolumeLifecycle_AVAILABLE :: VolumeLifecycle
$mVolumeLifecycle_AVAILABLE :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_AVAILABLE = VolumeLifecycle' "AVAILABLE"

pattern VolumeLifecycle_CREATED :: VolumeLifecycle
pattern $bVolumeLifecycle_CREATED :: VolumeLifecycle
$mVolumeLifecycle_CREATED :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_CREATED = VolumeLifecycle' "CREATED"

pattern VolumeLifecycle_CREATING :: VolumeLifecycle
pattern $bVolumeLifecycle_CREATING :: VolumeLifecycle
$mVolumeLifecycle_CREATING :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_CREATING = VolumeLifecycle' "CREATING"

pattern VolumeLifecycle_DELETING :: VolumeLifecycle
pattern $bVolumeLifecycle_DELETING :: VolumeLifecycle
$mVolumeLifecycle_DELETING :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_DELETING = VolumeLifecycle' "DELETING"

pattern VolumeLifecycle_FAILED :: VolumeLifecycle
pattern $bVolumeLifecycle_FAILED :: VolumeLifecycle
$mVolumeLifecycle_FAILED :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_FAILED = VolumeLifecycle' "FAILED"

pattern VolumeLifecycle_MISCONFIGURED :: VolumeLifecycle
pattern $bVolumeLifecycle_MISCONFIGURED :: VolumeLifecycle
$mVolumeLifecycle_MISCONFIGURED :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_MISCONFIGURED = VolumeLifecycle' "MISCONFIGURED"

pattern VolumeLifecycle_PENDING :: VolumeLifecycle
pattern $bVolumeLifecycle_PENDING :: VolumeLifecycle
$mVolumeLifecycle_PENDING :: forall {r}. VolumeLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeLifecycle_PENDING = VolumeLifecycle' "PENDING"

{-# COMPLETE
  VolumeLifecycle_AVAILABLE,
  VolumeLifecycle_CREATED,
  VolumeLifecycle_CREATING,
  VolumeLifecycle_DELETING,
  VolumeLifecycle_FAILED,
  VolumeLifecycle_MISCONFIGURED,
  VolumeLifecycle_PENDING,
  VolumeLifecycle'
  #-}