{-# 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.MsSmoothH265PackagingType
-- 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.MsSmoothH265PackagingType
  ( MsSmoothH265PackagingType
      ( ..,
        MsSmoothH265PackagingType_HEV1,
        MsSmoothH265PackagingType_HVC1
      ),
  )
where

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

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

pattern MsSmoothH265PackagingType_HEV1 :: MsSmoothH265PackagingType
pattern $bMsSmoothH265PackagingType_HEV1 :: MsSmoothH265PackagingType
$mMsSmoothH265PackagingType_HEV1 :: forall r.
MsSmoothH265PackagingType -> (Void# -> r) -> (Void# -> r) -> r
MsSmoothH265PackagingType_HEV1 = MsSmoothH265PackagingType' "HEV1"

pattern MsSmoothH265PackagingType_HVC1 :: MsSmoothH265PackagingType
pattern $bMsSmoothH265PackagingType_HVC1 :: MsSmoothH265PackagingType
$mMsSmoothH265PackagingType_HVC1 :: forall r.
MsSmoothH265PackagingType -> (Void# -> r) -> (Void# -> r) -> r
MsSmoothH265PackagingType_HVC1 = MsSmoothH265PackagingType' "HVC1"

{-# COMPLETE
  MsSmoothH265PackagingType_HEV1,
  MsSmoothH265PackagingType_HVC1,
  MsSmoothH265PackagingType'
  #-}