{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.AcceptHeader
( AcceptHeader
( ..,
AcceptHeader_Image_jpeg
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype =
{ ::
Core.Text
}
deriving stock
( Int -> AcceptHeader -> ShowS
[AcceptHeader] -> ShowS
AcceptHeader -> String
(Int -> AcceptHeader -> ShowS)
-> (AcceptHeader -> String)
-> ([AcceptHeader] -> ShowS)
-> Show AcceptHeader
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptHeader] -> ShowS
$cshowList :: [AcceptHeader] -> ShowS
show :: AcceptHeader -> String
$cshow :: AcceptHeader -> String
showsPrec :: Int -> AcceptHeader -> ShowS
$cshowsPrec :: Int -> AcceptHeader -> ShowS
Prelude.Show,
ReadPrec [AcceptHeader]
ReadPrec AcceptHeader
Int -> ReadS AcceptHeader
ReadS [AcceptHeader]
(Int -> ReadS AcceptHeader)
-> ReadS [AcceptHeader]
-> ReadPrec AcceptHeader
-> ReadPrec [AcceptHeader]
-> Read AcceptHeader
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptHeader]
$creadListPrec :: ReadPrec [AcceptHeader]
readPrec :: ReadPrec AcceptHeader
$creadPrec :: ReadPrec AcceptHeader
readList :: ReadS [AcceptHeader]
$creadList :: ReadS [AcceptHeader]
readsPrec :: Int -> ReadS AcceptHeader
$creadsPrec :: Int -> ReadS AcceptHeader
Prelude.Read,
AcceptHeader -> AcceptHeader -> Bool
(AcceptHeader -> AcceptHeader -> Bool)
-> (AcceptHeader -> AcceptHeader -> Bool) -> Eq AcceptHeader
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptHeader -> AcceptHeader -> Bool
$c/= :: AcceptHeader -> AcceptHeader -> Bool
== :: AcceptHeader -> AcceptHeader -> Bool
$c== :: AcceptHeader -> AcceptHeader -> Bool
Prelude.Eq,
Eq AcceptHeader
Eq AcceptHeader
-> (AcceptHeader -> AcceptHeader -> Ordering)
-> (AcceptHeader -> AcceptHeader -> Bool)
-> (AcceptHeader -> AcceptHeader -> Bool)
-> (AcceptHeader -> AcceptHeader -> Bool)
-> (AcceptHeader -> AcceptHeader -> Bool)
-> (AcceptHeader -> AcceptHeader -> AcceptHeader)
-> (AcceptHeader -> AcceptHeader -> AcceptHeader)
-> Ord AcceptHeader
AcceptHeader -> AcceptHeader -> Bool
AcceptHeader -> AcceptHeader -> Ordering
AcceptHeader -> AcceptHeader -> AcceptHeader
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 :: AcceptHeader -> AcceptHeader -> AcceptHeader
$cmin :: AcceptHeader -> AcceptHeader -> AcceptHeader
max :: AcceptHeader -> AcceptHeader -> AcceptHeader
$cmax :: AcceptHeader -> AcceptHeader -> AcceptHeader
>= :: AcceptHeader -> AcceptHeader -> Bool
$c>= :: AcceptHeader -> AcceptHeader -> Bool
> :: AcceptHeader -> AcceptHeader -> Bool
$c> :: AcceptHeader -> AcceptHeader -> Bool
<= :: AcceptHeader -> AcceptHeader -> Bool
$c<= :: AcceptHeader -> AcceptHeader -> Bool
< :: AcceptHeader -> AcceptHeader -> Bool
$c< :: AcceptHeader -> AcceptHeader -> Bool
compare :: AcceptHeader -> AcceptHeader -> Ordering
$ccompare :: AcceptHeader -> AcceptHeader -> Ordering
$cp1Ord :: Eq AcceptHeader
Prelude.Ord,
(forall x. AcceptHeader -> Rep AcceptHeader x)
-> (forall x. Rep AcceptHeader x -> AcceptHeader)
-> Generic AcceptHeader
forall x. Rep AcceptHeader x -> AcceptHeader
forall x. AcceptHeader -> Rep AcceptHeader x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AcceptHeader x -> AcceptHeader
$cfrom :: forall x. AcceptHeader -> Rep AcceptHeader x
Prelude.Generic
)
deriving newtype
( Int -> AcceptHeader -> Int
AcceptHeader -> Int
(Int -> AcceptHeader -> Int)
-> (AcceptHeader -> Int) -> Hashable AcceptHeader
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AcceptHeader -> Int
$chash :: AcceptHeader -> Int
hashWithSalt :: Int -> AcceptHeader -> Int
$chashWithSalt :: Int -> AcceptHeader -> Int
Prelude.Hashable,
AcceptHeader -> ()
(AcceptHeader -> ()) -> NFData AcceptHeader
forall a. (a -> ()) -> NFData a
rnf :: AcceptHeader -> ()
$crnf :: AcceptHeader -> ()
Prelude.NFData,
Text -> Either String AcceptHeader
(Text -> Either String AcceptHeader) -> FromText AcceptHeader
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AcceptHeader
$cfromText :: Text -> Either String AcceptHeader
Core.FromText,
AcceptHeader -> Text
(AcceptHeader -> Text) -> ToText AcceptHeader
forall a. (a -> Text) -> ToText a
toText :: AcceptHeader -> Text
$ctoText :: AcceptHeader -> Text
Core.ToText,
AcceptHeader -> ByteString
(AcceptHeader -> ByteString) -> ToByteString AcceptHeader
forall a. (a -> ByteString) -> ToByteString a
toBS :: AcceptHeader -> ByteString
$ctoBS :: AcceptHeader -> ByteString
Core.ToByteString,
AcceptHeader -> ByteStringBuilder
(AcceptHeader -> ByteStringBuilder) -> ToLog AcceptHeader
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AcceptHeader -> ByteStringBuilder
$cbuild :: AcceptHeader -> ByteStringBuilder
Core.ToLog,
HeaderName -> AcceptHeader -> [Header]
(HeaderName -> AcceptHeader -> [Header]) -> ToHeader AcceptHeader
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AcceptHeader -> [Header]
$ctoHeader :: HeaderName -> AcceptHeader -> [Header]
Core.ToHeader,
AcceptHeader -> QueryString
(AcceptHeader -> QueryString) -> ToQuery AcceptHeader
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AcceptHeader -> QueryString
$ctoQuery :: AcceptHeader -> QueryString
Core.ToQuery,
Value -> Parser [AcceptHeader]
Value -> Parser AcceptHeader
(Value -> Parser AcceptHeader)
-> (Value -> Parser [AcceptHeader]) -> FromJSON AcceptHeader
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AcceptHeader]
$cparseJSONList :: Value -> Parser [AcceptHeader]
parseJSON :: Value -> Parser AcceptHeader
$cparseJSON :: Value -> Parser AcceptHeader
Core.FromJSON,
FromJSONKeyFunction [AcceptHeader]
FromJSONKeyFunction AcceptHeader
FromJSONKeyFunction AcceptHeader
-> FromJSONKeyFunction [AcceptHeader] -> FromJSONKey AcceptHeader
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AcceptHeader]
$cfromJSONKeyList :: FromJSONKeyFunction [AcceptHeader]
fromJSONKey :: FromJSONKeyFunction AcceptHeader
$cfromJSONKey :: FromJSONKeyFunction AcceptHeader
Core.FromJSONKey,
[AcceptHeader] -> Encoding
[AcceptHeader] -> Value
AcceptHeader -> Encoding
AcceptHeader -> Value
(AcceptHeader -> Value)
-> (AcceptHeader -> Encoding)
-> ([AcceptHeader] -> Value)
-> ([AcceptHeader] -> Encoding)
-> ToJSON AcceptHeader
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AcceptHeader] -> Encoding
$ctoEncodingList :: [AcceptHeader] -> Encoding
toJSONList :: [AcceptHeader] -> Value
$ctoJSONList :: [AcceptHeader] -> Value
toEncoding :: AcceptHeader -> Encoding
$ctoEncoding :: AcceptHeader -> Encoding
toJSON :: AcceptHeader -> Value
$ctoJSON :: AcceptHeader -> Value
Core.ToJSON,
ToJSONKeyFunction [AcceptHeader]
ToJSONKeyFunction AcceptHeader
ToJSONKeyFunction AcceptHeader
-> ToJSONKeyFunction [AcceptHeader] -> ToJSONKey AcceptHeader
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AcceptHeader]
$ctoJSONKeyList :: ToJSONKeyFunction [AcceptHeader]
toJSONKey :: ToJSONKeyFunction AcceptHeader
$ctoJSONKey :: ToJSONKeyFunction AcceptHeader
Core.ToJSONKey,
[Node] -> Either String AcceptHeader
([Node] -> Either String AcceptHeader) -> FromXML AcceptHeader
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AcceptHeader
$cparseXML :: [Node] -> Either String AcceptHeader
Core.FromXML,
AcceptHeader -> XML
(AcceptHeader -> XML) -> ToXML AcceptHeader
forall a. (a -> XML) -> ToXML a
toXML :: AcceptHeader -> XML
$ctoXML :: AcceptHeader -> XML
Core.ToXML
)
pattern AcceptHeader_Image_jpeg :: AcceptHeader
pattern = AcceptHeader' "image/jpeg"
{-# COMPLETE
AcceptHeader_Image_jpeg,
AcceptHeader'
#-}