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

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

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

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

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

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