{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DataBrew.Types.Schedule where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Schedule = Schedule'
{
Schedule -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Core.POSIX,
Schedule -> Maybe POSIX
createDate :: Prelude.Maybe Core.POSIX,
Schedule -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
Schedule -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
Schedule -> Maybe Text
resourceArn :: Prelude.Maybe Prelude.Text,
Schedule -> Maybe Text
cronExpression :: Prelude.Maybe Prelude.Text,
Schedule -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
Schedule -> Maybe [Text]
jobNames :: Prelude.Maybe [Prelude.Text],
Schedule -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
Schedule -> Text
name :: Prelude.Text
}
deriving (Schedule -> Schedule -> Bool
(Schedule -> Schedule -> Bool)
-> (Schedule -> Schedule -> Bool) -> Eq Schedule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Schedule -> Schedule -> Bool
$c/= :: Schedule -> Schedule -> Bool
== :: Schedule -> Schedule -> Bool
$c== :: Schedule -> Schedule -> Bool
Prelude.Eq, ReadPrec [Schedule]
ReadPrec Schedule
Int -> ReadS Schedule
ReadS [Schedule]
(Int -> ReadS Schedule)
-> ReadS [Schedule]
-> ReadPrec Schedule
-> ReadPrec [Schedule]
-> Read Schedule
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Schedule]
$creadListPrec :: ReadPrec [Schedule]
readPrec :: ReadPrec Schedule
$creadPrec :: ReadPrec Schedule
readList :: ReadS [Schedule]
$creadList :: ReadS [Schedule]
readsPrec :: Int -> ReadS Schedule
$creadsPrec :: Int -> ReadS Schedule
Prelude.Read, Int -> Schedule -> ShowS
[Schedule] -> ShowS
Schedule -> String
(Int -> Schedule -> ShowS)
-> (Schedule -> String) -> ([Schedule] -> ShowS) -> Show Schedule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Schedule] -> ShowS
$cshowList :: [Schedule] -> ShowS
show :: Schedule -> String
$cshow :: Schedule -> String
showsPrec :: Int -> Schedule -> ShowS
$cshowsPrec :: Int -> Schedule -> ShowS
Prelude.Show, (forall x. Schedule -> Rep Schedule x)
-> (forall x. Rep Schedule x -> Schedule) -> Generic Schedule
forall x. Rep Schedule x -> Schedule
forall x. Schedule -> Rep Schedule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Schedule x -> Schedule
$cfrom :: forall x. Schedule -> Rep Schedule x
Prelude.Generic)
newSchedule ::
Prelude.Text ->
Schedule
newSchedule :: Text -> Schedule
newSchedule Text
pName_ =
Schedule' :: Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule
Schedule'
{ $sel:lastModifiedDate:Schedule' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:createDate:Schedule' :: Maybe POSIX
createDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:Schedule' :: Maybe Text
createdBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:Schedule' :: Maybe Text
accountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:Schedule' :: Maybe Text
resourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cronExpression:Schedule' :: Maybe Text
cronExpression = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedBy:Schedule' :: Maybe Text
lastModifiedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobNames:Schedule' :: Maybe [Text]
jobNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:Schedule' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:Schedule' :: Text
name = Text
pName_
}
schedule_lastModifiedDate :: Lens.Lens' Schedule (Prelude.Maybe Prelude.UTCTime)
schedule_lastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Schedule -> f Schedule
schedule_lastModifiedDate = (Schedule -> Maybe POSIX)
-> (Schedule -> Maybe POSIX -> Schedule)
-> Lens Schedule Schedule (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe POSIX
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:Schedule' :: Schedule -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: Schedule
s@Schedule' {} Maybe POSIX
a -> Schedule
s {$sel:lastModifiedDate:Schedule' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
a} :: Schedule) ((Maybe POSIX -> f (Maybe POSIX)) -> Schedule -> f Schedule)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Schedule
-> f Schedule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
schedule_createDate :: Lens.Lens' Schedule (Prelude.Maybe Prelude.UTCTime)
schedule_createDate :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Schedule -> f Schedule
schedule_createDate = (Schedule -> Maybe POSIX)
-> (Schedule -> Maybe POSIX -> Schedule)
-> Lens Schedule Schedule (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe POSIX
createDate :: Maybe POSIX
$sel:createDate:Schedule' :: Schedule -> Maybe POSIX
createDate} -> Maybe POSIX
createDate) (\s :: Schedule
s@Schedule' {} Maybe POSIX
a -> Schedule
s {$sel:createDate:Schedule' :: Maybe POSIX
createDate = Maybe POSIX
a} :: Schedule) ((Maybe POSIX -> f (Maybe POSIX)) -> Schedule -> f Schedule)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Schedule
-> f Schedule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
schedule_createdBy :: Lens.Lens' Schedule (Prelude.Maybe Prelude.Text)
schedule_createdBy :: (Maybe Text -> f (Maybe Text)) -> Schedule -> f Schedule
schedule_createdBy = (Schedule -> Maybe Text)
-> (Schedule -> Maybe Text -> Schedule)
-> Lens Schedule Schedule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:Schedule' :: Schedule -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: Schedule
s@Schedule' {} Maybe Text
a -> Schedule
s {$sel:createdBy:Schedule' :: Maybe Text
createdBy = Maybe Text
a} :: Schedule)
schedule_accountId :: Lens.Lens' Schedule (Prelude.Maybe Prelude.Text)
schedule_accountId :: (Maybe Text -> f (Maybe Text)) -> Schedule -> f Schedule
schedule_accountId = (Schedule -> Maybe Text)
-> (Schedule -> Maybe Text -> Schedule)
-> Lens Schedule Schedule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe Text
accountId :: Maybe Text
$sel:accountId:Schedule' :: Schedule -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: Schedule
s@Schedule' {} Maybe Text
a -> Schedule
s {$sel:accountId:Schedule' :: Maybe Text
accountId = Maybe Text
a} :: Schedule)
schedule_resourceArn :: Lens.Lens' Schedule (Prelude.Maybe Prelude.Text)
schedule_resourceArn :: (Maybe Text -> f (Maybe Text)) -> Schedule -> f Schedule
schedule_resourceArn = (Schedule -> Maybe Text)
-> (Schedule -> Maybe Text -> Schedule)
-> Lens Schedule Schedule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe Text
resourceArn :: Maybe Text
$sel:resourceArn:Schedule' :: Schedule -> Maybe Text
resourceArn} -> Maybe Text
resourceArn) (\s :: Schedule
s@Schedule' {} Maybe Text
a -> Schedule
s {$sel:resourceArn:Schedule' :: Maybe Text
resourceArn = Maybe Text
a} :: Schedule)
schedule_cronExpression :: Lens.Lens' Schedule (Prelude.Maybe Prelude.Text)
schedule_cronExpression :: (Maybe Text -> f (Maybe Text)) -> Schedule -> f Schedule
schedule_cronExpression = (Schedule -> Maybe Text)
-> (Schedule -> Maybe Text -> Schedule)
-> Lens Schedule Schedule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe Text
cronExpression :: Maybe Text
$sel:cronExpression:Schedule' :: Schedule -> Maybe Text
cronExpression} -> Maybe Text
cronExpression) (\s :: Schedule
s@Schedule' {} Maybe Text
a -> Schedule
s {$sel:cronExpression:Schedule' :: Maybe Text
cronExpression = Maybe Text
a} :: Schedule)
schedule_lastModifiedBy :: Lens.Lens' Schedule (Prelude.Maybe Prelude.Text)
schedule_lastModifiedBy :: (Maybe Text -> f (Maybe Text)) -> Schedule -> f Schedule
schedule_lastModifiedBy = (Schedule -> Maybe Text)
-> (Schedule -> Maybe Text -> Schedule)
-> Lens Schedule Schedule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe Text
lastModifiedBy :: Maybe Text
$sel:lastModifiedBy:Schedule' :: Schedule -> Maybe Text
lastModifiedBy} -> Maybe Text
lastModifiedBy) (\s :: Schedule
s@Schedule' {} Maybe Text
a -> Schedule
s {$sel:lastModifiedBy:Schedule' :: Maybe Text
lastModifiedBy = Maybe Text
a} :: Schedule)
schedule_jobNames :: Lens.Lens' Schedule (Prelude.Maybe [Prelude.Text])
schedule_jobNames :: (Maybe [Text] -> f (Maybe [Text])) -> Schedule -> f Schedule
schedule_jobNames = (Schedule -> Maybe [Text])
-> (Schedule -> Maybe [Text] -> Schedule)
-> Lens Schedule Schedule (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe [Text]
jobNames :: Maybe [Text]
$sel:jobNames:Schedule' :: Schedule -> Maybe [Text]
jobNames} -> Maybe [Text]
jobNames) (\s :: Schedule
s@Schedule' {} Maybe [Text]
a -> Schedule
s {$sel:jobNames:Schedule' :: Maybe [Text]
jobNames = Maybe [Text]
a} :: Schedule) ((Maybe [Text] -> f (Maybe [Text])) -> Schedule -> f Schedule)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> Schedule
-> f Schedule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
schedule_tags :: Lens.Lens' Schedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
schedule_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Schedule -> f Schedule
schedule_tags = (Schedule -> Maybe (HashMap Text Text))
-> (Schedule -> Maybe (HashMap Text Text) -> Schedule)
-> Lens
Schedule
Schedule
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Schedule' :: Schedule -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Schedule
s@Schedule' {} Maybe (HashMap Text Text)
a -> Schedule
s {$sel:tags:Schedule' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Schedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Schedule -> f Schedule)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Schedule
-> f Schedule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
schedule_name :: Lens.Lens' Schedule Prelude.Text
schedule_name :: (Text -> f Text) -> Schedule -> f Schedule
schedule_name = (Schedule -> Text)
-> (Schedule -> Text -> Schedule)
-> Lens Schedule Schedule Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Schedule' {Text
name :: Text
$sel:name:Schedule' :: Schedule -> Text
name} -> Text
name) (\s :: Schedule
s@Schedule' {} Text
a -> Schedule
s {$sel:name:Schedule' :: Text
name = Text
a} :: Schedule)
instance Core.FromJSON Schedule where
parseJSON :: Value -> Parser Schedule
parseJSON =
String -> (Object -> Parser Schedule) -> Value -> Parser Schedule
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Schedule"
( \Object
x ->
Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule
Schedule'
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModifiedDate")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreateDate")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedBy")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccountId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ResourceArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Text
-> Schedule)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe [Text] -> Maybe (HashMap Text Text) -> Text -> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CronExpression")
Parser
(Maybe Text
-> Maybe [Text] -> Maybe (HashMap Text Text) -> Text -> Schedule)
-> Parser (Maybe Text)
-> Parser
(Maybe [Text] -> Maybe (HashMap Text Text) -> Text -> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModifiedBy")
Parser
(Maybe [Text] -> Maybe (HashMap Text Text) -> Text -> Schedule)
-> Parser (Maybe [Text])
-> Parser (Maybe (HashMap Text Text) -> Text -> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobNames" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser (Maybe (HashMap Text Text) -> Text -> Schedule)
-> Parser (Maybe (HashMap Text Text)) -> Parser (Text -> Schedule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Parser (Text -> Schedule) -> Parser Text -> Parser Schedule
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Name")
)
instance Prelude.Hashable Schedule
instance Prelude.NFData Schedule