{-# 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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype =
{ ::
Data.Text
}
deriving stock
( Int -> AcceptHeader -> ShowS
[AcceptHeader] -> ShowS
AcceptHeader -> String
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]
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
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
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
Prelude.Ord,
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
( Eq AcceptHeader
Int -> AcceptHeader -> Int
AcceptHeader -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AcceptHeader -> ()
$crnf :: AcceptHeader -> ()
Prelude.NFData,
Text -> Either String AcceptHeader
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AcceptHeader
$cfromText :: Text -> Either String AcceptHeader
Data.FromText,
AcceptHeader -> Text
forall a. (a -> Text) -> ToText a
toText :: AcceptHeader -> Text
$ctoText :: AcceptHeader -> Text
Data.ToText,
AcceptHeader -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AcceptHeader -> ByteString
$ctoBS :: AcceptHeader -> ByteString
Data.ToByteString,
AcceptHeader -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AcceptHeader -> ByteStringBuilder
$cbuild :: AcceptHeader -> ByteStringBuilder
Data.ToLog,
HeaderName -> AcceptHeader -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AcceptHeader -> [Header]
$ctoHeader :: HeaderName -> AcceptHeader -> [Header]
Data.ToHeader,
AcceptHeader -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AcceptHeader -> QueryString
$ctoQuery :: AcceptHeader -> QueryString
Data.ToQuery,
Value -> Parser [AcceptHeader]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [AcceptHeader]
FromJSONKeyFunction AcceptHeader
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AcceptHeader]
$cfromJSONKeyList :: FromJSONKeyFunction [AcceptHeader]
fromJSONKey :: FromJSONKeyFunction AcceptHeader
$cfromJSONKey :: FromJSONKeyFunction AcceptHeader
Data.FromJSONKey,
[AcceptHeader] -> Encoding
[AcceptHeader] -> Value
AcceptHeader -> Encoding
AcceptHeader -> Value
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
Data.ToJSON,
ToJSONKeyFunction [AcceptHeader]
ToJSONKeyFunction AcceptHeader
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AcceptHeader]
$ctoJSONKeyList :: ToJSONKeyFunction [AcceptHeader]
toJSONKey :: ToJSONKeyFunction AcceptHeader
$ctoJSONKey :: ToJSONKeyFunction AcceptHeader
Data.ToJSONKey,
[Node] -> Either String AcceptHeader
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AcceptHeader
$cparseXML :: [Node] -> Either String AcceptHeader
Data.FromXML,
AcceptHeader -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AcceptHeader -> XML
$ctoXML :: AcceptHeader -> XML
Data.ToXML
)
pattern AcceptHeader_Image_jpeg :: AcceptHeader
pattern = AcceptHeader' "image/jpeg"
{-# COMPLETE
AcceptHeader_Image_jpeg,
AcceptHeader'
#-}