{-# 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.LexRuntime.Types.ContentType
-- 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.LexRuntime.Types.ContentType
  ( ContentType
      ( ..,
        ContentType_Application_vnd_amazonaws_card_generic
      ),
  )
where

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

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

pattern ContentType_Application_vnd_amazonaws_card_generic :: ContentType
pattern $bContentType_Application_vnd_amazonaws_card_generic :: ContentType
$mContentType_Application_vnd_amazonaws_card_generic :: forall r. ContentType -> (Void# -> r) -> (Void# -> r) -> r
ContentType_Application_vnd_amazonaws_card_generic = ContentType' "application/vnd.amazonaws.card.generic"

{-# COMPLETE
  ContentType_Application_vnd_amazonaws_card_generic,
  ContentType'
  #-}