{-# 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.AppRunner.Types.SourceCodeVersionType
-- 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.AppRunner.Types.SourceCodeVersionType
  ( SourceCodeVersionType
      ( ..,
        SourceCodeVersionType_BRANCH
      ),
  )
where

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

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

pattern SourceCodeVersionType_BRANCH :: SourceCodeVersionType
pattern $bSourceCodeVersionType_BRANCH :: SourceCodeVersionType
$mSourceCodeVersionType_BRANCH :: forall {r}.
SourceCodeVersionType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceCodeVersionType_BRANCH = SourceCodeVersionType' "BRANCH"

{-# COMPLETE
  SourceCodeVersionType_BRANCH,
  SourceCodeVersionType'
  #-}