{-# 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.HlsDirectoryStructure
-- 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.HlsDirectoryStructure
  ( HlsDirectoryStructure
      ( ..,
        HlsDirectoryStructure_SINGLE_DIRECTORY,
        HlsDirectoryStructure_SUBDIRECTORY_PER_STREAM
      ),
  )
where

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

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

pattern HlsDirectoryStructure_SINGLE_DIRECTORY :: HlsDirectoryStructure
pattern $bHlsDirectoryStructure_SINGLE_DIRECTORY :: HlsDirectoryStructure
$mHlsDirectoryStructure_SINGLE_DIRECTORY :: forall {r}.
HlsDirectoryStructure -> ((# #) -> r) -> ((# #) -> r) -> r
HlsDirectoryStructure_SINGLE_DIRECTORY = HlsDirectoryStructure' "SINGLE_DIRECTORY"

pattern HlsDirectoryStructure_SUBDIRECTORY_PER_STREAM :: HlsDirectoryStructure
pattern $bHlsDirectoryStructure_SUBDIRECTORY_PER_STREAM :: HlsDirectoryStructure
$mHlsDirectoryStructure_SUBDIRECTORY_PER_STREAM :: forall {r}.
HlsDirectoryStructure -> ((# #) -> r) -> ((# #) -> r) -> r
HlsDirectoryStructure_SUBDIRECTORY_PER_STREAM = HlsDirectoryStructure' "SUBDIRECTORY_PER_STREAM"

{-# COMPLETE
  HlsDirectoryStructure_SINGLE_DIRECTORY,
  HlsDirectoryStructure_SUBDIRECTORY_PER_STREAM,
  HlsDirectoryStructure'
  #-}