{-# 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.EC2.Types.BurstablePerformance
-- 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.EC2.Types.BurstablePerformance
  ( BurstablePerformance
      ( ..,
        BurstablePerformance_Excluded,
        BurstablePerformance_Included,
        BurstablePerformance_Required
      ),
  )
where

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

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

pattern BurstablePerformance_Excluded :: BurstablePerformance
pattern $bBurstablePerformance_Excluded :: BurstablePerformance
$mBurstablePerformance_Excluded :: forall {r}.
BurstablePerformance -> ((# #) -> r) -> ((# #) -> r) -> r
BurstablePerformance_Excluded = BurstablePerformance' "excluded"

pattern BurstablePerformance_Included :: BurstablePerformance
pattern $bBurstablePerformance_Included :: BurstablePerformance
$mBurstablePerformance_Included :: forall {r}.
BurstablePerformance -> ((# #) -> r) -> ((# #) -> r) -> r
BurstablePerformance_Included = BurstablePerformance' "included"

pattern BurstablePerformance_Required :: BurstablePerformance
pattern $bBurstablePerformance_Required :: BurstablePerformance
$mBurstablePerformance_Required :: forall {r}.
BurstablePerformance -> ((# #) -> r) -> ((# #) -> r) -> r
BurstablePerformance_Required = BurstablePerformance' "required"

{-# COMPLETE
  BurstablePerformance_Excluded,
  BurstablePerformance_Included,
  BurstablePerformance_Required,
  BurstablePerformance'
  #-}