{-# 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.OpsWorks.Types.WeeklyAutoScalingSchedule where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data WeeklyAutoScalingSchedule = WeeklyAutoScalingSchedule'
{
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
thursday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
wednesday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
saturday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
monday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
friday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
sunday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
tuesday :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
}
deriving (WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool
(WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool)
-> (WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool)
-> Eq WeeklyAutoScalingSchedule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool
$c/= :: WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool
== :: WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool
$c== :: WeeklyAutoScalingSchedule -> WeeklyAutoScalingSchedule -> Bool
Prelude.Eq, ReadPrec [WeeklyAutoScalingSchedule]
ReadPrec WeeklyAutoScalingSchedule
Int -> ReadS WeeklyAutoScalingSchedule
ReadS [WeeklyAutoScalingSchedule]
(Int -> ReadS WeeklyAutoScalingSchedule)
-> ReadS [WeeklyAutoScalingSchedule]
-> ReadPrec WeeklyAutoScalingSchedule
-> ReadPrec [WeeklyAutoScalingSchedule]
-> Read WeeklyAutoScalingSchedule
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WeeklyAutoScalingSchedule]
$creadListPrec :: ReadPrec [WeeklyAutoScalingSchedule]
readPrec :: ReadPrec WeeklyAutoScalingSchedule
$creadPrec :: ReadPrec WeeklyAutoScalingSchedule
readList :: ReadS [WeeklyAutoScalingSchedule]
$creadList :: ReadS [WeeklyAutoScalingSchedule]
readsPrec :: Int -> ReadS WeeklyAutoScalingSchedule
$creadsPrec :: Int -> ReadS WeeklyAutoScalingSchedule
Prelude.Read, Int -> WeeklyAutoScalingSchedule -> ShowS
[WeeklyAutoScalingSchedule] -> ShowS
WeeklyAutoScalingSchedule -> String
(Int -> WeeklyAutoScalingSchedule -> ShowS)
-> (WeeklyAutoScalingSchedule -> String)
-> ([WeeklyAutoScalingSchedule] -> ShowS)
-> Show WeeklyAutoScalingSchedule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WeeklyAutoScalingSchedule] -> ShowS
$cshowList :: [WeeklyAutoScalingSchedule] -> ShowS
show :: WeeklyAutoScalingSchedule -> String
$cshow :: WeeklyAutoScalingSchedule -> String
showsPrec :: Int -> WeeklyAutoScalingSchedule -> ShowS
$cshowsPrec :: Int -> WeeklyAutoScalingSchedule -> ShowS
Prelude.Show, (forall x.
WeeklyAutoScalingSchedule -> Rep WeeklyAutoScalingSchedule x)
-> (forall x.
Rep WeeklyAutoScalingSchedule x -> WeeklyAutoScalingSchedule)
-> Generic WeeklyAutoScalingSchedule
forall x.
Rep WeeklyAutoScalingSchedule x -> WeeklyAutoScalingSchedule
forall x.
WeeklyAutoScalingSchedule -> Rep WeeklyAutoScalingSchedule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep WeeklyAutoScalingSchedule x -> WeeklyAutoScalingSchedule
$cfrom :: forall x.
WeeklyAutoScalingSchedule -> Rep WeeklyAutoScalingSchedule x
Prelude.Generic)
newWeeklyAutoScalingSchedule ::
WeeklyAutoScalingSchedule
newWeeklyAutoScalingSchedule :: WeeklyAutoScalingSchedule
newWeeklyAutoScalingSchedule =
WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule'
{ $sel:thursday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
thursday =
Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:wednesday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
wednesday = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:saturday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
saturday = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:monday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
monday = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:friday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
friday = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:sunday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
sunday = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:tuesday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
tuesday = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
}
weeklyAutoScalingSchedule_thursday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_thursday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_thursday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
thursday :: Maybe (HashMap Text Text)
$sel:thursday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
thursday} -> Maybe (HashMap Text Text)
thursday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:thursday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
thursday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
weeklyAutoScalingSchedule_wednesday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_wednesday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_wednesday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
wednesday :: Maybe (HashMap Text Text)
$sel:wednesday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
wednesday} -> Maybe (HashMap Text Text)
wednesday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:wednesday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
wednesday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
weeklyAutoScalingSchedule_saturday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_saturday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_saturday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
saturday :: Maybe (HashMap Text Text)
$sel:saturday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
saturday} -> Maybe (HashMap Text Text)
saturday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:saturday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
saturday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
weeklyAutoScalingSchedule_monday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_monday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_monday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
monday :: Maybe (HashMap Text Text)
$sel:monday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
monday} -> Maybe (HashMap Text Text)
monday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:monday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
monday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
weeklyAutoScalingSchedule_friday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_friday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_friday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
friday :: Maybe (HashMap Text Text)
$sel:friday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
friday} -> Maybe (HashMap Text Text)
friday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:friday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
friday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
weeklyAutoScalingSchedule_sunday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_sunday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_sunday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
sunday :: Maybe (HashMap Text Text)
$sel:sunday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
sunday} -> Maybe (HashMap Text Text)
sunday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:sunday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
sunday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
weeklyAutoScalingSchedule_tuesday :: Lens.Lens' WeeklyAutoScalingSchedule (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
weeklyAutoScalingSchedule_tuesday :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule
weeklyAutoScalingSchedule_tuesday = (WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text))
-> (WeeklyAutoScalingSchedule
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Lens
WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule
(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 (\WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
tuesday :: Maybe (HashMap Text Text)
$sel:tuesday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
tuesday} -> Maybe (HashMap Text Text)
tuesday) (\s :: WeeklyAutoScalingSchedule
s@WeeklyAutoScalingSchedule' {} Maybe (HashMap Text Text)
a -> WeeklyAutoScalingSchedule
s {$sel:tuesday:WeeklyAutoScalingSchedule' :: Maybe (HashMap Text Text)
tuesday = Maybe (HashMap Text Text)
a} :: WeeklyAutoScalingSchedule) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> WeeklyAutoScalingSchedule -> f WeeklyAutoScalingSchedule)
-> ((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)))
-> WeeklyAutoScalingSchedule
-> f WeeklyAutoScalingSchedule
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
instance Core.FromJSON WeeklyAutoScalingSchedule where
parseJSON :: Value -> Parser WeeklyAutoScalingSchedule
parseJSON =
String
-> (Object -> Parser WeeklyAutoScalingSchedule)
-> Value
-> Parser WeeklyAutoScalingSchedule
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"WeeklyAutoScalingSchedule"
( \Object
x ->
Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule
WeeklyAutoScalingSchedule'
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
forall (f :: * -> *) a b. Functor 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
"Thursday" 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
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
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
"Wednesday" 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
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
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
"Saturday" 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
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
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
"Monday" 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
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
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
"Friday" 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
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser (Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
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
"Sunday" 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 (Maybe (HashMap Text Text) -> WeeklyAutoScalingSchedule)
-> Parser (Maybe (HashMap Text Text))
-> Parser WeeklyAutoScalingSchedule
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
"Tuesday" 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)
)
instance Prelude.Hashable WeeklyAutoScalingSchedule
instance Prelude.NFData WeeklyAutoScalingSchedule
instance Core.ToJSON WeeklyAutoScalingSchedule where
toJSON :: WeeklyAutoScalingSchedule -> Value
toJSON WeeklyAutoScalingSchedule' {Maybe (HashMap Text Text)
tuesday :: Maybe (HashMap Text Text)
sunday :: Maybe (HashMap Text Text)
friday :: Maybe (HashMap Text Text)
monday :: Maybe (HashMap Text Text)
saturday :: Maybe (HashMap Text Text)
wednesday :: Maybe (HashMap Text Text)
thursday :: Maybe (HashMap Text Text)
$sel:tuesday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
$sel:sunday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
$sel:friday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
$sel:monday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
$sel:saturday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
$sel:wednesday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
$sel:thursday:WeeklyAutoScalingSchedule' :: WeeklyAutoScalingSchedule -> Maybe (HashMap Text Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Thursday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
thursday,
(Text
"Wednesday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
wednesday,
(Text
"Saturday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
saturday,
(Text
"Monday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
monday,
(Text
"Friday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
friday,
(Text
"Sunday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
sunday,
(Text
"Tuesday" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tuesday
]
)