{-# 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.RelativeFileVersionEnum
-- 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.RelativeFileVersionEnum
  ( RelativeFileVersionEnum
      ( ..,
        RelativeFileVersionEnum_AFTER,
        RelativeFileVersionEnum_BEFORE
      ),
  )
where

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

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

pattern RelativeFileVersionEnum_AFTER :: RelativeFileVersionEnum
pattern $bRelativeFileVersionEnum_AFTER :: RelativeFileVersionEnum
$mRelativeFileVersionEnum_AFTER :: forall r.
RelativeFileVersionEnum -> (Void# -> r) -> (Void# -> r) -> r
RelativeFileVersionEnum_AFTER = RelativeFileVersionEnum' "AFTER"

pattern RelativeFileVersionEnum_BEFORE :: RelativeFileVersionEnum
pattern $bRelativeFileVersionEnum_BEFORE :: RelativeFileVersionEnum
$mRelativeFileVersionEnum_BEFORE :: forall r.
RelativeFileVersionEnum -> (Void# -> r) -> (Void# -> r) -> r
RelativeFileVersionEnum_BEFORE = RelativeFileVersionEnum' "BEFORE"

{-# COMPLETE
  RelativeFileVersionEnum_AFTER,
  RelativeFileVersionEnum_BEFORE,
  RelativeFileVersionEnum'
  #-}