{-# 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.ElasticBeanstalk.Types.SourceRepository
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElasticBeanstalk.Types.SourceRepository
  ( SourceRepository
      ( ..,
        SourceRepository_CodeCommit,
        SourceRepository_S3
      ),
  )
where

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

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

pattern SourceRepository_CodeCommit :: SourceRepository
pattern $bSourceRepository_CodeCommit :: SourceRepository
$mSourceRepository_CodeCommit :: forall r. SourceRepository -> (Void# -> r) -> (Void# -> r) -> r
SourceRepository_CodeCommit = SourceRepository' "CodeCommit"

pattern SourceRepository_S3 :: SourceRepository
pattern $bSourceRepository_S3 :: SourceRepository
$mSourceRepository_S3 :: forall r. SourceRepository -> (Void# -> r) -> (Void# -> r) -> r
SourceRepository_S3 = SourceRepository' "S3"

{-# COMPLETE
  SourceRepository_CodeCommit,
  SourceRepository_S3,
  SourceRepository'
  #-}