{-# 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.CodeBuild.Types.SourceType
-- 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.CodeBuild.Types.SourceType
  ( SourceType
      ( ..,
        SourceType_BITBUCKET,
        SourceType_CODECOMMIT,
        SourceType_CODEPIPELINE,
        SourceType_GITHUB,
        SourceType_GITHUB_ENTERPRISE,
        SourceType_NO_SOURCE,
        SourceType_S3
      ),
  )
where

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

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

pattern SourceType_BITBUCKET :: SourceType
pattern $bSourceType_BITBUCKET :: SourceType
$mSourceType_BITBUCKET :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_BITBUCKET = SourceType' "BITBUCKET"

pattern SourceType_CODECOMMIT :: SourceType
pattern $bSourceType_CODECOMMIT :: SourceType
$mSourceType_CODECOMMIT :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_CODECOMMIT = SourceType' "CODECOMMIT"

pattern SourceType_CODEPIPELINE :: SourceType
pattern $bSourceType_CODEPIPELINE :: SourceType
$mSourceType_CODEPIPELINE :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_CODEPIPELINE = SourceType' "CODEPIPELINE"

pattern SourceType_GITHUB :: SourceType
pattern $bSourceType_GITHUB :: SourceType
$mSourceType_GITHUB :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_GITHUB = SourceType' "GITHUB"

pattern SourceType_GITHUB_ENTERPRISE :: SourceType
pattern $bSourceType_GITHUB_ENTERPRISE :: SourceType
$mSourceType_GITHUB_ENTERPRISE :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_GITHUB_ENTERPRISE = SourceType' "GITHUB_ENTERPRISE"

pattern SourceType_NO_SOURCE :: SourceType
pattern $bSourceType_NO_SOURCE :: SourceType
$mSourceType_NO_SOURCE :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_NO_SOURCE = SourceType' "NO_SOURCE"

pattern SourceType_S3 :: SourceType
pattern $bSourceType_S3 :: SourceType
$mSourceType_S3 :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_S3 = SourceType' "S3"

{-# COMPLETE
  SourceType_BITBUCKET,
  SourceType_CODECOMMIT,
  SourceType_CODEPIPELINE,
  SourceType_GITHUB,
  SourceType_GITHUB_ENTERPRISE,
  SourceType_NO_SOURCE,
  SourceType_S3,
  SourceType'
  #-}