{-# 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.HlsSegmentationMode
-- 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.HlsSegmentationMode
  ( HlsSegmentationMode
      ( ..,
        HlsSegmentationMode_USE_INPUT_SEGMENTATION,
        HlsSegmentationMode_USE_SEGMENT_DURATION
      ),
  )
where

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

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

pattern HlsSegmentationMode_USE_INPUT_SEGMENTATION :: HlsSegmentationMode
pattern $bHlsSegmentationMode_USE_INPUT_SEGMENTATION :: HlsSegmentationMode
$mHlsSegmentationMode_USE_INPUT_SEGMENTATION :: forall {r}.
HlsSegmentationMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsSegmentationMode_USE_INPUT_SEGMENTATION = HlsSegmentationMode' "USE_INPUT_SEGMENTATION"

pattern HlsSegmentationMode_USE_SEGMENT_DURATION :: HlsSegmentationMode
pattern $bHlsSegmentationMode_USE_SEGMENT_DURATION :: HlsSegmentationMode
$mHlsSegmentationMode_USE_SEGMENT_DURATION :: forall {r}.
HlsSegmentationMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsSegmentationMode_USE_SEGMENT_DURATION = HlsSegmentationMode' "USE_SEGMENT_DURATION"

{-# COMPLETE
  HlsSegmentationMode_USE_INPUT_SEGMENTATION,
  HlsSegmentationMode_USE_SEGMENT_DURATION,
  HlsSegmentationMode'
  #-}