{-# 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.VersionControl
-- 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.VersionControl
  ( VersionControl
      ( ..,
        VersionControl_AZURE_DEVOPS_GIT,
        VersionControl_GITHUB,
        VersionControl_GITHUB_ENTERPRISE
      ),
  )
where

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

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

pattern VersionControl_AZURE_DEVOPS_GIT :: VersionControl
pattern $bVersionControl_AZURE_DEVOPS_GIT :: VersionControl
$mVersionControl_AZURE_DEVOPS_GIT :: forall {r}. VersionControl -> ((# #) -> r) -> ((# #) -> r) -> r
VersionControl_AZURE_DEVOPS_GIT = VersionControl' "AZURE_DEVOPS_GIT"

pattern VersionControl_GITHUB :: VersionControl
pattern $bVersionControl_GITHUB :: VersionControl
$mVersionControl_GITHUB :: forall {r}. VersionControl -> ((# #) -> r) -> ((# #) -> r) -> r
VersionControl_GITHUB = VersionControl' "GITHUB"

pattern VersionControl_GITHUB_ENTERPRISE :: VersionControl
pattern $bVersionControl_GITHUB_ENTERPRISE :: VersionControl
$mVersionControl_GITHUB_ENTERPRISE :: forall {r}. VersionControl -> ((# #) -> r) -> ((# #) -> r) -> r
VersionControl_GITHUB_ENTERPRISE = VersionControl' "GITHUB_ENTERPRISE"

{-# COMPLETE
  VersionControl_AZURE_DEVOPS_GIT,
  VersionControl_GITHUB,
  VersionControl_GITHUB_ENTERPRISE,
  VersionControl'
  #-}