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

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

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

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

pattern ThingIndexingMode_REGISTRY :: ThingIndexingMode
pattern $bThingIndexingMode_REGISTRY :: ThingIndexingMode
$mThingIndexingMode_REGISTRY :: forall r. ThingIndexingMode -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ThingIndexingMode_REGISTRY_AND_SHADOW = ThingIndexingMode' "REGISTRY_AND_SHADOW"

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