{-# 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.FileModeTypeEnum
-- 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.FileModeTypeEnum
  ( FileModeTypeEnum
      ( ..,
        FileModeTypeEnum_EXECUTABLE,
        FileModeTypeEnum_NORMAL,
        FileModeTypeEnum_SYMLINK
      ),
  )
where

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

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

pattern FileModeTypeEnum_EXECUTABLE :: FileModeTypeEnum
pattern $bFileModeTypeEnum_EXECUTABLE :: FileModeTypeEnum
$mFileModeTypeEnum_EXECUTABLE :: forall r. FileModeTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
FileModeTypeEnum_EXECUTABLE = FileModeTypeEnum' "EXECUTABLE"

pattern FileModeTypeEnum_NORMAL :: FileModeTypeEnum
pattern $bFileModeTypeEnum_NORMAL :: FileModeTypeEnum
$mFileModeTypeEnum_NORMAL :: forall r. FileModeTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
FileModeTypeEnum_NORMAL = FileModeTypeEnum' "NORMAL"

pattern FileModeTypeEnum_SYMLINK :: FileModeTypeEnum
pattern $bFileModeTypeEnum_SYMLINK :: FileModeTypeEnum
$mFileModeTypeEnum_SYMLINK :: forall r. FileModeTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
FileModeTypeEnum_SYMLINK = FileModeTypeEnum' "SYMLINK"

{-# COMPLETE
  FileModeTypeEnum_EXECUTABLE,
  FileModeTypeEnum_NORMAL,
  FileModeTypeEnum_SYMLINK,
  FileModeTypeEnum'
  #-}