{-# 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.SageMaker.Types.BooleanOperator
-- 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.SageMaker.Types.BooleanOperator
  ( BooleanOperator
      ( ..,
        BooleanOperator_And,
        BooleanOperator_Or
      ),
  )
where

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

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

pattern BooleanOperator_And :: BooleanOperator
pattern $bBooleanOperator_And :: BooleanOperator
$mBooleanOperator_And :: forall r. BooleanOperator -> (Void# -> r) -> (Void# -> r) -> r
BooleanOperator_And = BooleanOperator' "And"

pattern BooleanOperator_Or :: BooleanOperator
pattern $bBooleanOperator_Or :: BooleanOperator
$mBooleanOperator_Or :: forall r. BooleanOperator -> (Void# -> r) -> (Void# -> r) -> r
BooleanOperator_Or = BooleanOperator' "Or"

{-# COMPLETE
  BooleanOperator_And,
  BooleanOperator_Or,
  BooleanOperator'
  #-}