{-# 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.DriveCacheType
-- 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.DriveCacheType
  ( DriveCacheType
      ( ..,
        DriveCacheType_NONE,
        DriveCacheType_READ
      ),
  )
where

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

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

pattern DriveCacheType_NONE :: DriveCacheType
pattern $bDriveCacheType_NONE :: DriveCacheType
$mDriveCacheType_NONE :: forall {r}. DriveCacheType -> ((# #) -> r) -> ((# #) -> r) -> r
DriveCacheType_NONE = DriveCacheType' "NONE"

pattern DriveCacheType_READ :: DriveCacheType
pattern $bDriveCacheType_READ :: DriveCacheType
$mDriveCacheType_READ :: forall {r}. DriveCacheType -> ((# #) -> r) -> ((# #) -> r) -> r
DriveCacheType_READ = DriveCacheType' "READ"

{-# COMPLETE
  DriveCacheType_NONE,
  DriveCacheType_READ,
  DriveCacheType'
  #-}