{-# 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.ThroughputMode
-- 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.ThroughputMode
  ( ThroughputMode
      ( ..,
        ThroughputMode_Bursting,
        ThroughputMode_Provisioned
      ),
  )
where

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

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

pattern ThroughputMode_Bursting :: ThroughputMode
pattern $bThroughputMode_Bursting :: ThroughputMode
$mThroughputMode_Bursting :: forall r. ThroughputMode -> (Void# -> r) -> (Void# -> r) -> r
ThroughputMode_Bursting = ThroughputMode' "bursting"

pattern ThroughputMode_Provisioned :: ThroughputMode
pattern $bThroughputMode_Provisioned :: ThroughputMode
$mThroughputMode_Provisioned :: forall r. ThroughputMode -> (Void# -> r) -> (Void# -> r) -> r
ThroughputMode_Provisioned = ThroughputMode' "provisioned"

{-# COMPLETE
  ThroughputMode_Bursting,
  ThroughputMode_Provisioned,
  ThroughputMode'
  #-}