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

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> IFrameOnlyPlaylistType -> ShowS
[IFrameOnlyPlaylistType] -> ShowS
IFrameOnlyPlaylistType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq IFrameOnlyPlaylistType
Int -> IFrameOnlyPlaylistType -> Int
IFrameOnlyPlaylistType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: IFrameOnlyPlaylistType -> ()
$crnf :: IFrameOnlyPlaylistType -> ()
Prelude.NFData,
      Text -> Either String IFrameOnlyPlaylistType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IFrameOnlyPlaylistType
$cfromText :: Text -> Either String IFrameOnlyPlaylistType
Data.FromText,
      IFrameOnlyPlaylistType -> Text
forall a. (a -> Text) -> ToText a
toText :: IFrameOnlyPlaylistType -> Text
$ctoText :: IFrameOnlyPlaylistType -> Text
Data.ToText,
      IFrameOnlyPlaylistType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: IFrameOnlyPlaylistType -> ByteString
$ctoBS :: IFrameOnlyPlaylistType -> ByteString
Data.ToByteString,
      IFrameOnlyPlaylistType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IFrameOnlyPlaylistType -> ByteStringBuilder
$cbuild :: IFrameOnlyPlaylistType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> IFrameOnlyPlaylistType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IFrameOnlyPlaylistType -> [Header]
$ctoHeader :: HeaderName -> IFrameOnlyPlaylistType -> [Header]
Data.ToHeader,
      IFrameOnlyPlaylistType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IFrameOnlyPlaylistType -> QueryString
$ctoQuery :: IFrameOnlyPlaylistType -> QueryString
Data.ToQuery,
      Value -> Parser [IFrameOnlyPlaylistType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [IFrameOnlyPlaylistType]
FromJSONKeyFunction IFrameOnlyPlaylistType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IFrameOnlyPlaylistType]
$cfromJSONKeyList :: FromJSONKeyFunction [IFrameOnlyPlaylistType]
fromJSONKey :: FromJSONKeyFunction IFrameOnlyPlaylistType
$cfromJSONKey :: FromJSONKeyFunction IFrameOnlyPlaylistType
Data.FromJSONKey,
      [IFrameOnlyPlaylistType] -> Encoding
[IFrameOnlyPlaylistType] -> Value
IFrameOnlyPlaylistType -> Encoding
IFrameOnlyPlaylistType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [IFrameOnlyPlaylistType]
ToJSONKeyFunction IFrameOnlyPlaylistType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IFrameOnlyPlaylistType]
$ctoJSONKeyList :: ToJSONKeyFunction [IFrameOnlyPlaylistType]
toJSONKey :: ToJSONKeyFunction IFrameOnlyPlaylistType
$ctoJSONKey :: ToJSONKeyFunction IFrameOnlyPlaylistType
Data.ToJSONKey,
      [Node] -> Either String IFrameOnlyPlaylistType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IFrameOnlyPlaylistType
$cparseXML :: [Node] -> Either String IFrameOnlyPlaylistType
Data.FromXML,
      IFrameOnlyPlaylistType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: IFrameOnlyPlaylistType -> XML
$ctoXML :: IFrameOnlyPlaylistType -> XML
Data.ToXML
    )

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

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

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