{-# 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-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.IoT.Types.DimensionValueOperator
  ( DimensionValueOperator
      ( ..,
        DimensionValueOperator_IN,
        DimensionValueOperator_NOT_IN
      ),
  )
where

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

newtype DimensionValueOperator = DimensionValueOperator'
  { DimensionValueOperator -> Text
fromDimensionValueOperator ::
      Core.Text
  }
  deriving stock
    ( Int -> DimensionValueOperator -> ShowS
[DimensionValueOperator] -> ShowS
DimensionValueOperator -> String
(Int -> DimensionValueOperator -> ShowS)
-> (DimensionValueOperator -> String)
-> ([DimensionValueOperator] -> ShowS)
-> Show DimensionValueOperator
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]
(Int -> ReadS DimensionValueOperator)
-> ReadS [DimensionValueOperator]
-> ReadPrec DimensionValueOperator
-> ReadPrec [DimensionValueOperator]
-> Read 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
(DimensionValueOperator -> DimensionValueOperator -> Bool)
-> (DimensionValueOperator -> DimensionValueOperator -> Bool)
-> Eq DimensionValueOperator
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
Eq DimensionValueOperator
-> (DimensionValueOperator -> DimensionValueOperator -> Ordering)
-> (DimensionValueOperator -> DimensionValueOperator -> Bool)
-> (DimensionValueOperator -> DimensionValueOperator -> Bool)
-> (DimensionValueOperator -> DimensionValueOperator -> Bool)
-> (DimensionValueOperator -> DimensionValueOperator -> Bool)
-> (DimensionValueOperator
    -> DimensionValueOperator -> DimensionValueOperator)
-> (DimensionValueOperator
    -> DimensionValueOperator -> DimensionValueOperator)
-> Ord 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
$cp1Ord :: Eq DimensionValueOperator
Prelude.Ord,
      (forall x. DimensionValueOperator -> Rep DimensionValueOperator x)
-> (forall x.
    Rep DimensionValueOperator x -> DimensionValueOperator)
-> Generic DimensionValueOperator
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
    ( Int -> DimensionValueOperator -> Int
DimensionValueOperator -> Int
(Int -> DimensionValueOperator -> Int)
-> (DimensionValueOperator -> Int)
-> Hashable DimensionValueOperator
forall 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 -> ()
(DimensionValueOperator -> ()) -> NFData DimensionValueOperator
forall a. (a -> ()) -> NFData a
rnf :: DimensionValueOperator -> ()
$crnf :: DimensionValueOperator -> ()
Prelude.NFData,
      Text -> Either String DimensionValueOperator
(Text -> Either String DimensionValueOperator)
-> FromText DimensionValueOperator
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DimensionValueOperator
$cfromText :: Text -> Either String DimensionValueOperator
Core.FromText,
      DimensionValueOperator -> Text
(DimensionValueOperator -> Text) -> ToText DimensionValueOperator
forall a. (a -> Text) -> ToText a
toText :: DimensionValueOperator -> Text
$ctoText :: DimensionValueOperator -> Text
Core.ToText,
      DimensionValueOperator -> ByteString
(DimensionValueOperator -> ByteString)
-> ToByteString DimensionValueOperator
forall a. (a -> ByteString) -> ToByteString a
toBS :: DimensionValueOperator -> ByteString
$ctoBS :: DimensionValueOperator -> ByteString
Core.ToByteString,
      DimensionValueOperator -> ByteStringBuilder
(DimensionValueOperator -> ByteStringBuilder)
-> ToLog DimensionValueOperator
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DimensionValueOperator -> ByteStringBuilder
$cbuild :: DimensionValueOperator -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DimensionValueOperator -> [Header]
(HeaderName -> DimensionValueOperator -> [Header])
-> ToHeader DimensionValueOperator
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DimensionValueOperator -> [Header]
$ctoHeader :: HeaderName -> DimensionValueOperator -> [Header]
Core.ToHeader,
      DimensionValueOperator -> QueryString
(DimensionValueOperator -> QueryString)
-> ToQuery DimensionValueOperator
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DimensionValueOperator -> QueryString
$ctoQuery :: DimensionValueOperator -> QueryString
Core.ToQuery,
      Value -> Parser [DimensionValueOperator]
Value -> Parser DimensionValueOperator
(Value -> Parser DimensionValueOperator)
-> (Value -> Parser [DimensionValueOperator])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DimensionValueOperator]
FromJSONKeyFunction DimensionValueOperator
FromJSONKeyFunction DimensionValueOperator
-> FromJSONKeyFunction [DimensionValueOperator]
-> FromJSONKey DimensionValueOperator
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DimensionValueOperator]
$cfromJSONKeyList :: FromJSONKeyFunction [DimensionValueOperator]
fromJSONKey :: FromJSONKeyFunction DimensionValueOperator
$cfromJSONKey :: FromJSONKeyFunction DimensionValueOperator
Core.FromJSONKey,
      [DimensionValueOperator] -> Encoding
[DimensionValueOperator] -> Value
DimensionValueOperator -> Encoding
DimensionValueOperator -> Value
(DimensionValueOperator -> Value)
-> (DimensionValueOperator -> Encoding)
-> ([DimensionValueOperator] -> Value)
-> ([DimensionValueOperator] -> Encoding)
-> ToJSON DimensionValueOperator
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
Core.ToJSON,
      ToJSONKeyFunction [DimensionValueOperator]
ToJSONKeyFunction DimensionValueOperator
ToJSONKeyFunction DimensionValueOperator
-> ToJSONKeyFunction [DimensionValueOperator]
-> ToJSONKey DimensionValueOperator
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DimensionValueOperator]
$ctoJSONKeyList :: ToJSONKeyFunction [DimensionValueOperator]
toJSONKey :: ToJSONKeyFunction DimensionValueOperator
$ctoJSONKey :: ToJSONKeyFunction DimensionValueOperator
Core.ToJSONKey,
      [Node] -> Either String DimensionValueOperator
([Node] -> Either String DimensionValueOperator)
-> FromXML DimensionValueOperator
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DimensionValueOperator
$cparseXML :: [Node] -> Either String DimensionValueOperator
Core.FromXML,
      DimensionValueOperator -> XML
(DimensionValueOperator -> XML) -> ToXML DimensionValueOperator
forall a. (a -> XML) -> ToXML a
toXML :: DimensionValueOperator -> XML
$ctoXML :: DimensionValueOperator -> XML
Core.ToXML
    )

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

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

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