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