{-# 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.QuickSight.Types.FilterOperator
-- 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.QuickSight.Types.FilterOperator
  ( FilterOperator
      ( ..,
        FilterOperator_StringEquals
      ),
  )
where

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

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

pattern FilterOperator_StringEquals :: FilterOperator
pattern $bFilterOperator_StringEquals :: FilterOperator
$mFilterOperator_StringEquals :: forall r. FilterOperator -> (Void# -> r) -> (Void# -> r) -> r
FilterOperator_StringEquals = FilterOperator' "StringEquals"

{-# COMPLETE
  FilterOperator_StringEquals,
  FilterOperator'
  #-}