{-# 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.CodeDeploy.Types.RevisionLocationType
-- 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.CodeDeploy.Types.RevisionLocationType
  ( RevisionLocationType
      ( ..,
        RevisionLocationType_AppSpecContent,
        RevisionLocationType_GitHub,
        RevisionLocationType_S3,
        RevisionLocationType_String
      ),
  )
where

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

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

pattern RevisionLocationType_AppSpecContent :: RevisionLocationType
pattern $bRevisionLocationType_AppSpecContent :: RevisionLocationType
$mRevisionLocationType_AppSpecContent :: forall r. RevisionLocationType -> (Void# -> r) -> (Void# -> r) -> r
RevisionLocationType_AppSpecContent = RevisionLocationType' "AppSpecContent"

pattern RevisionLocationType_GitHub :: RevisionLocationType
pattern $bRevisionLocationType_GitHub :: RevisionLocationType
$mRevisionLocationType_GitHub :: forall r. RevisionLocationType -> (Void# -> r) -> (Void# -> r) -> r
RevisionLocationType_GitHub = RevisionLocationType' "GitHub"

pattern RevisionLocationType_S3 :: RevisionLocationType
pattern $bRevisionLocationType_S3 :: RevisionLocationType
$mRevisionLocationType_S3 :: forall r. RevisionLocationType -> (Void# -> r) -> (Void# -> r) -> r
RevisionLocationType_S3 = RevisionLocationType' "S3"

pattern RevisionLocationType_String :: RevisionLocationType
pattern $bRevisionLocationType_String :: RevisionLocationType
$mRevisionLocationType_String :: forall r. RevisionLocationType -> (Void# -> r) -> (Void# -> r) -> r
RevisionLocationType_String = RevisionLocationType' "String"

{-# COMPLETE
  RevisionLocationType_AppSpecContent,
  RevisionLocationType_GitHub,
  RevisionLocationType_S3,
  RevisionLocationType_String,
  RevisionLocationType'
  #-}