{-# 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.CodeStarNotifications.Types.DetailType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodeStarNotifications.Types.DetailType
  ( DetailType
      ( ..,
        DetailType_BASIC,
        DetailType_FULL
      ),
  )
where

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

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

pattern DetailType_BASIC :: DetailType
pattern $bDetailType_BASIC :: DetailType
$mDetailType_BASIC :: forall {r}. DetailType -> ((# #) -> r) -> ((# #) -> r) -> r
DetailType_BASIC = DetailType' "BASIC"

pattern DetailType_FULL :: DetailType
pattern $bDetailType_FULL :: DetailType
$mDetailType_FULL :: forall {r}. DetailType -> ((# #) -> r) -> ((# #) -> r) -> r
DetailType_FULL = DetailType' "FULL"

{-# COMPLETE
  DetailType_BASIC,
  DetailType_FULL,
  DetailType'
  #-}