{-# 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.FileSystemMaintenanceOperation
-- 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.FileSystemMaintenanceOperation
  ( FileSystemMaintenanceOperation
      ( ..,
        FileSystemMaintenanceOperation_BACKING_UP,
        FileSystemMaintenanceOperation_PATCHING
      ),
  )
where

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

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

pattern FileSystemMaintenanceOperation_BACKING_UP :: FileSystemMaintenanceOperation
pattern $bFileSystemMaintenanceOperation_BACKING_UP :: FileSystemMaintenanceOperation
$mFileSystemMaintenanceOperation_BACKING_UP :: forall {r}.
FileSystemMaintenanceOperation -> ((# #) -> r) -> ((# #) -> r) -> r
FileSystemMaintenanceOperation_BACKING_UP = FileSystemMaintenanceOperation' "BACKING_UP"

pattern FileSystemMaintenanceOperation_PATCHING :: FileSystemMaintenanceOperation
pattern $bFileSystemMaintenanceOperation_PATCHING :: FileSystemMaintenanceOperation
$mFileSystemMaintenanceOperation_PATCHING :: forall {r}.
FileSystemMaintenanceOperation -> ((# #) -> r) -> ((# #) -> r) -> r
FileSystemMaintenanceOperation_PATCHING = FileSystemMaintenanceOperation' "PATCHING"

{-# COMPLETE
  FileSystemMaintenanceOperation_BACKING_UP,
  FileSystemMaintenanceOperation_PATCHING,
  FileSystemMaintenanceOperation'
  #-}