{-# 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.ThingGroupIndexingMode
-- 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.ThingGroupIndexingMode
  ( ThingGroupIndexingMode
      ( ..,
        ThingGroupIndexingMode_OFF,
        ThingGroupIndexingMode_ON
      ),
  )
where

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

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

pattern ThingGroupIndexingMode_OFF :: ThingGroupIndexingMode
pattern $bThingGroupIndexingMode_OFF :: ThingGroupIndexingMode
$mThingGroupIndexingMode_OFF :: forall r.
ThingGroupIndexingMode -> (Void# -> r) -> (Void# -> r) -> r
ThingGroupIndexingMode_OFF = ThingGroupIndexingMode' "OFF"

pattern ThingGroupIndexingMode_ON :: ThingGroupIndexingMode
pattern $bThingGroupIndexingMode_ON :: ThingGroupIndexingMode
$mThingGroupIndexingMode_ON :: forall r.
ThingGroupIndexingMode -> (Void# -> r) -> (Void# -> r) -> r
ThingGroupIndexingMode_ON = ThingGroupIndexingMode' "ON"

{-# COMPLETE
  ThingGroupIndexingMode_OFF,
  ThingGroupIndexingMode_ON,
  ThingGroupIndexingMode'
  #-}