{-# 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.ObjectTypeEnum
-- 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.ObjectTypeEnum
  ( ObjectTypeEnum
      ( ..,
        ObjectTypeEnum_DIRECTORY,
        ObjectTypeEnum_FILE,
        ObjectTypeEnum_GIT_LINK,
        ObjectTypeEnum_SYMBOLIC_LINK
      ),
  )
where

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

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

pattern ObjectTypeEnum_DIRECTORY :: ObjectTypeEnum
pattern $bObjectTypeEnum_DIRECTORY :: ObjectTypeEnum
$mObjectTypeEnum_DIRECTORY :: forall r. ObjectTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ObjectTypeEnum_DIRECTORY = ObjectTypeEnum' "DIRECTORY"

pattern ObjectTypeEnum_FILE :: ObjectTypeEnum
pattern $bObjectTypeEnum_FILE :: ObjectTypeEnum
$mObjectTypeEnum_FILE :: forall r. ObjectTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ObjectTypeEnum_FILE = ObjectTypeEnum' "FILE"

pattern ObjectTypeEnum_GIT_LINK :: ObjectTypeEnum
pattern $bObjectTypeEnum_GIT_LINK :: ObjectTypeEnum
$mObjectTypeEnum_GIT_LINK :: forall r. ObjectTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ObjectTypeEnum_GIT_LINK = ObjectTypeEnum' "GIT_LINK"

pattern ObjectTypeEnum_SYMBOLIC_LINK :: ObjectTypeEnum
pattern $bObjectTypeEnum_SYMBOLIC_LINK :: ObjectTypeEnum
$mObjectTypeEnum_SYMBOLIC_LINK :: forall r. ObjectTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ObjectTypeEnum_SYMBOLIC_LINK = ObjectTypeEnum' "SYMBOLIC_LINK"

{-# COMPLETE
  ObjectTypeEnum_DIRECTORY,
  ObjectTypeEnum_FILE,
  ObjectTypeEnum_GIT_LINK,
  ObjectTypeEnum_SYMBOLIC_LINK,
  ObjectTypeEnum'
  #-}