{-# 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.MediaPackage.Types.Profile
-- 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.MediaPackage.Types.Profile
  ( Profile
      ( ..,
        Profile_DVB_DASH_2014,
        Profile_HBBTV_1_5,
        Profile_HYBRIDCAST,
        Profile_NONE
      ),
  )
where

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

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

pattern Profile_DVB_DASH_2014 :: Profile
pattern $bProfile_DVB_DASH_2014 :: Profile
$mProfile_DVB_DASH_2014 :: forall {r}. Profile -> ((# #) -> r) -> ((# #) -> r) -> r
Profile_DVB_DASH_2014 = Profile' "DVB_DASH_2014"

pattern Profile_HBBTV_1_5 :: Profile
pattern $bProfile_HBBTV_1_5 :: Profile
$mProfile_HBBTV_1_5 :: forall {r}. Profile -> ((# #) -> r) -> ((# #) -> r) -> r
Profile_HBBTV_1_5 = Profile' "HBBTV_1_5"

pattern Profile_HYBRIDCAST :: Profile
pattern $bProfile_HYBRIDCAST :: Profile
$mProfile_HYBRIDCAST :: forall {r}. Profile -> ((# #) -> r) -> ((# #) -> r) -> r
Profile_HYBRIDCAST = Profile' "HYBRIDCAST"

pattern Profile_NONE :: Profile
pattern $bProfile_NONE :: Profile
$mProfile_NONE :: forall {r}. Profile -> ((# #) -> r) -> ((# #) -> r) -> r
Profile_NONE = Profile' "NONE"

{-# COMPLETE
  Profile_DVB_DASH_2014,
  Profile_HBBTV_1_5,
  Profile_HYBRIDCAST,
  Profile_NONE,
  Profile'
  #-}