{-# 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.OverrideStatus
-- 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.OverrideStatus
  ( OverrideStatus
      ( ..,
        OverrideStatus_OVERRIDE,
        OverrideStatus_REVOKE
      ),
  )
where

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

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

pattern OverrideStatus_OVERRIDE :: OverrideStatus
pattern $bOverrideStatus_OVERRIDE :: OverrideStatus
$mOverrideStatus_OVERRIDE :: forall r. OverrideStatus -> (Void# -> r) -> (Void# -> r) -> r
OverrideStatus_OVERRIDE = OverrideStatus' "OVERRIDE"

pattern OverrideStatus_REVOKE :: OverrideStatus
pattern $bOverrideStatus_REVOKE :: OverrideStatus
$mOverrideStatus_REVOKE :: forall r. OverrideStatus -> (Void# -> r) -> (Void# -> r) -> r
OverrideStatus_REVOKE = OverrideStatus' "REVOKE"

{-# COMPLETE
  OverrideStatus_OVERRIDE,
  OverrideStatus_REVOKE,
  OverrideStatus'
  #-}