{-# 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.ThingIndexingMode
-- 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.ThingIndexingMode
  ( ThingIndexingMode
      ( ..,
        ThingIndexingMode_OFF,
        ThingIndexingMode_REGISTRY,
        ThingIndexingMode_REGISTRY_AND_SHADOW
      ),
  )
where

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

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

pattern ThingIndexingMode_OFF :: ThingIndexingMode
pattern $bThingIndexingMode_OFF :: ThingIndexingMode
$mThingIndexingMode_OFF :: forall {r}. ThingIndexingMode -> ((# #) -> r) -> ((# #) -> r) -> r
ThingIndexingMode_OFF = ThingIndexingMode' "OFF"

pattern ThingIndexingMode_REGISTRY :: ThingIndexingMode
pattern $bThingIndexingMode_REGISTRY :: ThingIndexingMode
$mThingIndexingMode_REGISTRY :: forall {r}. ThingIndexingMode -> ((# #) -> r) -> ((# #) -> r) -> r
ThingIndexingMode_REGISTRY = ThingIndexingMode' "REGISTRY"

pattern ThingIndexingMode_REGISTRY_AND_SHADOW :: ThingIndexingMode
pattern $bThingIndexingMode_REGISTRY_AND_SHADOW :: ThingIndexingMode
$mThingIndexingMode_REGISTRY_AND_SHADOW :: forall {r}. ThingIndexingMode -> ((# #) -> r) -> ((# #) -> r) -> r
ThingIndexingMode_REGISTRY_AND_SHADOW = ThingIndexingMode' "REGISTRY_AND_SHADOW"

{-# COMPLETE
  ThingIndexingMode_OFF,
  ThingIndexingMode_REGISTRY,
  ThingIndexingMode_REGISTRY_AND_SHADOW,
  ThingIndexingMode'
  #-}