{-# 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.MigrationHubStrategy.Types.VersionControlType
-- 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.MigrationHubStrategy.Types.VersionControlType
  ( VersionControlType
      ( ..,
        VersionControlType_AZURE_DEVOPS_GIT,
        VersionControlType_GITHUB,
        VersionControlType_GITHUB_ENTERPRISE
      ),
  )
where

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

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

pattern VersionControlType_AZURE_DEVOPS_GIT :: VersionControlType
pattern $bVersionControlType_AZURE_DEVOPS_GIT :: VersionControlType
$mVersionControlType_AZURE_DEVOPS_GIT :: forall {r}. VersionControlType -> ((# #) -> r) -> ((# #) -> r) -> r
VersionControlType_AZURE_DEVOPS_GIT = VersionControlType' "AZURE_DEVOPS_GIT"

pattern VersionControlType_GITHUB :: VersionControlType
pattern $bVersionControlType_GITHUB :: VersionControlType
$mVersionControlType_GITHUB :: forall {r}. VersionControlType -> ((# #) -> r) -> ((# #) -> r) -> r
VersionControlType_GITHUB = VersionControlType' "GITHUB"

pattern VersionControlType_GITHUB_ENTERPRISE :: VersionControlType
pattern $bVersionControlType_GITHUB_ENTERPRISE :: VersionControlType
$mVersionControlType_GITHUB_ENTERPRISE :: forall {r}. VersionControlType -> ((# #) -> r) -> ((# #) -> r) -> r
VersionControlType_GITHUB_ENTERPRISE = VersionControlType' "GITHUB_ENTERPRISE"

{-# COMPLETE
  VersionControlType_AZURE_DEVOPS_GIT,
  VersionControlType_GITHUB,
  VersionControlType_GITHUB_ENTERPRISE,
  VersionControlType'
  #-}