{-# 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.MediaConvert.Types.HlsSegmentControl
-- 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.MediaConvert.Types.HlsSegmentControl
  ( HlsSegmentControl
      ( ..,
        HlsSegmentControl_SEGMENTED_FILES,
        HlsSegmentControl_SINGLE_FILE
      ),
  )
where

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

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

pattern HlsSegmentControl_SEGMENTED_FILES :: HlsSegmentControl
pattern $bHlsSegmentControl_SEGMENTED_FILES :: HlsSegmentControl
$mHlsSegmentControl_SEGMENTED_FILES :: forall {r}. HlsSegmentControl -> ((# #) -> r) -> ((# #) -> r) -> r
HlsSegmentControl_SEGMENTED_FILES = HlsSegmentControl' "SEGMENTED_FILES"

pattern HlsSegmentControl_SINGLE_FILE :: HlsSegmentControl
pattern $bHlsSegmentControl_SINGLE_FILE :: HlsSegmentControl
$mHlsSegmentControl_SINGLE_FILE :: forall {r}. HlsSegmentControl -> ((# #) -> r) -> ((# #) -> r) -> r
HlsSegmentControl_SINGLE_FILE = HlsSegmentControl' "SINGLE_FILE"

{-# COMPLETE
  HlsSegmentControl_SEGMENTED_FILES,
  HlsSegmentControl_SINGLE_FILE,
  HlsSegmentControl'
  #-}