{-# 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.Glue.Types.Logical
-- 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.Glue.Types.Logical
  ( Logical
      ( ..,
        Logical_AND,
        Logical_ANY
      ),
  )
where

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

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

pattern Logical_AND :: Logical
pattern $bLogical_AND :: Logical
$mLogical_AND :: forall r. Logical -> (Void# -> r) -> (Void# -> r) -> r
Logical_AND = Logical' "AND"

pattern Logical_ANY :: Logical
pattern $bLogical_ANY :: Logical
$mLogical_ANY :: forall r. Logical -> (Void# -> r) -> (Void# -> r) -> r
Logical_ANY = Logical' "ANY"

{-# COMPLETE
  Logical_AND,
  Logical_ANY,
  Logical'
  #-}