{-# 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.HlsRedundantManifest
-- 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.HlsRedundantManifest
  ( HlsRedundantManifest
      ( ..,
        HlsRedundantManifest_DISABLED,
        HlsRedundantManifest_ENABLED
      ),
  )
where

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

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

pattern HlsRedundantManifest_DISABLED :: HlsRedundantManifest
pattern $bHlsRedundantManifest_DISABLED :: HlsRedundantManifest
$mHlsRedundantManifest_DISABLED :: forall r. HlsRedundantManifest -> (Void# -> r) -> (Void# -> r) -> r
HlsRedundantManifest_DISABLED = HlsRedundantManifest' "DISABLED"

pattern HlsRedundantManifest_ENABLED :: HlsRedundantManifest
pattern $bHlsRedundantManifest_ENABLED :: HlsRedundantManifest
$mHlsRedundantManifest_ENABLED :: forall r. HlsRedundantManifest -> (Void# -> r) -> (Void# -> r) -> r
HlsRedundantManifest_ENABLED = HlsRedundantManifest' "ENABLED"

{-# COMPLETE
  HlsRedundantManifest_DISABLED,
  HlsRedundantManifest_ENABLED,
  HlsRedundantManifest'
  #-}