{-# 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.SourceControlProvider
-- 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.Glue.Types.SourceControlProvider
  ( SourceControlProvider
      ( ..,
        SourceControlProvider_AWS_CODE_COMMIT,
        SourceControlProvider_GITHUB
      ),
  )
where

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

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

pattern SourceControlProvider_AWS_CODE_COMMIT :: SourceControlProvider
pattern $bSourceControlProvider_AWS_CODE_COMMIT :: SourceControlProvider
$mSourceControlProvider_AWS_CODE_COMMIT :: forall {r}.
SourceControlProvider -> ((# #) -> r) -> ((# #) -> r) -> r
SourceControlProvider_AWS_CODE_COMMIT = SourceControlProvider' "AWS_CODE_COMMIT"

pattern SourceControlProvider_GITHUB :: SourceControlProvider
pattern $bSourceControlProvider_GITHUB :: SourceControlProvider
$mSourceControlProvider_GITHUB :: forall {r}.
SourceControlProvider -> ((# #) -> r) -> ((# #) -> r) -> r
SourceControlProvider_GITHUB = SourceControlProvider' "GITHUB"

{-# COMPLETE
  SourceControlProvider_AWS_CODE_COMMIT,
  SourceControlProvider_GITHUB,
  SourceControlProvider'
  #-}