{-# 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.PerformanceMode
-- 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.PerformanceMode
  ( PerformanceMode
      ( ..,
        PerformanceMode_GeneralPurpose,
        PerformanceMode_MaxIO
      ),
  )
where

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

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

pattern PerformanceMode_GeneralPurpose :: PerformanceMode
pattern $bPerformanceMode_GeneralPurpose :: PerformanceMode
$mPerformanceMode_GeneralPurpose :: forall r. PerformanceMode -> (Void# -> r) -> (Void# -> r) -> r
PerformanceMode_GeneralPurpose = PerformanceMode' "generalPurpose"

pattern PerformanceMode_MaxIO :: PerformanceMode
pattern $bPerformanceMode_MaxIO :: PerformanceMode
$mPerformanceMode_MaxIO :: forall r. PerformanceMode -> (Void# -> r) -> (Void# -> r) -> r
PerformanceMode_MaxIO = PerformanceMode' "maxIO"

{-# COMPLETE
  PerformanceMode_GeneralPurpose,
  PerformanceMode_MaxIO,
  PerformanceMode'
  #-}