{-# 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.Schemas.Types.DiscovererState
-- 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.Schemas.Types.DiscovererState
  ( DiscovererState
      ( ..,
        DiscovererState_STARTED,
        DiscovererState_STOPPED
      ),
  )
where

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

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

pattern DiscovererState_STARTED :: DiscovererState
pattern $bDiscovererState_STARTED :: DiscovererState
$mDiscovererState_STARTED :: forall r. DiscovererState -> (Void# -> r) -> (Void# -> r) -> r
DiscovererState_STARTED = DiscovererState' "STARTED"

pattern DiscovererState_STOPPED :: DiscovererState
pattern $bDiscovererState_STOPPED :: DiscovererState
$mDiscovererState_STOPPED :: forall r. DiscovererState -> (Void# -> r) -> (Void# -> r) -> r
DiscovererState_STOPPED = DiscovererState' "STOPPED"

{-# COMPLETE
  DiscovererState_STARTED,
  DiscovererState_STOPPED,
  DiscovererState'
  #-}