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

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

newtype Profile = Profile' {Profile -> Text
fromProfile :: Core.Text}
  deriving stock
    ( Int -> Profile -> ShowS
[Profile] -> ShowS
Profile -> String
(Int -> Profile -> ShowS)
-> (Profile -> String) -> ([Profile] -> ShowS) -> Show Profile
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]
(Int -> ReadS Profile)
-> ReadS [Profile]
-> ReadPrec Profile
-> ReadPrec [Profile]
-> Read 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
(Profile -> Profile -> Bool)
-> (Profile -> Profile -> Bool) -> Eq Profile
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
Eq Profile
-> (Profile -> Profile -> Ordering)
-> (Profile -> Profile -> Bool)
-> (Profile -> Profile -> Bool)
-> (Profile -> Profile -> Bool)
-> (Profile -> Profile -> Bool)
-> (Profile -> Profile -> Profile)
-> (Profile -> Profile -> Profile)
-> Ord 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
$cp1Ord :: Eq Profile
Prelude.Ord,
      (forall x. Profile -> Rep Profile x)
-> (forall x. Rep Profile x -> Profile) -> Generic Profile
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
    ( Int -> Profile -> Int
Profile -> Int
(Int -> Profile -> Int) -> (Profile -> Int) -> Hashable Profile
forall 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 -> ()
(Profile -> ()) -> NFData Profile
forall a. (a -> ()) -> NFData a
rnf :: Profile -> ()
$crnf :: Profile -> ()
Prelude.NFData,
      Text -> Either String Profile
(Text -> Either String Profile) -> FromText Profile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Profile
$cfromText :: Text -> Either String Profile
Core.FromText,
      Profile -> Text
(Profile -> Text) -> ToText Profile
forall a. (a -> Text) -> ToText a
toText :: Profile -> Text
$ctoText :: Profile -> Text
Core.ToText,
      Profile -> ByteString
(Profile -> ByteString) -> ToByteString Profile
forall a. (a -> ByteString) -> ToByteString a
toBS :: Profile -> ByteString
$ctoBS :: Profile -> ByteString
Core.ToByteString,
      Profile -> ByteStringBuilder
(Profile -> ByteStringBuilder) -> ToLog Profile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Profile -> ByteStringBuilder
$cbuild :: Profile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Profile -> [Header]
(HeaderName -> Profile -> [Header]) -> ToHeader Profile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Profile -> [Header]
$ctoHeader :: HeaderName -> Profile -> [Header]
Core.ToHeader,
      Profile -> QueryString
(Profile -> QueryString) -> ToQuery Profile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Profile -> QueryString
$ctoQuery :: Profile -> QueryString
Core.ToQuery,
      Value -> Parser [Profile]
Value -> Parser Profile
(Value -> Parser Profile)
-> (Value -> Parser [Profile]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Profile]
FromJSONKeyFunction Profile
FromJSONKeyFunction Profile
-> FromJSONKeyFunction [Profile] -> FromJSONKey Profile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Profile]
$cfromJSONKeyList :: FromJSONKeyFunction [Profile]
fromJSONKey :: FromJSONKeyFunction Profile
$cfromJSONKey :: FromJSONKeyFunction Profile
Core.FromJSONKey,
      [Profile] -> Encoding
[Profile] -> Value
Profile -> Encoding
Profile -> Value
(Profile -> Value)
-> (Profile -> Encoding)
-> ([Profile] -> Value)
-> ([Profile] -> Encoding)
-> ToJSON Profile
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
Core.ToJSON,
      ToJSONKeyFunction [Profile]
ToJSONKeyFunction Profile
ToJSONKeyFunction Profile
-> ToJSONKeyFunction [Profile] -> ToJSONKey Profile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Profile]
$ctoJSONKeyList :: ToJSONKeyFunction [Profile]
toJSONKey :: ToJSONKeyFunction Profile
$ctoJSONKey :: ToJSONKeyFunction Profile
Core.ToJSONKey,
      [Node] -> Either String Profile
([Node] -> Either String Profile) -> FromXML Profile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Profile
$cparseXML :: [Node] -> Either String Profile
Core.FromXML,
      Profile -> XML
(Profile -> XML) -> ToXML Profile
forall a. (a -> XML) -> ToXML a
toXML :: Profile -> XML
$ctoXML :: Profile -> XML
Core.ToXML
    )

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

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

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