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

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

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

pattern HlsDirectoryStructure_SINGLE_DIRECTORY :: HlsDirectoryStructure
pattern $bHlsDirectoryStructure_SINGLE_DIRECTORY :: HlsDirectoryStructure
$mHlsDirectoryStructure_SINGLE_DIRECTORY :: forall r.
HlsDirectoryStructure -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
HlsDirectoryStructure_SUBDIRECTORY_PER_STREAM = HlsDirectoryStructure' "SUBDIRECTORY_PER_STREAM"

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