{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types.ScheduleAction
import qualified Amazonka.Prelude as Prelude
data BatchScheduleActionCreateResult = BatchScheduleActionCreateResult'
{
BatchScheduleActionCreateResult -> [ScheduleAction]
scheduleActions :: [ScheduleAction]
}
deriving (BatchScheduleActionCreateResult
-> BatchScheduleActionCreateResult -> Bool
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]
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
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.
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'
{ $sel:scheduleActions:BatchScheduleActionCreateResult' :: [ScheduleAction]
scheduleActions =
forall a. Monoid a => a
Prelude.mempty
}
batchScheduleActionCreateResult_scheduleActions :: Lens.Lens' BatchScheduleActionCreateResult [ScheduleAction]
batchScheduleActionCreateResult_scheduleActions :: Lens' BatchScheduleActionCreateResult [ScheduleAction]
batchScheduleActionCreateResult_scheduleActions = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Data.FromJSON
BatchScheduleActionCreateResult
where
parseJSON :: Value -> Parser BatchScheduleActionCreateResult
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchScheduleActionCreateResult"
( \Object
x ->
[ScheduleAction] -> BatchScheduleActionCreateResult
BatchScheduleActionCreateResult'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scheduleActions"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
BatchScheduleActionCreateResult
where
hashWithSalt :: Int -> BatchScheduleActionCreateResult -> Int
hashWithSalt
Int
_salt
BatchScheduleActionCreateResult' {[ScheduleAction]
scheduleActions :: [ScheduleAction]
$sel:scheduleActions:BatchScheduleActionCreateResult' :: BatchScheduleActionCreateResult -> [ScheduleAction]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [ScheduleAction]
scheduleActions
instance
Prelude.NFData
BatchScheduleActionCreateResult
where
rnf :: BatchScheduleActionCreateResult -> ()
rnf BatchScheduleActionCreateResult' {[ScheduleAction]
scheduleActions :: [ScheduleAction]
$sel:scheduleActions:BatchScheduleActionCreateResult' :: BatchScheduleActionCreateResult -> [ScheduleAction]
..} =
forall a. NFData a => a -> ()
Prelude.rnf [ScheduleAction]
scheduleActions