{-# 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.IoT.Types.DimensionValueOperator
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoT.Types.DimensionValueOperator
  ( DimensionValueOperator
      ( ..,
        DimensionValueOperator_IN,
        DimensionValueOperator_NOT_IN
      ),
  )
where

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

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

pattern DimensionValueOperator_IN :: DimensionValueOperator
pattern $bDimensionValueOperator_IN :: DimensionValueOperator
$mDimensionValueOperator_IN :: forall {r}.
DimensionValueOperator -> ((# #) -> r) -> ((# #) -> r) -> r
DimensionValueOperator_IN = DimensionValueOperator' "IN"

pattern DimensionValueOperator_NOT_IN :: DimensionValueOperator
pattern $bDimensionValueOperator_NOT_IN :: DimensionValueOperator
$mDimensionValueOperator_NOT_IN :: forall {r}.
DimensionValueOperator -> ((# #) -> r) -> ((# #) -> r) -> r
DimensionValueOperator_NOT_IN = DimensionValueOperator' "NOT_IN"

{-# COMPLETE
  DimensionValueOperator_IN,
  DimensionValueOperator_NOT_IN,
  DimensionValueOperator'
  #-}