{-# 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.RelatedItemType
-- 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.RelatedItemType
  ( RelatedItemType
      ( ..,
        RelatedItemType_Comment,
        RelatedItemType_Contact
      ),
  )
where

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

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

pattern RelatedItemType_Comment :: RelatedItemType
pattern $bRelatedItemType_Comment :: RelatedItemType
$mRelatedItemType_Comment :: forall {r}. RelatedItemType -> ((# #) -> r) -> ((# #) -> r) -> r
RelatedItemType_Comment = RelatedItemType' "Comment"

pattern RelatedItemType_Contact :: RelatedItemType
pattern $bRelatedItemType_Contact :: RelatedItemType
$mRelatedItemType_Contact :: forall {r}. RelatedItemType -> ((# #) -> r) -> ((# #) -> r) -> r
RelatedItemType_Contact = RelatedItemType' "Contact"

{-# COMPLETE
  RelatedItemType_Comment,
  RelatedItemType_Contact,
  RelatedItemType'
  #-}