{-# 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.MediaLive.Types.BatchScheduleActionCreateResult where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types.ScheduleAction
import qualified Amazonka.Prelude as Prelude
data BatchScheduleActionCreateResult = BatchScheduleActionCreateResult'
{
BatchScheduleActionCreateResult -> [ScheduleAction]
scheduleActions :: [ScheduleAction]
}
deriving (BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool
(BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool)
-> (BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool)
-> Eq BatchScheduleActionCreateResult
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool
$c/= :: BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool
== :: BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool
$c== :: BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool
Prelude.Eq, ReadPrec [BatchScheduleActionCreateResult]
ReadPrec BatchScheduleActionCreateResult
Int -> ReadS BatchScheduleActionCreateResult
ReadS [BatchScheduleActionCreateResult]
(Int -> ReadS BatchScheduleActionCreateResult)
-> ReadS [BatchScheduleActionCreateResult]
-> ReadPrec BatchScheduleActionCreateResult
-> ReadPrec [BatchScheduleActionCreateResult]
-> Read BatchScheduleActionCreateResult
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchScheduleActionCreateResult]
$creadListPrec :: ReadPrec [BatchScheduleActionCreateResult]
readPrec :: ReadPrec BatchScheduleActionCreateResult
$creadPrec :: ReadPrec BatchScheduleActionCreateResult
readList :: ReadS [BatchScheduleActionCreateResult]
$creadList :: ReadS [BatchScheduleActionCreateResult]
readsPrec :: Int -> ReadS BatchScheduleActionCreateResult
$creadsPrec :: Int -> ReadS BatchScheduleActionCreateResult
Prelude.Read, Int -> BatchScheduleActionCreateResult -> ShowS
[BatchScheduleActionCreateResult] -> ShowS
BatchScheduleActionCreateResult -> String
(Int -> BatchScheduleActionCreateResult -> ShowS)
-> (BatchScheduleActionCreateResult -> String)
-> ([BatchScheduleActionCreateResult] -> ShowS)
-> Show BatchScheduleActionCreateResult
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchScheduleActionCreateResult] -> ShowS
$cshowList :: [BatchScheduleActionCreateResult] -> ShowS
show :: BatchScheduleActionCreateResult -> String
$cshow :: BatchScheduleActionCreateResult -> String
showsPrec :: Int -> BatchScheduleActionCreateResult -> ShowS
$cshowsPrec :: Int -> BatchScheduleActionCreateResult -> ShowS
Prelude.Show, (forall x.
BatchScheduleActionCreateResult
-> Rep BatchScheduleActionCreateResult x)
-> (forall x.
Rep BatchScheduleActionCreateResult x
-> BatchScheduleActionCreateResult)
-> Generic BatchScheduleActionCreateResult
forall x.
Rep BatchScheduleActionCreateResult x
-> BatchScheduleActionCreateResult
forall x.
BatchScheduleActionCreateResult
-> Rep BatchScheduleActionCreateResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchScheduleActionCreateResult x
-> BatchScheduleActionCreateResult
$cfrom :: forall x.
BatchScheduleActionCreateResult
-> Rep BatchScheduleActionCreateResult x
Prelude.Generic)
newBatchScheduleActionCreateResult ::
BatchScheduleActionCreateResult
newBatchScheduleActionCreateResult :: BatchScheduleActionCreateResult
newBatchScheduleActionCreateResult =
BatchScheduleActionCreateResult' :: [ScheduleAction] -> BatchScheduleActionCreateResult
BatchScheduleActionCreateResult'
{ $sel:scheduleActions:BatchScheduleActionCreateResult' :: [ScheduleAction]
scheduleActions =
[ScheduleAction]
forall a. Monoid a => a
Prelude.mempty
}
batchScheduleActionCreateResult_scheduleActions :: Lens.Lens' BatchScheduleActionCreateResult [ScheduleAction]
batchScheduleActionCreateResult_scheduleActions :: ([ScheduleAction] -> f [ScheduleAction])
-> BatchScheduleActionCreateResult
-> f BatchScheduleActionCreateResult
batchScheduleActionCreateResult_scheduleActions = (BatchScheduleActionCreateResult -> [ScheduleAction])
-> (BatchScheduleActionCreateResult
-> [ScheduleAction] -> BatchScheduleActionCreateResult)
-> Lens
BatchScheduleActionCreateResult
BatchScheduleActionCreateResult
[ScheduleAction]
[ScheduleAction]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchScheduleActionCreateResult' {[ScheduleAction]
scheduleActions :: [ScheduleAction]
$sel:scheduleActions:BatchScheduleActionCreateResult' :: BatchScheduleActionCreateResult -> [ScheduleAction]
scheduleActions} -> [ScheduleAction]
scheduleActions) (\s :: BatchScheduleActionCreateResult
s@BatchScheduleActionCreateResult' {} [ScheduleAction]
a -> BatchScheduleActionCreateResult
s {$sel:scheduleActions:BatchScheduleActionCreateResult' :: [ScheduleAction]
scheduleActions = [ScheduleAction]
a} :: BatchScheduleActionCreateResult) (([ScheduleAction] -> f [ScheduleAction])
-> BatchScheduleActionCreateResult
-> f BatchScheduleActionCreateResult)
-> (([ScheduleAction] -> f [ScheduleAction])
-> [ScheduleAction] -> f [ScheduleAction])
-> ([ScheduleAction] -> f [ScheduleAction])
-> BatchScheduleActionCreateResult
-> f BatchScheduleActionCreateResult
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ScheduleAction] -> f [ScheduleAction])
-> [ScheduleAction] -> f [ScheduleAction]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.FromJSON
BatchScheduleActionCreateResult
where
parseJSON :: Value -> Parser BatchScheduleActionCreateResult
parseJSON =
String
-> (Object -> Parser BatchScheduleActionCreateResult)
-> Value
-> Parser BatchScheduleActionCreateResult
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BatchScheduleActionCreateResult"
( \Object
x ->
[ScheduleAction] -> BatchScheduleActionCreateResult
BatchScheduleActionCreateResult'
([ScheduleAction] -> BatchScheduleActionCreateResult)
-> Parser [ScheduleAction]
-> Parser BatchScheduleActionCreateResult
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Parser (Maybe [ScheduleAction])
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"scheduleActions"
Parser (Maybe [ScheduleAction])
-> [ScheduleAction] -> Parser [ScheduleAction]
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= [ScheduleAction]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
BatchScheduleActionCreateResult
instance
Prelude.NFData
BatchScheduleActionCreateResult