{-# 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.MediaPackageVOD.Types.ManifestLayout
-- 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.MediaPackageVOD.Types.ManifestLayout
  ( ManifestLayout
      ( ..,
        ManifestLayout_COMPACT,
        ManifestLayout_FULL
      ),
  )
where

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

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

pattern ManifestLayout_COMPACT :: ManifestLayout
pattern $bManifestLayout_COMPACT :: ManifestLayout
$mManifestLayout_COMPACT :: forall r. ManifestLayout -> (Void# -> r) -> (Void# -> r) -> r
ManifestLayout_COMPACT = ManifestLayout' "COMPACT"

pattern ManifestLayout_FULL :: ManifestLayout
pattern $bManifestLayout_FULL :: ManifestLayout
$mManifestLayout_FULL :: forall r. ManifestLayout -> (Void# -> r) -> (Void# -> r) -> r
ManifestLayout_FULL = ManifestLayout' "FULL"

{-# COMPLETE
  ManifestLayout_COMPACT,
  ManifestLayout_FULL,
  ManifestLayout'
  #-}