{-# 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.ThingConnectivityIndexingMode
-- 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.ThingConnectivityIndexingMode
  ( ThingConnectivityIndexingMode
      ( ..,
        ThingConnectivityIndexingMode_OFF,
        ThingConnectivityIndexingMode_STATUS
      ),
  )
where

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

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

pattern ThingConnectivityIndexingMode_OFF :: ThingConnectivityIndexingMode
pattern $bThingConnectivityIndexingMode_OFF :: ThingConnectivityIndexingMode
$mThingConnectivityIndexingMode_OFF :: forall r.
ThingConnectivityIndexingMode -> (Void# -> r) -> (Void# -> r) -> r
ThingConnectivityIndexingMode_OFF = ThingConnectivityIndexingMode' "OFF"

pattern ThingConnectivityIndexingMode_STATUS :: ThingConnectivityIndexingMode
pattern $bThingConnectivityIndexingMode_STATUS :: ThingConnectivityIndexingMode
$mThingConnectivityIndexingMode_STATUS :: forall r.
ThingConnectivityIndexingMode -> (Void# -> r) -> (Void# -> r) -> r
ThingConnectivityIndexingMode_STATUS = ThingConnectivityIndexingMode' "STATUS"

{-# COMPLETE
  ThingConnectivityIndexingMode_OFF,
  ThingConnectivityIndexingMode_STATUS,
  ThingConnectivityIndexingMode'
  #-}