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