{-# 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.CodeCommit.Types.ChangeTypeEnum
-- 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.CodeCommit.Types.ChangeTypeEnum
  ( ChangeTypeEnum
      ( ..,
        ChangeTypeEnum_A,
        ChangeTypeEnum_D,
        ChangeTypeEnum_M
      ),
  )
where

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

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

pattern ChangeTypeEnum_A :: ChangeTypeEnum
pattern $bChangeTypeEnum_A :: ChangeTypeEnum
$mChangeTypeEnum_A :: forall r. ChangeTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ChangeTypeEnum_A = ChangeTypeEnum' "A"

pattern ChangeTypeEnum_D :: ChangeTypeEnum
pattern $bChangeTypeEnum_D :: ChangeTypeEnum
$mChangeTypeEnum_D :: forall r. ChangeTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ChangeTypeEnum_D = ChangeTypeEnum' "D"

pattern ChangeTypeEnum_M :: ChangeTypeEnum
pattern $bChangeTypeEnum_M :: ChangeTypeEnum
$mChangeTypeEnum_M :: forall r. ChangeTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ChangeTypeEnum_M = ChangeTypeEnum' "M"

{-# COMPLETE
  ChangeTypeEnum_A,
  ChangeTypeEnum_D,
  ChangeTypeEnum_M,
  ChangeTypeEnum'
  #-}