{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> MsSmoothManifestEncoding -> ShowS
[MsSmoothManifestEncoding] -> ShowS
MsSmoothManifestEncoding -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq MsSmoothManifestEncoding
Int -> MsSmoothManifestEncoding -> Int
MsSmoothManifestEncoding -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: MsSmoothManifestEncoding -> ()
$crnf :: MsSmoothManifestEncoding -> ()
Prelude.NFData,
      Text -> Either String MsSmoothManifestEncoding
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MsSmoothManifestEncoding
$cfromText :: Text -> Either String MsSmoothManifestEncoding
Data.FromText,
      MsSmoothManifestEncoding -> Text
forall a. (a -> Text) -> ToText a
toText :: MsSmoothManifestEncoding -> Text
$ctoText :: MsSmoothManifestEncoding -> Text
Data.ToText,
      MsSmoothManifestEncoding -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MsSmoothManifestEncoding -> ByteString
$ctoBS :: MsSmoothManifestEncoding -> ByteString
Data.ToByteString,
      MsSmoothManifestEncoding -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MsSmoothManifestEncoding -> ByteStringBuilder
$cbuild :: MsSmoothManifestEncoding -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MsSmoothManifestEncoding -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MsSmoothManifestEncoding -> [Header]
$ctoHeader :: HeaderName -> MsSmoothManifestEncoding -> [Header]
Data.ToHeader,
      MsSmoothManifestEncoding -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MsSmoothManifestEncoding -> QueryString
$ctoQuery :: MsSmoothManifestEncoding -> QueryString
Data.ToQuery,
      Value -> Parser [MsSmoothManifestEncoding]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [MsSmoothManifestEncoding]
FromJSONKeyFunction MsSmoothManifestEncoding
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MsSmoothManifestEncoding]
$cfromJSONKeyList :: FromJSONKeyFunction [MsSmoothManifestEncoding]
fromJSONKey :: FromJSONKeyFunction MsSmoothManifestEncoding
$cfromJSONKey :: FromJSONKeyFunction MsSmoothManifestEncoding
Data.FromJSONKey,
      [MsSmoothManifestEncoding] -> Encoding
[MsSmoothManifestEncoding] -> Value
MsSmoothManifestEncoding -> Encoding
MsSmoothManifestEncoding -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [MsSmoothManifestEncoding]
ToJSONKeyFunction MsSmoothManifestEncoding
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MsSmoothManifestEncoding]
$ctoJSONKeyList :: ToJSONKeyFunction [MsSmoothManifestEncoding]
toJSONKey :: ToJSONKeyFunction MsSmoothManifestEncoding
$ctoJSONKey :: ToJSONKeyFunction MsSmoothManifestEncoding
Data.ToJSONKey,
      [Node] -> Either String MsSmoothManifestEncoding
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MsSmoothManifestEncoding
$cparseXML :: [Node] -> Either String MsSmoothManifestEncoding
Data.FromXML,
      MsSmoothManifestEncoding -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MsSmoothManifestEncoding -> XML
$ctoXML :: MsSmoothManifestEncoding -> XML
Data.ToXML
    )

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

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

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