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