{-# 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.BatchScheduleActionDeleteResult 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 BatchScheduleActionDeleteResult = BatchScheduleActionDeleteResult'
{
BatchScheduleActionDeleteResult -> [ScheduleAction]
scheduleActions :: [ScheduleAction]
}
deriving (BatchScheduleActionDeleteResult
-> BatchScheduleActionDeleteResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchScheduleActionDeleteResult
-> BatchScheduleActionDeleteResult -> Bool
$c/= :: BatchScheduleActionDeleteResult
-> BatchScheduleActionDeleteResult -> Bool
== :: BatchScheduleActionDeleteResult
-> BatchScheduleActionDeleteResult -> Bool
$c== :: BatchScheduleActionDeleteResult
-> BatchScheduleActionDeleteResult -> Bool
Prelude.Eq, ReadPrec [BatchScheduleActionDeleteResult]
ReadPrec BatchScheduleActionDeleteResult
Int -> ReadS BatchScheduleActionDeleteResult
ReadS [BatchScheduleActionDeleteResult]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchScheduleActionDeleteResult]
$creadListPrec :: ReadPrec [BatchScheduleActionDeleteResult]
readPrec :: ReadPrec BatchScheduleActionDeleteResult
$creadPrec :: ReadPrec BatchScheduleActionDeleteResult
readList :: ReadS [BatchScheduleActionDeleteResult]
$creadList :: ReadS [BatchScheduleActionDeleteResult]
readsPrec :: Int -> ReadS BatchScheduleActionDeleteResult
$creadsPrec :: Int -> ReadS BatchScheduleActionDeleteResult
Prelude.Read, Int -> BatchScheduleActionDeleteResult -> ShowS
[BatchScheduleActionDeleteResult] -> ShowS
BatchScheduleActionDeleteResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchScheduleActionDeleteResult] -> ShowS
$cshowList :: [BatchScheduleActionDeleteResult] -> ShowS
show :: BatchScheduleActionDeleteResult -> String
$cshow :: BatchScheduleActionDeleteResult -> String
showsPrec :: Int -> BatchScheduleActionDeleteResult -> ShowS
$cshowsPrec :: Int -> BatchScheduleActionDeleteResult -> ShowS
Prelude.Show, forall x.
Rep BatchScheduleActionDeleteResult x
-> BatchScheduleActionDeleteResult
forall x.
BatchScheduleActionDeleteResult
-> Rep BatchScheduleActionDeleteResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchScheduleActionDeleteResult x
-> BatchScheduleActionDeleteResult
$cfrom :: forall x.
BatchScheduleActionDeleteResult
-> Rep BatchScheduleActionDeleteResult x
Prelude.Generic)
newBatchScheduleActionDeleteResult ::
BatchScheduleActionDeleteResult
newBatchScheduleActionDeleteResult :: BatchScheduleActionDeleteResult
newBatchScheduleActionDeleteResult =
BatchScheduleActionDeleteResult'
{ $sel:scheduleActions:BatchScheduleActionDeleteResult' :: [ScheduleAction]
scheduleActions =
forall a. Monoid a => a
Prelude.mempty
}
batchScheduleActionDeleteResult_scheduleActions :: Lens.Lens' BatchScheduleActionDeleteResult [ScheduleAction]
batchScheduleActionDeleteResult_scheduleActions :: Lens' BatchScheduleActionDeleteResult [ScheduleAction]
batchScheduleActionDeleteResult_scheduleActions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchScheduleActionDeleteResult' {[ScheduleAction]
scheduleActions :: [ScheduleAction]
$sel:scheduleActions:BatchScheduleActionDeleteResult' :: BatchScheduleActionDeleteResult -> [ScheduleAction]
scheduleActions} -> [ScheduleAction]
scheduleActions) (\s :: BatchScheduleActionDeleteResult
s@BatchScheduleActionDeleteResult' {} [ScheduleAction]
a -> BatchScheduleActionDeleteResult
s {$sel:scheduleActions:BatchScheduleActionDeleteResult' :: [ScheduleAction]
scheduleActions = [ScheduleAction]
a} :: BatchScheduleActionDeleteResult) 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
BatchScheduleActionDeleteResult
where
parseJSON :: Value -> Parser BatchScheduleActionDeleteResult
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchScheduleActionDeleteResult"
( \Object
x ->
[ScheduleAction] -> BatchScheduleActionDeleteResult
BatchScheduleActionDeleteResult'
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
BatchScheduleActionDeleteResult
where
hashWithSalt :: Int -> BatchScheduleActionDeleteResult -> Int
hashWithSalt
Int
_salt
BatchScheduleActionDeleteResult' {[ScheduleAction]
scheduleActions :: [ScheduleAction]
$sel:scheduleActions:BatchScheduleActionDeleteResult' :: BatchScheduleActionDeleteResult -> [ScheduleAction]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [ScheduleAction]
scheduleActions
instance
Prelude.NFData
BatchScheduleActionDeleteResult
where
rnf :: BatchScheduleActionDeleteResult -> ()
rnf BatchScheduleActionDeleteResult' {[ScheduleAction]
scheduleActions :: [ScheduleAction]
$sel:scheduleActions:BatchScheduleActionDeleteResult' :: BatchScheduleActionDeleteResult -> [ScheduleAction]
..} =
forall a. NFData a => a -> ()
Prelude.rnf [ScheduleAction]
scheduleActions