{-# 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.FileCacheType
-- 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.FileCacheType
  ( FileCacheType
      ( ..,
        FileCacheType_LUSTRE
      ),
  )
where

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

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

pattern FileCacheType_LUSTRE :: FileCacheType
pattern $bFileCacheType_LUSTRE :: FileCacheType
$mFileCacheType_LUSTRE :: forall {r}. FileCacheType -> ((# #) -> r) -> ((# #) -> r) -> r
FileCacheType_LUSTRE = FileCacheType' "LUSTRE"

{-# COMPLETE
  FileCacheType_LUSTRE,
  FileCacheType'
  #-}