{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.FeatureActivationsInputPrepareScheduleActions
-- 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.MediaLive.Types.FeatureActivationsInputPrepareScheduleActions
  ( FeatureActivationsInputPrepareScheduleActions
      ( ..,
        FeatureActivationsInputPrepareScheduleActions_DISABLED,
        FeatureActivationsInputPrepareScheduleActions_ENABLED
      ),
  )
where

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

-- | Feature Activations Input Prepare Schedule Actions
newtype FeatureActivationsInputPrepareScheduleActions = FeatureActivationsInputPrepareScheduleActions'
  { FeatureActivationsInputPrepareScheduleActions -> Text
fromFeatureActivationsInputPrepareScheduleActions ::
      Core.Text
  }
  deriving stock
    ( Int -> FeatureActivationsInputPrepareScheduleActions -> ShowS
[FeatureActivationsInputPrepareScheduleActions] -> ShowS
FeatureActivationsInputPrepareScheduleActions -> String
(Int -> FeatureActivationsInputPrepareScheduleActions -> ShowS)
-> (FeatureActivationsInputPrepareScheduleActions -> String)
-> ([FeatureActivationsInputPrepareScheduleActions] -> ShowS)
-> Show FeatureActivationsInputPrepareScheduleActions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FeatureActivationsInputPrepareScheduleActions] -> ShowS
$cshowList :: [FeatureActivationsInputPrepareScheduleActions] -> ShowS
show :: FeatureActivationsInputPrepareScheduleActions -> String
$cshow :: FeatureActivationsInputPrepareScheduleActions -> String
showsPrec :: Int -> FeatureActivationsInputPrepareScheduleActions -> ShowS
$cshowsPrec :: Int -> FeatureActivationsInputPrepareScheduleActions -> ShowS
Prelude.Show,
      ReadPrec [FeatureActivationsInputPrepareScheduleActions]
ReadPrec FeatureActivationsInputPrepareScheduleActions
Int -> ReadS FeatureActivationsInputPrepareScheduleActions
ReadS [FeatureActivationsInputPrepareScheduleActions]
(Int -> ReadS FeatureActivationsInputPrepareScheduleActions)
-> ReadS [FeatureActivationsInputPrepareScheduleActions]
-> ReadPrec FeatureActivationsInputPrepareScheduleActions
-> ReadPrec [FeatureActivationsInputPrepareScheduleActions]
-> Read FeatureActivationsInputPrepareScheduleActions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FeatureActivationsInputPrepareScheduleActions]
$creadListPrec :: ReadPrec [FeatureActivationsInputPrepareScheduleActions]
readPrec :: ReadPrec FeatureActivationsInputPrepareScheduleActions
$creadPrec :: ReadPrec FeatureActivationsInputPrepareScheduleActions
readList :: ReadS [FeatureActivationsInputPrepareScheduleActions]
$creadList :: ReadS [FeatureActivationsInputPrepareScheduleActions]
readsPrec :: Int -> ReadS FeatureActivationsInputPrepareScheduleActions
$creadsPrec :: Int -> ReadS FeatureActivationsInputPrepareScheduleActions
Prelude.Read,
      FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
(FeatureActivationsInputPrepareScheduleActions
 -> FeatureActivationsInputPrepareScheduleActions -> Bool)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions -> Bool)
-> Eq FeatureActivationsInputPrepareScheduleActions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
$c/= :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
== :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
$c== :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
Prelude.Eq,
      Eq FeatureActivationsInputPrepareScheduleActions
Eq FeatureActivationsInputPrepareScheduleActions
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions -> Ordering)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions -> Bool)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions -> Bool)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions -> Bool)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions -> Bool)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions)
-> (FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions
    -> FeatureActivationsInputPrepareScheduleActions)
-> Ord FeatureActivationsInputPrepareScheduleActions
FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Ordering
FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
$cmin :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
max :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
$cmax :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions
>= :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
$c>= :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
> :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
$c> :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
<= :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
$c<= :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
< :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
$c< :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Bool
compare :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Ordering
$ccompare :: FeatureActivationsInputPrepareScheduleActions
-> FeatureActivationsInputPrepareScheduleActions -> Ordering
$cp1Ord :: Eq FeatureActivationsInputPrepareScheduleActions
Prelude.Ord,
      (forall x.
 FeatureActivationsInputPrepareScheduleActions
 -> Rep FeatureActivationsInputPrepareScheduleActions x)
-> (forall x.
    Rep FeatureActivationsInputPrepareScheduleActions x
    -> FeatureActivationsInputPrepareScheduleActions)
-> Generic FeatureActivationsInputPrepareScheduleActions
forall x.
Rep FeatureActivationsInputPrepareScheduleActions x
-> FeatureActivationsInputPrepareScheduleActions
forall x.
FeatureActivationsInputPrepareScheduleActions
-> Rep FeatureActivationsInputPrepareScheduleActions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FeatureActivationsInputPrepareScheduleActions x
-> FeatureActivationsInputPrepareScheduleActions
$cfrom :: forall x.
FeatureActivationsInputPrepareScheduleActions
-> Rep FeatureActivationsInputPrepareScheduleActions x
Prelude.Generic
    )
  deriving newtype
    ( Int -> FeatureActivationsInputPrepareScheduleActions -> Int
FeatureActivationsInputPrepareScheduleActions -> Int
(Int -> FeatureActivationsInputPrepareScheduleActions -> Int)
-> (FeatureActivationsInputPrepareScheduleActions -> Int)
-> Hashable FeatureActivationsInputPrepareScheduleActions
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FeatureActivationsInputPrepareScheduleActions -> Int
$chash :: FeatureActivationsInputPrepareScheduleActions -> Int
hashWithSalt :: Int -> FeatureActivationsInputPrepareScheduleActions -> Int
$chashWithSalt :: Int -> FeatureActivationsInputPrepareScheduleActions -> Int
Prelude.Hashable,
      FeatureActivationsInputPrepareScheduleActions -> ()
(FeatureActivationsInputPrepareScheduleActions -> ())
-> NFData FeatureActivationsInputPrepareScheduleActions
forall a. (a -> ()) -> NFData a
rnf :: FeatureActivationsInputPrepareScheduleActions -> ()
$crnf :: FeatureActivationsInputPrepareScheduleActions -> ()
Prelude.NFData,
      Text -> Either String FeatureActivationsInputPrepareScheduleActions
(Text
 -> Either String FeatureActivationsInputPrepareScheduleActions)
-> FromText FeatureActivationsInputPrepareScheduleActions
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FeatureActivationsInputPrepareScheduleActions
$cfromText :: Text -> Either String FeatureActivationsInputPrepareScheduleActions
Core.FromText,
      FeatureActivationsInputPrepareScheduleActions -> Text
(FeatureActivationsInputPrepareScheduleActions -> Text)
-> ToText FeatureActivationsInputPrepareScheduleActions
forall a. (a -> Text) -> ToText a
toText :: FeatureActivationsInputPrepareScheduleActions -> Text
$ctoText :: FeatureActivationsInputPrepareScheduleActions -> Text
Core.ToText,
      FeatureActivationsInputPrepareScheduleActions -> ByteString
(FeatureActivationsInputPrepareScheduleActions -> ByteString)
-> ToByteString FeatureActivationsInputPrepareScheduleActions
forall a. (a -> ByteString) -> ToByteString a
toBS :: FeatureActivationsInputPrepareScheduleActions -> ByteString
$ctoBS :: FeatureActivationsInputPrepareScheduleActions -> ByteString
Core.ToByteString,
      FeatureActivationsInputPrepareScheduleActions -> ByteStringBuilder
(FeatureActivationsInputPrepareScheduleActions
 -> ByteStringBuilder)
-> ToLog FeatureActivationsInputPrepareScheduleActions
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FeatureActivationsInputPrepareScheduleActions -> ByteStringBuilder
$cbuild :: FeatureActivationsInputPrepareScheduleActions -> ByteStringBuilder
Core.ToLog,
      HeaderName
-> FeatureActivationsInputPrepareScheduleActions -> [Header]
(HeaderName
 -> FeatureActivationsInputPrepareScheduleActions -> [Header])
-> ToHeader FeatureActivationsInputPrepareScheduleActions
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName
-> FeatureActivationsInputPrepareScheduleActions -> [Header]
$ctoHeader :: HeaderName
-> FeatureActivationsInputPrepareScheduleActions -> [Header]
Core.ToHeader,
      FeatureActivationsInputPrepareScheduleActions -> QueryString
(FeatureActivationsInputPrepareScheduleActions -> QueryString)
-> ToQuery FeatureActivationsInputPrepareScheduleActions
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FeatureActivationsInputPrepareScheduleActions -> QueryString
$ctoQuery :: FeatureActivationsInputPrepareScheduleActions -> QueryString
Core.ToQuery,
      Value -> Parser [FeatureActivationsInputPrepareScheduleActions]
Value -> Parser FeatureActivationsInputPrepareScheduleActions
(Value -> Parser FeatureActivationsInputPrepareScheduleActions)
-> (Value
    -> Parser [FeatureActivationsInputPrepareScheduleActions])
-> FromJSON FeatureActivationsInputPrepareScheduleActions
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FeatureActivationsInputPrepareScheduleActions]
$cparseJSONList :: Value -> Parser [FeatureActivationsInputPrepareScheduleActions]
parseJSON :: Value -> Parser FeatureActivationsInputPrepareScheduleActions
$cparseJSON :: Value -> Parser FeatureActivationsInputPrepareScheduleActions
Core.FromJSON,
      FromJSONKeyFunction [FeatureActivationsInputPrepareScheduleActions]
FromJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
FromJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
-> FromJSONKeyFunction
     [FeatureActivationsInputPrepareScheduleActions]
-> FromJSONKey FeatureActivationsInputPrepareScheduleActions
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FeatureActivationsInputPrepareScheduleActions]
$cfromJSONKeyList :: FromJSONKeyFunction [FeatureActivationsInputPrepareScheduleActions]
fromJSONKey :: FromJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
$cfromJSONKey :: FromJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
Core.FromJSONKey,
      [FeatureActivationsInputPrepareScheduleActions] -> Encoding
[FeatureActivationsInputPrepareScheduleActions] -> Value
FeatureActivationsInputPrepareScheduleActions -> Encoding
FeatureActivationsInputPrepareScheduleActions -> Value
(FeatureActivationsInputPrepareScheduleActions -> Value)
-> (FeatureActivationsInputPrepareScheduleActions -> Encoding)
-> ([FeatureActivationsInputPrepareScheduleActions] -> Value)
-> ([FeatureActivationsInputPrepareScheduleActions] -> Encoding)
-> ToJSON FeatureActivationsInputPrepareScheduleActions
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FeatureActivationsInputPrepareScheduleActions] -> Encoding
$ctoEncodingList :: [FeatureActivationsInputPrepareScheduleActions] -> Encoding
toJSONList :: [FeatureActivationsInputPrepareScheduleActions] -> Value
$ctoJSONList :: [FeatureActivationsInputPrepareScheduleActions] -> Value
toEncoding :: FeatureActivationsInputPrepareScheduleActions -> Encoding
$ctoEncoding :: FeatureActivationsInputPrepareScheduleActions -> Encoding
toJSON :: FeatureActivationsInputPrepareScheduleActions -> Value
$ctoJSON :: FeatureActivationsInputPrepareScheduleActions -> Value
Core.ToJSON,
      ToJSONKeyFunction [FeatureActivationsInputPrepareScheduleActions]
ToJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
ToJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
-> ToJSONKeyFunction
     [FeatureActivationsInputPrepareScheduleActions]
-> ToJSONKey FeatureActivationsInputPrepareScheduleActions
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FeatureActivationsInputPrepareScheduleActions]
$ctoJSONKeyList :: ToJSONKeyFunction [FeatureActivationsInputPrepareScheduleActions]
toJSONKey :: ToJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
$ctoJSONKey :: ToJSONKeyFunction FeatureActivationsInputPrepareScheduleActions
Core.ToJSONKey,
      [Node]
-> Either String FeatureActivationsInputPrepareScheduleActions
([Node]
 -> Either String FeatureActivationsInputPrepareScheduleActions)
-> FromXML FeatureActivationsInputPrepareScheduleActions
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node]
-> Either String FeatureActivationsInputPrepareScheduleActions
$cparseXML :: [Node]
-> Either String FeatureActivationsInputPrepareScheduleActions
Core.FromXML,
      FeatureActivationsInputPrepareScheduleActions -> XML
(FeatureActivationsInputPrepareScheduleActions -> XML)
-> ToXML FeatureActivationsInputPrepareScheduleActions
forall a. (a -> XML) -> ToXML a
toXML :: FeatureActivationsInputPrepareScheduleActions -> XML
$ctoXML :: FeatureActivationsInputPrepareScheduleActions -> XML
Core.ToXML
    )

pattern FeatureActivationsInputPrepareScheduleActions_DISABLED :: FeatureActivationsInputPrepareScheduleActions
pattern $bFeatureActivationsInputPrepareScheduleActions_DISABLED :: FeatureActivationsInputPrepareScheduleActions
$mFeatureActivationsInputPrepareScheduleActions_DISABLED :: forall r.
FeatureActivationsInputPrepareScheduleActions
-> (Void# -> r) -> (Void# -> r) -> r
FeatureActivationsInputPrepareScheduleActions_DISABLED = FeatureActivationsInputPrepareScheduleActions' "DISABLED"

pattern FeatureActivationsInputPrepareScheduleActions_ENABLED :: FeatureActivationsInputPrepareScheduleActions
pattern $bFeatureActivationsInputPrepareScheduleActions_ENABLED :: FeatureActivationsInputPrepareScheduleActions
$mFeatureActivationsInputPrepareScheduleActions_ENABLED :: forall r.
FeatureActivationsInputPrepareScheduleActions
-> (Void# -> r) -> (Void# -> r) -> r
FeatureActivationsInputPrepareScheduleActions_ENABLED = FeatureActivationsInputPrepareScheduleActions' "ENABLED"

{-# COMPLETE
  FeatureActivationsInputPrepareScheduleActions_DISABLED,
  FeatureActivationsInputPrepareScheduleActions_ENABLED,
  FeatureActivationsInputPrepareScheduleActions'
  #-}