{-# 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.Amplify.Types.RepositoryCloneMethod
-- 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.Amplify.Types.RepositoryCloneMethod
  ( RepositoryCloneMethod
      ( ..,
        RepositoryCloneMethod_SIGV4,
        RepositoryCloneMethod_SSH,
        RepositoryCloneMethod_TOKEN
      ),
  )
where

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

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

pattern RepositoryCloneMethod_SIGV4 :: RepositoryCloneMethod
pattern $bRepositoryCloneMethod_SIGV4 :: RepositoryCloneMethod
$mRepositoryCloneMethod_SIGV4 :: forall {r}.
RepositoryCloneMethod -> ((# #) -> r) -> ((# #) -> r) -> r
RepositoryCloneMethod_SIGV4 = RepositoryCloneMethod' "SIGV4"

pattern RepositoryCloneMethod_SSH :: RepositoryCloneMethod
pattern $bRepositoryCloneMethod_SSH :: RepositoryCloneMethod
$mRepositoryCloneMethod_SSH :: forall {r}.
RepositoryCloneMethod -> ((# #) -> r) -> ((# #) -> r) -> r
RepositoryCloneMethod_SSH = RepositoryCloneMethod' "SSH"

pattern RepositoryCloneMethod_TOKEN :: RepositoryCloneMethod
pattern $bRepositoryCloneMethod_TOKEN :: RepositoryCloneMethod
$mRepositoryCloneMethod_TOKEN :: forall {r}.
RepositoryCloneMethod -> ((# #) -> r) -> ((# #) -> r) -> r
RepositoryCloneMethod_TOKEN = RepositoryCloneMethod' "TOKEN"

{-# COMPLETE
  RepositoryCloneMethod_SIGV4,
  RepositoryCloneMethod_SSH,
  RepositoryCloneMethod_TOKEN,
  RepositoryCloneMethod'
  #-}