{-# 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.Comprehend.Types.RelationshipType
-- 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.Comprehend.Types.RelationshipType
  ( RelationshipType
      ( ..,
        RelationshipType_CHILD
      ),
  )
where

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

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

pattern RelationshipType_CHILD :: RelationshipType
pattern $bRelationshipType_CHILD :: RelationshipType
$mRelationshipType_CHILD :: forall {r}. RelationshipType -> ((# #) -> r) -> ((# #) -> r) -> r
RelationshipType_CHILD = RelationshipType' "CHILD"

{-# COMPLETE
  RelationshipType_CHILD,
  RelationshipType'
  #-}