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

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

-- | Hls Segmentation Mode
newtype HlsSegmentationMode = HlsSegmentationMode'
  { HlsSegmentationMode -> Text
fromHlsSegmentationMode ::
      Core.Text
  }
  deriving stock
    ( Int -> HlsSegmentationMode -> ShowS
[HlsSegmentationMode] -> ShowS
HlsSegmentationMode -> String
(Int -> HlsSegmentationMode -> ShowS)
-> (HlsSegmentationMode -> String)
-> ([HlsSegmentationMode] -> ShowS)
-> Show HlsSegmentationMode
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]
(Int -> ReadS HlsSegmentationMode)
-> ReadS [HlsSegmentationMode]
-> ReadPrec HlsSegmentationMode
-> ReadPrec [HlsSegmentationMode]
-> Read 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
(HlsSegmentationMode -> HlsSegmentationMode -> Bool)
-> (HlsSegmentationMode -> HlsSegmentationMode -> Bool)
-> Eq HlsSegmentationMode
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
Eq HlsSegmentationMode
-> (HlsSegmentationMode -> HlsSegmentationMode -> Ordering)
-> (HlsSegmentationMode -> HlsSegmentationMode -> Bool)
-> (HlsSegmentationMode -> HlsSegmentationMode -> Bool)
-> (HlsSegmentationMode -> HlsSegmentationMode -> Bool)
-> (HlsSegmentationMode -> HlsSegmentationMode -> Bool)
-> (HlsSegmentationMode
    -> HlsSegmentationMode -> HlsSegmentationMode)
-> (HlsSegmentationMode
    -> HlsSegmentationMode -> HlsSegmentationMode)
-> Ord 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
$cp1Ord :: Eq HlsSegmentationMode
Prelude.Ord,
      (forall x. HlsSegmentationMode -> Rep HlsSegmentationMode x)
-> (forall x. Rep HlsSegmentationMode x -> HlsSegmentationMode)
-> Generic HlsSegmentationMode
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
    ( Int -> HlsSegmentationMode -> Int
HlsSegmentationMode -> Int
(Int -> HlsSegmentationMode -> Int)
-> (HlsSegmentationMode -> Int) -> Hashable HlsSegmentationMode
forall 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 -> ()
(HlsSegmentationMode -> ()) -> NFData HlsSegmentationMode
forall a. (a -> ()) -> NFData a
rnf :: HlsSegmentationMode -> ()
$crnf :: HlsSegmentationMode -> ()
Prelude.NFData,
      Text -> Either String HlsSegmentationMode
(Text -> Either String HlsSegmentationMode)
-> FromText HlsSegmentationMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsSegmentationMode
$cfromText :: Text -> Either String HlsSegmentationMode
Core.FromText,
      HlsSegmentationMode -> Text
(HlsSegmentationMode -> Text) -> ToText HlsSegmentationMode
forall a. (a -> Text) -> ToText a
toText :: HlsSegmentationMode -> Text
$ctoText :: HlsSegmentationMode -> Text
Core.ToText,
      HlsSegmentationMode -> ByteString
(HlsSegmentationMode -> ByteString)
-> ToByteString HlsSegmentationMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsSegmentationMode -> ByteString
$ctoBS :: HlsSegmentationMode -> ByteString
Core.ToByteString,
      HlsSegmentationMode -> ByteStringBuilder
(HlsSegmentationMode -> ByteStringBuilder)
-> ToLog HlsSegmentationMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsSegmentationMode -> ByteStringBuilder
$cbuild :: HlsSegmentationMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> HlsSegmentationMode -> [Header]
(HeaderName -> HlsSegmentationMode -> [Header])
-> ToHeader HlsSegmentationMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsSegmentationMode -> [Header]
$ctoHeader :: HeaderName -> HlsSegmentationMode -> [Header]
Core.ToHeader,
      HlsSegmentationMode -> QueryString
(HlsSegmentationMode -> QueryString) -> ToQuery HlsSegmentationMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsSegmentationMode -> QueryString
$ctoQuery :: HlsSegmentationMode -> QueryString
Core.ToQuery,
      Value -> Parser [HlsSegmentationMode]
Value -> Parser HlsSegmentationMode
(Value -> Parser HlsSegmentationMode)
-> (Value -> Parser [HlsSegmentationMode])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [HlsSegmentationMode]
FromJSONKeyFunction HlsSegmentationMode
FromJSONKeyFunction HlsSegmentationMode
-> FromJSONKeyFunction [HlsSegmentationMode]
-> FromJSONKey HlsSegmentationMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsSegmentationMode]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsSegmentationMode]
fromJSONKey :: FromJSONKeyFunction HlsSegmentationMode
$cfromJSONKey :: FromJSONKeyFunction HlsSegmentationMode
Core.FromJSONKey,
      [HlsSegmentationMode] -> Encoding
[HlsSegmentationMode] -> Value
HlsSegmentationMode -> Encoding
HlsSegmentationMode -> Value
(HlsSegmentationMode -> Value)
-> (HlsSegmentationMode -> Encoding)
-> ([HlsSegmentationMode] -> Value)
-> ([HlsSegmentationMode] -> Encoding)
-> ToJSON HlsSegmentationMode
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
Core.ToJSON,
      ToJSONKeyFunction [HlsSegmentationMode]
ToJSONKeyFunction HlsSegmentationMode
ToJSONKeyFunction HlsSegmentationMode
-> ToJSONKeyFunction [HlsSegmentationMode]
-> ToJSONKey HlsSegmentationMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsSegmentationMode]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsSegmentationMode]
toJSONKey :: ToJSONKeyFunction HlsSegmentationMode
$ctoJSONKey :: ToJSONKeyFunction HlsSegmentationMode
Core.ToJSONKey,
      [Node] -> Either String HlsSegmentationMode
([Node] -> Either String HlsSegmentationMode)
-> FromXML HlsSegmentationMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsSegmentationMode
$cparseXML :: [Node] -> Either String HlsSegmentationMode
Core.FromXML,
      HlsSegmentationMode -> XML
(HlsSegmentationMode -> XML) -> ToXML HlsSegmentationMode
forall a. (a -> XML) -> ToXML a
toXML :: HlsSegmentationMode -> XML
$ctoXML :: HlsSegmentationMode -> XML
Core.ToXML
    )

pattern HlsSegmentationMode_USE_INPUT_SEGMENTATION :: HlsSegmentationMode
pattern $bHlsSegmentationMode_USE_INPUT_SEGMENTATION :: HlsSegmentationMode
$mHlsSegmentationMode_USE_INPUT_SEGMENTATION :: forall r. HlsSegmentationMode -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
HlsSegmentationMode_USE_SEGMENT_DURATION = HlsSegmentationMode' "USE_SEGMENT_DURATION"

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