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