{-# 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.Kendra.Types.IssueSubEntity
-- 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.Kendra.Types.IssueSubEntity
  ( IssueSubEntity
      ( ..,
        IssueSubEntity_ATTACHMENTS,
        IssueSubEntity_COMMENTS,
        IssueSubEntity_WORKLOGS
      ),
  )
where

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

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

pattern IssueSubEntity_ATTACHMENTS :: IssueSubEntity
pattern $bIssueSubEntity_ATTACHMENTS :: IssueSubEntity
$mIssueSubEntity_ATTACHMENTS :: forall {r}. IssueSubEntity -> ((# #) -> r) -> ((# #) -> r) -> r
IssueSubEntity_ATTACHMENTS = IssueSubEntity' "ATTACHMENTS"

pattern IssueSubEntity_COMMENTS :: IssueSubEntity
pattern $bIssueSubEntity_COMMENTS :: IssueSubEntity
$mIssueSubEntity_COMMENTS :: forall {r}. IssueSubEntity -> ((# #) -> r) -> ((# #) -> r) -> r
IssueSubEntity_COMMENTS = IssueSubEntity' "COMMENTS"

pattern IssueSubEntity_WORKLOGS :: IssueSubEntity
pattern $bIssueSubEntity_WORKLOGS :: IssueSubEntity
$mIssueSubEntity_WORKLOGS :: forall {r}. IssueSubEntity -> ((# #) -> r) -> ((# #) -> r) -> r
IssueSubEntity_WORKLOGS = IssueSubEntity' "WORKLOGS"

{-# COMPLETE
  IssueSubEntity_ATTACHMENTS,
  IssueSubEntity_COMMENTS,
  IssueSubEntity_WORKLOGS,
  IssueSubEntity'
  #-}