{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Route53.Types.Statistic
( Statistic
( ..,
Statistic_Average,
Statistic_Maximum,
Statistic_Minimum,
Statistic_SampleCount,
Statistic_Sum
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53.Internal
newtype Statistic = Statistic'
{ Statistic -> Text
fromStatistic ::
Data.Text
}
deriving stock
( Int -> Statistic -> ShowS
[Statistic] -> ShowS
Statistic -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Statistic] -> ShowS
$cshowList :: [Statistic] -> ShowS
show :: Statistic -> String
$cshow :: Statistic -> String
showsPrec :: Int -> Statistic -> ShowS
$cshowsPrec :: Int -> Statistic -> ShowS
Prelude.Show,
ReadPrec [Statistic]
ReadPrec Statistic
Int -> ReadS Statistic
ReadS [Statistic]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Statistic]
$creadListPrec :: ReadPrec [Statistic]
readPrec :: ReadPrec Statistic
$creadPrec :: ReadPrec Statistic
readList :: ReadS [Statistic]
$creadList :: ReadS [Statistic]
readsPrec :: Int -> ReadS Statistic
$creadsPrec :: Int -> ReadS Statistic
Prelude.Read,
Statistic -> Statistic -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Statistic -> Statistic -> Bool
$c/= :: Statistic -> Statistic -> Bool
== :: Statistic -> Statistic -> Bool
$c== :: Statistic -> Statistic -> Bool
Prelude.Eq,
Eq Statistic
Statistic -> Statistic -> Bool
Statistic -> Statistic -> Ordering
Statistic -> Statistic -> Statistic
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 :: Statistic -> Statistic -> Statistic
$cmin :: Statistic -> Statistic -> Statistic
max :: Statistic -> Statistic -> Statistic
$cmax :: Statistic -> Statistic -> Statistic
>= :: Statistic -> Statistic -> Bool
$c>= :: Statistic -> Statistic -> Bool
> :: Statistic -> Statistic -> Bool
$c> :: Statistic -> Statistic -> Bool
<= :: Statistic -> Statistic -> Bool
$c<= :: Statistic -> Statistic -> Bool
< :: Statistic -> Statistic -> Bool
$c< :: Statistic -> Statistic -> Bool
compare :: Statistic -> Statistic -> Ordering
$ccompare :: Statistic -> Statistic -> Ordering
Prelude.Ord,
forall x. Rep Statistic x -> Statistic
forall x. Statistic -> Rep Statistic x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Statistic x -> Statistic
$cfrom :: forall x. Statistic -> Rep Statistic x
Prelude.Generic
)
deriving newtype
( Eq Statistic
Int -> Statistic -> Int
Statistic -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Statistic -> Int
$chash :: Statistic -> Int
hashWithSalt :: Int -> Statistic -> Int
$chashWithSalt :: Int -> Statistic -> Int
Prelude.Hashable,
Statistic -> ()
forall a. (a -> ()) -> NFData a
rnf :: Statistic -> ()
$crnf :: Statistic -> ()
Prelude.NFData,
Text -> Either String Statistic
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Statistic
$cfromText :: Text -> Either String Statistic
Data.FromText,
Statistic -> Text
forall a. (a -> Text) -> ToText a
toText :: Statistic -> Text
$ctoText :: Statistic -> Text
Data.ToText,
Statistic -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Statistic -> ByteString
$ctoBS :: Statistic -> ByteString
Data.ToByteString,
Statistic -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Statistic -> ByteStringBuilder
$cbuild :: Statistic -> ByteStringBuilder
Data.ToLog,
HeaderName -> Statistic -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Statistic -> [Header]
$ctoHeader :: HeaderName -> Statistic -> [Header]
Data.ToHeader,
Statistic -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Statistic -> QueryString
$ctoQuery :: Statistic -> QueryString
Data.ToQuery,
Value -> Parser [Statistic]
Value -> Parser Statistic
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Statistic]
$cparseJSONList :: Value -> Parser [Statistic]
parseJSON :: Value -> Parser Statistic
$cparseJSON :: Value -> Parser Statistic
Data.FromJSON,
FromJSONKeyFunction [Statistic]
FromJSONKeyFunction Statistic
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Statistic]
$cfromJSONKeyList :: FromJSONKeyFunction [Statistic]
fromJSONKey :: FromJSONKeyFunction Statistic
$cfromJSONKey :: FromJSONKeyFunction Statistic
Data.FromJSONKey,
[Statistic] -> Encoding
[Statistic] -> Value
Statistic -> Encoding
Statistic -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Statistic] -> Encoding
$ctoEncodingList :: [Statistic] -> Encoding
toJSONList :: [Statistic] -> Value
$ctoJSONList :: [Statistic] -> Value
toEncoding :: Statistic -> Encoding
$ctoEncoding :: Statistic -> Encoding
toJSON :: Statistic -> Value
$ctoJSON :: Statistic -> Value
Data.ToJSON,
ToJSONKeyFunction [Statistic]
ToJSONKeyFunction Statistic
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Statistic]
$ctoJSONKeyList :: ToJSONKeyFunction [Statistic]
toJSONKey :: ToJSONKeyFunction Statistic
$ctoJSONKey :: ToJSONKeyFunction Statistic
Data.ToJSONKey,
[Node] -> Either String Statistic
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Statistic
$cparseXML :: [Node] -> Either String Statistic
Data.FromXML,
Statistic -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Statistic -> XML
$ctoXML :: Statistic -> XML
Data.ToXML
)
pattern Statistic_Average :: Statistic
pattern $bStatistic_Average :: Statistic
$mStatistic_Average :: forall {r}. Statistic -> ((# #) -> r) -> ((# #) -> r) -> r
Statistic_Average = Statistic' "Average"
pattern Statistic_Maximum :: Statistic
pattern $bStatistic_Maximum :: Statistic
$mStatistic_Maximum :: forall {r}. Statistic -> ((# #) -> r) -> ((# #) -> r) -> r
Statistic_Maximum = Statistic' "Maximum"
pattern Statistic_Minimum :: Statistic
pattern $bStatistic_Minimum :: Statistic
$mStatistic_Minimum :: forall {r}. Statistic -> ((# #) -> r) -> ((# #) -> r) -> r
Statistic_Minimum = Statistic' "Minimum"
pattern Statistic_SampleCount :: Statistic
pattern $bStatistic_SampleCount :: Statistic
$mStatistic_SampleCount :: forall {r}. Statistic -> ((# #) -> r) -> ((# #) -> r) -> r
Statistic_SampleCount = Statistic' "SampleCount"
pattern Statistic_Sum :: Statistic
pattern $bStatistic_Sum :: Statistic
$mStatistic_Sum :: forall {r}. Statistic -> ((# #) -> r) -> ((# #) -> r) -> r
Statistic_Sum = Statistic' "Sum"
{-# COMPLETE
Statistic_Average,
Statistic_Maximum,
Statistic_Minimum,
Statistic_SampleCount,
Statistic_Sum,
Statistic'
#-}