{-# 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.MsSmoothManifestEncoding
-- 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.MediaConvert.Types.MsSmoothManifestEncoding
  ( MsSmoothManifestEncoding
      ( ..,
        MsSmoothManifestEncoding_UTF16,
        MsSmoothManifestEncoding_UTF8
      ),
  )
where

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

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

pattern MsSmoothManifestEncoding_UTF16 :: MsSmoothManifestEncoding
pattern $bMsSmoothManifestEncoding_UTF16 :: MsSmoothManifestEncoding
$mMsSmoothManifestEncoding_UTF16 :: forall r.
MsSmoothManifestEncoding -> (Void# -> r) -> (Void# -> r) -> r
MsSmoothManifestEncoding_UTF16 = MsSmoothManifestEncoding' "UTF16"

pattern MsSmoothManifestEncoding_UTF8 :: MsSmoothManifestEncoding
pattern $bMsSmoothManifestEncoding_UTF8 :: MsSmoothManifestEncoding
$mMsSmoothManifestEncoding_UTF8 :: forall r.
MsSmoothManifestEncoding -> (Void# -> r) -> (Void# -> r) -> r
MsSmoothManifestEncoding_UTF8 = MsSmoothManifestEncoding' "UTF8"

{-# COMPLETE
  MsSmoothManifestEncoding_UTF16,
  MsSmoothManifestEncoding_UTF8,
  MsSmoothManifestEncoding'
  #-}