{-# 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.MediaTailor.Types.OriginManifestType
-- 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.MediaTailor.Types.OriginManifestType
  ( OriginManifestType
      ( ..,
        OriginManifestType_MULTI_PERIOD,
        OriginManifestType_SINGLE_PERIOD
      ),
  )
where

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

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

pattern OriginManifestType_MULTI_PERIOD :: OriginManifestType
pattern $bOriginManifestType_MULTI_PERIOD :: OriginManifestType
$mOriginManifestType_MULTI_PERIOD :: forall r. OriginManifestType -> (Void# -> r) -> (Void# -> r) -> r
OriginManifestType_MULTI_PERIOD = OriginManifestType' "MULTI_PERIOD"

pattern OriginManifestType_SINGLE_PERIOD :: OriginManifestType
pattern $bOriginManifestType_SINGLE_PERIOD :: OriginManifestType
$mOriginManifestType_SINGLE_PERIOD :: forall r. OriginManifestType -> (Void# -> r) -> (Void# -> r) -> r
OriginManifestType_SINGLE_PERIOD = OriginManifestType' "SINGLE_PERIOD"

{-# COMPLETE
  OriginManifestType_MULTI_PERIOD,
  OriginManifestType_SINGLE_PERIOD,
  OriginManifestType'
  #-}