amazonka-medialive-2.0: gen/Amazonka/MediaLive/Types/BatchScheduleActionCreateResult.hs
{-# 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 #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Amazonka.MediaLive.Types.BatchScheduleActionCreateResult
-- Copyright : (c) 2013-2023 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
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
-- | List of actions that have been created in the schedule.
--
-- /See:/ 'newBatchScheduleActionCreateResult' smart constructor.
data BatchScheduleActionCreateResult = BatchScheduleActionCreateResult'
{ -- | List of actions that have been created in the schedule.
scheduleActions :: [ScheduleAction]
}
deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)
-- |
-- Create a value of 'BatchScheduleActionCreateResult' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'scheduleActions', 'batchScheduleActionCreateResult_scheduleActions' - List of actions that have been created in the schedule.
newBatchScheduleActionCreateResult ::
BatchScheduleActionCreateResult
newBatchScheduleActionCreateResult =
BatchScheduleActionCreateResult'
{ scheduleActions =
Prelude.mempty
}
-- | List of actions that have been created in the schedule.
batchScheduleActionCreateResult_scheduleActions :: Lens.Lens' BatchScheduleActionCreateResult [ScheduleAction]
batchScheduleActionCreateResult_scheduleActions = Lens.lens (\BatchScheduleActionCreateResult' {scheduleActions} -> scheduleActions) (\s@BatchScheduleActionCreateResult' {} a -> s {scheduleActions = a} :: BatchScheduleActionCreateResult) Prelude.. Lens.coerced
instance
Data.FromJSON
BatchScheduleActionCreateResult
where
parseJSON =
Data.withObject
"BatchScheduleActionCreateResult"
( \x ->
BatchScheduleActionCreateResult'
Prelude.<$> ( x
Data..:? "scheduleActions"
Data..!= Prelude.mempty
)
)
instance
Prelude.Hashable
BatchScheduleActionCreateResult
where
hashWithSalt
_salt
BatchScheduleActionCreateResult' {..} =
_salt `Prelude.hashWithSalt` scheduleActions
instance
Prelude.NFData
BatchScheduleActionCreateResult
where
rnf BatchScheduleActionCreateResult' {..} =
Prelude.rnf scheduleActions