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