{-# 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.Glue.Types.CrawlerLineageSettings
-- 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.Glue.Types.CrawlerLineageSettings
  ( CrawlerLineageSettings
      ( ..,
        CrawlerLineageSettings_DISABLE,
        CrawlerLineageSettings_ENABLE
      ),
  )
where

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

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

pattern CrawlerLineageSettings_DISABLE :: CrawlerLineageSettings
pattern $bCrawlerLineageSettings_DISABLE :: CrawlerLineageSettings
$mCrawlerLineageSettings_DISABLE :: forall r.
CrawlerLineageSettings -> (Void# -> r) -> (Void# -> r) -> r
CrawlerLineageSettings_DISABLE = CrawlerLineageSettings' "DISABLE"

pattern CrawlerLineageSettings_ENABLE :: CrawlerLineageSettings
pattern $bCrawlerLineageSettings_ENABLE :: CrawlerLineageSettings
$mCrawlerLineageSettings_ENABLE :: forall r.
CrawlerLineageSettings -> (Void# -> r) -> (Void# -> r) -> r
CrawlerLineageSettings_ENABLE = CrawlerLineageSettings' "ENABLE"

{-# COMPLETE
  CrawlerLineageSettings_DISABLE,
  CrawlerLineageSettings_ENABLE,
  CrawlerLineageSettings'
  #-}