{-# 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.MediaTailor.Types.ScheduleEntryType
-- 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.MediaTailor.Types.ScheduleEntryType
  ( ScheduleEntryType
      ( ..,
        ScheduleEntryType_FILLER_SLATE,
        ScheduleEntryType_PROGRAM
      ),
  )
where

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

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

pattern ScheduleEntryType_FILLER_SLATE :: ScheduleEntryType
pattern $bScheduleEntryType_FILLER_SLATE :: ScheduleEntryType
$mScheduleEntryType_FILLER_SLATE :: forall r. ScheduleEntryType -> (Void# -> r) -> (Void# -> r) -> r
ScheduleEntryType_FILLER_SLATE = ScheduleEntryType' "FILLER_SLATE"

pattern ScheduleEntryType_PROGRAM :: ScheduleEntryType
pattern $bScheduleEntryType_PROGRAM :: ScheduleEntryType
$mScheduleEntryType_PROGRAM :: forall r. ScheduleEntryType -> (Void# -> r) -> (Void# -> r) -> r
ScheduleEntryType_PROGRAM = ScheduleEntryType' "PROGRAM"

{-# COMPLETE
  ScheduleEntryType_FILLER_SLATE,
  ScheduleEntryType_PROGRAM,
  ScheduleEntryType'
  #-}