{-# 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.RelevanceType
-- 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.RelevanceType
  ( RelevanceType
      ( ..,
        RelevanceType_NOT_RELEVANT,
        RelevanceType_RELEVANT
      ),
  )
where

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

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

pattern RelevanceType_NOT_RELEVANT :: RelevanceType
pattern $bRelevanceType_NOT_RELEVANT :: RelevanceType
$mRelevanceType_NOT_RELEVANT :: forall {r}. RelevanceType -> ((# #) -> r) -> ((# #) -> r) -> r
RelevanceType_NOT_RELEVANT = RelevanceType' "NOT_RELEVANT"

pattern RelevanceType_RELEVANT :: RelevanceType
pattern $bRelevanceType_RELEVANT :: RelevanceType
$mRelevanceType_RELEVANT :: forall {r}. RelevanceType -> ((# #) -> r) -> ((# #) -> r) -> r
RelevanceType_RELEVANT = RelevanceType' "RELEVANT"

{-# COMPLETE
  RelevanceType_NOT_RELEVANT,
  RelevanceType_RELEVANT,
  RelevanceType'
  #-}