{-# 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.StatisticType
-- 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.StatisticType
  ( StatisticType
      ( ..,
        StatisticType_P50
      ),
  )
where

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

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

pattern StatisticType_P50 :: StatisticType
pattern $bStatisticType_P50 :: StatisticType
$mStatisticType_P50 :: forall {r}. StatisticType -> ((# #) -> r) -> ((# #) -> r) -> r
StatisticType_P50 = StatisticType' "p50"

{-# COMPLETE
  StatisticType_P50,
  StatisticType'
  #-}