{-# 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.IFrameOnlyPlaylistType
-- 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.IFrameOnlyPlaylistType
  ( IFrameOnlyPlaylistType
      ( ..,
        IFrameOnlyPlaylistType_DISABLED,
        IFrameOnlyPlaylistType_STANDARD
      ),
  )
where

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

-- | When set to \"standard\", an I-Frame only playlist will be written out
-- for each video output in the output group. This I-Frame only playlist
-- will contain byte range offsets pointing to the I-frame(s) in each
-- segment.
newtype IFrameOnlyPlaylistType = IFrameOnlyPlaylistType'
  { IFrameOnlyPlaylistType -> Text
fromIFrameOnlyPlaylistType ::
      Core.Text
  }
  deriving stock
    ( Int -> IFrameOnlyPlaylistType -> ShowS
[IFrameOnlyPlaylistType] -> ShowS
IFrameOnlyPlaylistType -> String
(Int -> IFrameOnlyPlaylistType -> ShowS)
-> (IFrameOnlyPlaylistType -> String)
-> ([IFrameOnlyPlaylistType] -> ShowS)
-> Show IFrameOnlyPlaylistType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IFrameOnlyPlaylistType] -> ShowS
$cshowList :: [IFrameOnlyPlaylistType] -> ShowS
show :: IFrameOnlyPlaylistType -> String
$cshow :: IFrameOnlyPlaylistType -> String
showsPrec :: Int -> IFrameOnlyPlaylistType -> ShowS
$cshowsPrec :: Int -> IFrameOnlyPlaylistType -> ShowS
Prelude.Show,
      ReadPrec [IFrameOnlyPlaylistType]
ReadPrec IFrameOnlyPlaylistType
Int -> ReadS IFrameOnlyPlaylistType
ReadS [IFrameOnlyPlaylistType]
(Int -> ReadS IFrameOnlyPlaylistType)
-> ReadS [IFrameOnlyPlaylistType]
-> ReadPrec IFrameOnlyPlaylistType
-> ReadPrec [IFrameOnlyPlaylistType]
-> Read IFrameOnlyPlaylistType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IFrameOnlyPlaylistType]
$creadListPrec :: ReadPrec [IFrameOnlyPlaylistType]
readPrec :: ReadPrec IFrameOnlyPlaylistType
$creadPrec :: ReadPrec IFrameOnlyPlaylistType
readList :: ReadS [IFrameOnlyPlaylistType]
$creadList :: ReadS [IFrameOnlyPlaylistType]
readsPrec :: Int -> ReadS IFrameOnlyPlaylistType
$creadsPrec :: Int -> ReadS IFrameOnlyPlaylistType
Prelude.Read,
      IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
(IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool)
-> (IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool)
-> Eq IFrameOnlyPlaylistType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
$c/= :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
== :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
$c== :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
Prelude.Eq,
      Eq IFrameOnlyPlaylistType
Eq IFrameOnlyPlaylistType
-> (IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Ordering)
-> (IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool)
-> (IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool)
-> (IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool)
-> (IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool)
-> (IFrameOnlyPlaylistType
    -> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType)
-> (IFrameOnlyPlaylistType
    -> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType)
-> Ord IFrameOnlyPlaylistType
IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Ordering
IFrameOnlyPlaylistType
-> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType
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 :: IFrameOnlyPlaylistType
-> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType
$cmin :: IFrameOnlyPlaylistType
-> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType
max :: IFrameOnlyPlaylistType
-> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType
$cmax :: IFrameOnlyPlaylistType
-> IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType
>= :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
$c>= :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
> :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
$c> :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
<= :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
$c<= :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
< :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
$c< :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Bool
compare :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Ordering
$ccompare :: IFrameOnlyPlaylistType -> IFrameOnlyPlaylistType -> Ordering
$cp1Ord :: Eq IFrameOnlyPlaylistType
Prelude.Ord,
      (forall x. IFrameOnlyPlaylistType -> Rep IFrameOnlyPlaylistType x)
-> (forall x.
    Rep IFrameOnlyPlaylistType x -> IFrameOnlyPlaylistType)
-> Generic IFrameOnlyPlaylistType
forall x. Rep IFrameOnlyPlaylistType x -> IFrameOnlyPlaylistType
forall x. IFrameOnlyPlaylistType -> Rep IFrameOnlyPlaylistType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IFrameOnlyPlaylistType x -> IFrameOnlyPlaylistType
$cfrom :: forall x. IFrameOnlyPlaylistType -> Rep IFrameOnlyPlaylistType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> IFrameOnlyPlaylistType -> Int
IFrameOnlyPlaylistType -> Int
(Int -> IFrameOnlyPlaylistType -> Int)
-> (IFrameOnlyPlaylistType -> Int)
-> Hashable IFrameOnlyPlaylistType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: IFrameOnlyPlaylistType -> Int
$chash :: IFrameOnlyPlaylistType -> Int
hashWithSalt :: Int -> IFrameOnlyPlaylistType -> Int
$chashWithSalt :: Int -> IFrameOnlyPlaylistType -> Int
Prelude.Hashable,
      IFrameOnlyPlaylistType -> ()
(IFrameOnlyPlaylistType -> ()) -> NFData IFrameOnlyPlaylistType
forall a. (a -> ()) -> NFData a
rnf :: IFrameOnlyPlaylistType -> ()
$crnf :: IFrameOnlyPlaylistType -> ()
Prelude.NFData,
      Text -> Either String IFrameOnlyPlaylistType
(Text -> Either String IFrameOnlyPlaylistType)
-> FromText IFrameOnlyPlaylistType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IFrameOnlyPlaylistType
$cfromText :: Text -> Either String IFrameOnlyPlaylistType
Core.FromText,
      IFrameOnlyPlaylistType -> Text
(IFrameOnlyPlaylistType -> Text) -> ToText IFrameOnlyPlaylistType
forall a. (a -> Text) -> ToText a
toText :: IFrameOnlyPlaylistType -> Text
$ctoText :: IFrameOnlyPlaylistType -> Text
Core.ToText,
      IFrameOnlyPlaylistType -> ByteString
(IFrameOnlyPlaylistType -> ByteString)
-> ToByteString IFrameOnlyPlaylistType
forall a. (a -> ByteString) -> ToByteString a
toBS :: IFrameOnlyPlaylistType -> ByteString
$ctoBS :: IFrameOnlyPlaylistType -> ByteString
Core.ToByteString,
      IFrameOnlyPlaylistType -> ByteStringBuilder
(IFrameOnlyPlaylistType -> ByteStringBuilder)
-> ToLog IFrameOnlyPlaylistType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IFrameOnlyPlaylistType -> ByteStringBuilder
$cbuild :: IFrameOnlyPlaylistType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> IFrameOnlyPlaylistType -> [Header]
(HeaderName -> IFrameOnlyPlaylistType -> [Header])
-> ToHeader IFrameOnlyPlaylistType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IFrameOnlyPlaylistType -> [Header]
$ctoHeader :: HeaderName -> IFrameOnlyPlaylistType -> [Header]
Core.ToHeader,
      IFrameOnlyPlaylistType -> QueryString
(IFrameOnlyPlaylistType -> QueryString)
-> ToQuery IFrameOnlyPlaylistType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IFrameOnlyPlaylistType -> QueryString
$ctoQuery :: IFrameOnlyPlaylistType -> QueryString
Core.ToQuery,
      Value -> Parser [IFrameOnlyPlaylistType]
Value -> Parser IFrameOnlyPlaylistType
(Value -> Parser IFrameOnlyPlaylistType)
-> (Value -> Parser [IFrameOnlyPlaylistType])
-> FromJSON IFrameOnlyPlaylistType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [IFrameOnlyPlaylistType]
$cparseJSONList :: Value -> Parser [IFrameOnlyPlaylistType]
parseJSON :: Value -> Parser IFrameOnlyPlaylistType
$cparseJSON :: Value -> Parser IFrameOnlyPlaylistType
Core.FromJSON,
      FromJSONKeyFunction [IFrameOnlyPlaylistType]
FromJSONKeyFunction IFrameOnlyPlaylistType
FromJSONKeyFunction IFrameOnlyPlaylistType
-> FromJSONKeyFunction [IFrameOnlyPlaylistType]
-> FromJSONKey IFrameOnlyPlaylistType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IFrameOnlyPlaylistType]
$cfromJSONKeyList :: FromJSONKeyFunction [IFrameOnlyPlaylistType]
fromJSONKey :: FromJSONKeyFunction IFrameOnlyPlaylistType
$cfromJSONKey :: FromJSONKeyFunction IFrameOnlyPlaylistType
Core.FromJSONKey,
      [IFrameOnlyPlaylistType] -> Encoding
[IFrameOnlyPlaylistType] -> Value
IFrameOnlyPlaylistType -> Encoding
IFrameOnlyPlaylistType -> Value
(IFrameOnlyPlaylistType -> Value)
-> (IFrameOnlyPlaylistType -> Encoding)
-> ([IFrameOnlyPlaylistType] -> Value)
-> ([IFrameOnlyPlaylistType] -> Encoding)
-> ToJSON IFrameOnlyPlaylistType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [IFrameOnlyPlaylistType] -> Encoding
$ctoEncodingList :: [IFrameOnlyPlaylistType] -> Encoding
toJSONList :: [IFrameOnlyPlaylistType] -> Value
$ctoJSONList :: [IFrameOnlyPlaylistType] -> Value
toEncoding :: IFrameOnlyPlaylistType -> Encoding
$ctoEncoding :: IFrameOnlyPlaylistType -> Encoding
toJSON :: IFrameOnlyPlaylistType -> Value
$ctoJSON :: IFrameOnlyPlaylistType -> Value
Core.ToJSON,
      ToJSONKeyFunction [IFrameOnlyPlaylistType]
ToJSONKeyFunction IFrameOnlyPlaylistType
ToJSONKeyFunction IFrameOnlyPlaylistType
-> ToJSONKeyFunction [IFrameOnlyPlaylistType]
-> ToJSONKey IFrameOnlyPlaylistType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IFrameOnlyPlaylistType]
$ctoJSONKeyList :: ToJSONKeyFunction [IFrameOnlyPlaylistType]
toJSONKey :: ToJSONKeyFunction IFrameOnlyPlaylistType
$ctoJSONKey :: ToJSONKeyFunction IFrameOnlyPlaylistType
Core.ToJSONKey,
      [Node] -> Either String IFrameOnlyPlaylistType
([Node] -> Either String IFrameOnlyPlaylistType)
-> FromXML IFrameOnlyPlaylistType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IFrameOnlyPlaylistType
$cparseXML :: [Node] -> Either String IFrameOnlyPlaylistType
Core.FromXML,
      IFrameOnlyPlaylistType -> XML
(IFrameOnlyPlaylistType -> XML) -> ToXML IFrameOnlyPlaylistType
forall a. (a -> XML) -> ToXML a
toXML :: IFrameOnlyPlaylistType -> XML
$ctoXML :: IFrameOnlyPlaylistType -> XML
Core.ToXML
    )

pattern IFrameOnlyPlaylistType_DISABLED :: IFrameOnlyPlaylistType
pattern $bIFrameOnlyPlaylistType_DISABLED :: IFrameOnlyPlaylistType
$mIFrameOnlyPlaylistType_DISABLED :: forall r.
IFrameOnlyPlaylistType -> (Void# -> r) -> (Void# -> r) -> r
IFrameOnlyPlaylistType_DISABLED = IFrameOnlyPlaylistType' "DISABLED"

pattern IFrameOnlyPlaylistType_STANDARD :: IFrameOnlyPlaylistType
pattern $bIFrameOnlyPlaylistType_STANDARD :: IFrameOnlyPlaylistType
$mIFrameOnlyPlaylistType_STANDARD :: forall r.
IFrameOnlyPlaylistType -> (Void# -> r) -> (Void# -> r) -> r
IFrameOnlyPlaylistType_STANDARD = IFrameOnlyPlaylistType' "STANDARD"

{-# COMPLETE
  IFrameOnlyPlaylistType_DISABLED,
  IFrameOnlyPlaylistType_STANDARD,
  IFrameOnlyPlaylistType'
  #-}