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