{-# 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.HlsOutputSelection
-- 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.MediaConvert.Types.HlsOutputSelection
  ( HlsOutputSelection
      ( ..,
        HlsOutputSelection_MANIFESTS_AND_SEGMENTS,
        HlsOutputSelection_SEGMENTS_ONLY
      ),
  )
where

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

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

pattern HlsOutputSelection_MANIFESTS_AND_SEGMENTS :: HlsOutputSelection
pattern $bHlsOutputSelection_MANIFESTS_AND_SEGMENTS :: HlsOutputSelection
$mHlsOutputSelection_MANIFESTS_AND_SEGMENTS :: forall r. HlsOutputSelection -> (Void# -> r) -> (Void# -> r) -> r
HlsOutputSelection_MANIFESTS_AND_SEGMENTS = HlsOutputSelection' "MANIFESTS_AND_SEGMENTS"

pattern HlsOutputSelection_SEGMENTS_ONLY :: HlsOutputSelection
pattern $bHlsOutputSelection_SEGMENTS_ONLY :: HlsOutputSelection
$mHlsOutputSelection_SEGMENTS_ONLY :: forall r. HlsOutputSelection -> (Void# -> r) -> (Void# -> r) -> r
HlsOutputSelection_SEGMENTS_ONLY = HlsOutputSelection' "SEGMENTS_ONLY"

{-# COMPLETE
  HlsOutputSelection_MANIFESTS_AND_SEGMENTS,
  HlsOutputSelection_SEGMENTS_ONLY,
  HlsOutputSelection'
  #-}