{-# 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.Wisdom.Types.AssociationType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Wisdom.Types.AssociationType
  ( AssociationType
      ( ..,
        AssociationType_KNOWLEDGE_BASE
      ),
  )
where

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

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

pattern AssociationType_KNOWLEDGE_BASE :: AssociationType
pattern $bAssociationType_KNOWLEDGE_BASE :: AssociationType
$mAssociationType_KNOWLEDGE_BASE :: forall r. AssociationType -> (Void# -> r) -> (Void# -> r) -> r
AssociationType_KNOWLEDGE_BASE = AssociationType' "KNOWLEDGE_BASE"

{-# COMPLETE
  AssociationType_KNOWLEDGE_BASE,
  AssociationType'
  #-}