{-# 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.ConnectCases.Types.CommentBodyTextType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ConnectCases.Types.CommentBodyTextType
  ( CommentBodyTextType
      ( ..,
        CommentBodyTextType_Text_Plain
      ),
  )
where

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

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

pattern CommentBodyTextType_Text_Plain :: CommentBodyTextType
pattern $bCommentBodyTextType_Text_Plain :: CommentBodyTextType
$mCommentBodyTextType_Text_Plain :: forall {r}.
CommentBodyTextType -> ((# #) -> r) -> ((# #) -> r) -> r
CommentBodyTextType_Text_Plain = CommentBodyTextType' "Text/Plain"

{-# COMPLETE
  CommentBodyTextType_Text_Plain,
  CommentBodyTextType'
  #-}