{-# 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.AssistantType
-- 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.AssistantType
  ( AssistantType
      ( ..,
        AssistantType_AGENT
      ),
  )
where

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

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

pattern AssistantType_AGENT :: AssistantType
pattern $bAssistantType_AGENT :: AssistantType
$mAssistantType_AGENT :: forall r. AssistantType -> (Void# -> r) -> (Void# -> r) -> r
AssistantType_AGENT = AssistantType' "AGENT"

{-# COMPLETE
  AssistantType_AGENT,
  AssistantType'
  #-}