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

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

newtype SourceCodeVersionType = SourceCodeVersionType'
  { SourceCodeVersionType -> Text
fromSourceCodeVersionType ::
      Core.Text
  }
  deriving stock
    ( Int -> SourceCodeVersionType -> ShowS
[SourceCodeVersionType] -> ShowS
SourceCodeVersionType -> String
(Int -> SourceCodeVersionType -> ShowS)
-> (SourceCodeVersionType -> String)
-> ([SourceCodeVersionType] -> ShowS)
-> Show SourceCodeVersionType
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]
(Int -> ReadS SourceCodeVersionType)
-> ReadS [SourceCodeVersionType]
-> ReadPrec SourceCodeVersionType
-> ReadPrec [SourceCodeVersionType]
-> Read 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
(SourceCodeVersionType -> SourceCodeVersionType -> Bool)
-> (SourceCodeVersionType -> SourceCodeVersionType -> Bool)
-> Eq SourceCodeVersionType
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
Eq SourceCodeVersionType
-> (SourceCodeVersionType -> SourceCodeVersionType -> Ordering)
-> (SourceCodeVersionType -> SourceCodeVersionType -> Bool)
-> (SourceCodeVersionType -> SourceCodeVersionType -> Bool)
-> (SourceCodeVersionType -> SourceCodeVersionType -> Bool)
-> (SourceCodeVersionType -> SourceCodeVersionType -> Bool)
-> (SourceCodeVersionType
    -> SourceCodeVersionType -> SourceCodeVersionType)
-> (SourceCodeVersionType
    -> SourceCodeVersionType -> SourceCodeVersionType)
-> Ord 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
$cp1Ord :: Eq SourceCodeVersionType
Prelude.Ord,
      (forall x. SourceCodeVersionType -> Rep SourceCodeVersionType x)
-> (forall x. Rep SourceCodeVersionType x -> SourceCodeVersionType)
-> Generic SourceCodeVersionType
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
    ( Int -> SourceCodeVersionType -> Int
SourceCodeVersionType -> Int
(Int -> SourceCodeVersionType -> Int)
-> (SourceCodeVersionType -> Int) -> Hashable SourceCodeVersionType
forall 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 -> ()
(SourceCodeVersionType -> ()) -> NFData SourceCodeVersionType
forall a. (a -> ()) -> NFData a
rnf :: SourceCodeVersionType -> ()
$crnf :: SourceCodeVersionType -> ()
Prelude.NFData,
      Text -> Either String SourceCodeVersionType
(Text -> Either String SourceCodeVersionType)
-> FromText SourceCodeVersionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SourceCodeVersionType
$cfromText :: Text -> Either String SourceCodeVersionType
Core.FromText,
      SourceCodeVersionType -> Text
(SourceCodeVersionType -> Text) -> ToText SourceCodeVersionType
forall a. (a -> Text) -> ToText a
toText :: SourceCodeVersionType -> Text
$ctoText :: SourceCodeVersionType -> Text
Core.ToText,
      SourceCodeVersionType -> ByteString
(SourceCodeVersionType -> ByteString)
-> ToByteString SourceCodeVersionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SourceCodeVersionType -> ByteString
$ctoBS :: SourceCodeVersionType -> ByteString
Core.ToByteString,
      SourceCodeVersionType -> ByteStringBuilder
(SourceCodeVersionType -> ByteStringBuilder)
-> ToLog SourceCodeVersionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SourceCodeVersionType -> ByteStringBuilder
$cbuild :: SourceCodeVersionType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SourceCodeVersionType -> [Header]
(HeaderName -> SourceCodeVersionType -> [Header])
-> ToHeader SourceCodeVersionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SourceCodeVersionType -> [Header]
$ctoHeader :: HeaderName -> SourceCodeVersionType -> [Header]
Core.ToHeader,
      SourceCodeVersionType -> QueryString
(SourceCodeVersionType -> QueryString)
-> ToQuery SourceCodeVersionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SourceCodeVersionType -> QueryString
$ctoQuery :: SourceCodeVersionType -> QueryString
Core.ToQuery,
      Value -> Parser [SourceCodeVersionType]
Value -> Parser SourceCodeVersionType
(Value -> Parser SourceCodeVersionType)
-> (Value -> Parser [SourceCodeVersionType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SourceCodeVersionType]
FromJSONKeyFunction SourceCodeVersionType
FromJSONKeyFunction SourceCodeVersionType
-> FromJSONKeyFunction [SourceCodeVersionType]
-> FromJSONKey SourceCodeVersionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SourceCodeVersionType]
$cfromJSONKeyList :: FromJSONKeyFunction [SourceCodeVersionType]
fromJSONKey :: FromJSONKeyFunction SourceCodeVersionType
$cfromJSONKey :: FromJSONKeyFunction SourceCodeVersionType
Core.FromJSONKey,
      [SourceCodeVersionType] -> Encoding
[SourceCodeVersionType] -> Value
SourceCodeVersionType -> Encoding
SourceCodeVersionType -> Value
(SourceCodeVersionType -> Value)
-> (SourceCodeVersionType -> Encoding)
-> ([SourceCodeVersionType] -> Value)
-> ([SourceCodeVersionType] -> Encoding)
-> ToJSON SourceCodeVersionType
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
Core.ToJSON,
      ToJSONKeyFunction [SourceCodeVersionType]
ToJSONKeyFunction SourceCodeVersionType
ToJSONKeyFunction SourceCodeVersionType
-> ToJSONKeyFunction [SourceCodeVersionType]
-> ToJSONKey SourceCodeVersionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SourceCodeVersionType]
$ctoJSONKeyList :: ToJSONKeyFunction [SourceCodeVersionType]
toJSONKey :: ToJSONKeyFunction SourceCodeVersionType
$ctoJSONKey :: ToJSONKeyFunction SourceCodeVersionType
Core.ToJSONKey,
      [Node] -> Either String SourceCodeVersionType
([Node] -> Either String SourceCodeVersionType)
-> FromXML SourceCodeVersionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SourceCodeVersionType
$cparseXML :: [Node] -> Either String SourceCodeVersionType
Core.FromXML,
      SourceCodeVersionType -> XML
(SourceCodeVersionType -> XML) -> ToXML SourceCodeVersionType
forall a. (a -> XML) -> ToXML a
toXML :: SourceCodeVersionType -> XML
$ctoXML :: SourceCodeVersionType -> XML
Core.ToXML
    )

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

{-# COMPLETE
  SourceCodeVersionType_BRANCH,
  SourceCodeVersionType'
  #-}