{-# 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.DimensionType
-- 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.DimensionType
  ( DimensionType
      ( ..,
        DimensionType_TOPIC_FILTER
      ),
  )
where

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

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

pattern DimensionType_TOPIC_FILTER :: DimensionType
pattern $bDimensionType_TOPIC_FILTER :: DimensionType
$mDimensionType_TOPIC_FILTER :: forall r. DimensionType -> (Void# -> r) -> (Void# -> r) -> r
DimensionType_TOPIC_FILTER = DimensionType' "TOPIC_FILTER"

{-# COMPLETE
  DimensionType_TOPIC_FILTER,
  DimensionType'
  #-}