{-# 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.MacieV2.Types.DailySchedule
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MacieV2.Types.DailySchedule where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Specifies that a classification job runs once a day, every day. This is
-- an empty object.
--
-- /See:/ 'newDailySchedule' smart constructor.
data DailySchedule = DailySchedule'
  {
  }
  deriving (DailySchedule -> DailySchedule -> Bool
(DailySchedule -> DailySchedule -> Bool)
-> (DailySchedule -> DailySchedule -> Bool) -> Eq DailySchedule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DailySchedule -> DailySchedule -> Bool
$c/= :: DailySchedule -> DailySchedule -> Bool
== :: DailySchedule -> DailySchedule -> Bool
$c== :: DailySchedule -> DailySchedule -> Bool
Prelude.Eq, ReadPrec [DailySchedule]
ReadPrec DailySchedule
Int -> ReadS DailySchedule
ReadS [DailySchedule]
(Int -> ReadS DailySchedule)
-> ReadS [DailySchedule]
-> ReadPrec DailySchedule
-> ReadPrec [DailySchedule]
-> Read DailySchedule
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DailySchedule]
$creadListPrec :: ReadPrec [DailySchedule]
readPrec :: ReadPrec DailySchedule
$creadPrec :: ReadPrec DailySchedule
readList :: ReadS [DailySchedule]
$creadList :: ReadS [DailySchedule]
readsPrec :: Int -> ReadS DailySchedule
$creadsPrec :: Int -> ReadS DailySchedule
Prelude.Read, Int -> DailySchedule -> ShowS
[DailySchedule] -> ShowS
DailySchedule -> String
(Int -> DailySchedule -> ShowS)
-> (DailySchedule -> String)
-> ([DailySchedule] -> ShowS)
-> Show DailySchedule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DailySchedule] -> ShowS
$cshowList :: [DailySchedule] -> ShowS
show :: DailySchedule -> String
$cshow :: DailySchedule -> String
showsPrec :: Int -> DailySchedule -> ShowS
$cshowsPrec :: Int -> DailySchedule -> ShowS
Prelude.Show, (forall x. DailySchedule -> Rep DailySchedule x)
-> (forall x. Rep DailySchedule x -> DailySchedule)
-> Generic DailySchedule
forall x. Rep DailySchedule x -> DailySchedule
forall x. DailySchedule -> Rep DailySchedule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DailySchedule x -> DailySchedule
$cfrom :: forall x. DailySchedule -> Rep DailySchedule x
Prelude.Generic)

-- |
-- Create a value of 'DailySchedule' 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.
newDailySchedule ::
  DailySchedule
newDailySchedule :: DailySchedule
newDailySchedule = DailySchedule
DailySchedule'

instance Core.FromJSON DailySchedule where
  parseJSON :: Value -> Parser DailySchedule
parseJSON =
    String
-> (Object -> Parser DailySchedule)
-> Value
-> Parser DailySchedule
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DailySchedule"
      (\Object
x -> DailySchedule -> Parser DailySchedule
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure DailySchedule
DailySchedule')

instance Prelude.Hashable DailySchedule

instance Prelude.NFData DailySchedule

instance Core.ToJSON DailySchedule where
  toJSON :: DailySchedule -> Value
toJSON = Value -> DailySchedule -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)