{-# 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.AuditManager.Types.KeywordInputType
-- 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.AuditManager.Types.KeywordInputType
  ( KeywordInputType
      ( ..,
        KeywordInputType_SELECT_FROM_LIST
      ),
  )
where

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

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

pattern KeywordInputType_SELECT_FROM_LIST :: KeywordInputType
pattern $bKeywordInputType_SELECT_FROM_LIST :: KeywordInputType
$mKeywordInputType_SELECT_FROM_LIST :: forall r. KeywordInputType -> (Void# -> r) -> (Void# -> r) -> r
KeywordInputType_SELECT_FROM_LIST = KeywordInputType' "SELECT_FROM_LIST"

{-# COMPLETE
  KeywordInputType_SELECT_FROM_LIST,
  KeywordInputType'
  #-}