{-# 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-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.CodeStarNotifications.Types.DetailType
  ( DetailType
      ( ..,
        DetailType_BASIC,
        DetailType_FULL
      ),
  )
where

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

newtype DetailType = DetailType'
  { DetailType -> Text
fromDetailType ::
      Core.Text
  }
  deriving stock
    ( Int -> DetailType -> ShowS
[DetailType] -> ShowS
DetailType -> String
(Int -> DetailType -> ShowS)
-> (DetailType -> String)
-> ([DetailType] -> ShowS)
-> Show DetailType
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]
(Int -> ReadS DetailType)
-> ReadS [DetailType]
-> ReadPrec DetailType
-> ReadPrec [DetailType]
-> Read 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
(DetailType -> DetailType -> Bool)
-> (DetailType -> DetailType -> Bool) -> Eq DetailType
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
Eq DetailType
-> (DetailType -> DetailType -> Ordering)
-> (DetailType -> DetailType -> Bool)
-> (DetailType -> DetailType -> Bool)
-> (DetailType -> DetailType -> Bool)
-> (DetailType -> DetailType -> Bool)
-> (DetailType -> DetailType -> DetailType)
-> (DetailType -> DetailType -> DetailType)
-> Ord 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
$cp1Ord :: Eq DetailType
Prelude.Ord,
      (forall x. DetailType -> Rep DetailType x)
-> (forall x. Rep DetailType x -> DetailType) -> Generic DetailType
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
    ( Int -> DetailType -> Int
DetailType -> Int
(Int -> DetailType -> Int)
-> (DetailType -> Int) -> Hashable DetailType
forall 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 -> ()
(DetailType -> ()) -> NFData DetailType
forall a. (a -> ()) -> NFData a
rnf :: DetailType -> ()
$crnf :: DetailType -> ()
Prelude.NFData,
      Text -> Either String DetailType
(Text -> Either String DetailType) -> FromText DetailType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DetailType
$cfromText :: Text -> Either String DetailType
Core.FromText,
      DetailType -> Text
(DetailType -> Text) -> ToText DetailType
forall a. (a -> Text) -> ToText a
toText :: DetailType -> Text
$ctoText :: DetailType -> Text
Core.ToText,
      DetailType -> ByteString
(DetailType -> ByteString) -> ToByteString DetailType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DetailType -> ByteString
$ctoBS :: DetailType -> ByteString
Core.ToByteString,
      DetailType -> ByteStringBuilder
(DetailType -> ByteStringBuilder) -> ToLog DetailType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DetailType -> ByteStringBuilder
$cbuild :: DetailType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DetailType -> [Header]
(HeaderName -> DetailType -> [Header]) -> ToHeader DetailType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DetailType -> [Header]
$ctoHeader :: HeaderName -> DetailType -> [Header]
Core.ToHeader,
      DetailType -> QueryString
(DetailType -> QueryString) -> ToQuery DetailType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DetailType -> QueryString
$ctoQuery :: DetailType -> QueryString
Core.ToQuery,
      Value -> Parser [DetailType]
Value -> Parser DetailType
(Value -> Parser DetailType)
-> (Value -> Parser [DetailType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DetailType]
FromJSONKeyFunction DetailType
FromJSONKeyFunction DetailType
-> FromJSONKeyFunction [DetailType] -> FromJSONKey DetailType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DetailType]
$cfromJSONKeyList :: FromJSONKeyFunction [DetailType]
fromJSONKey :: FromJSONKeyFunction DetailType
$cfromJSONKey :: FromJSONKeyFunction DetailType
Core.FromJSONKey,
      [DetailType] -> Encoding
[DetailType] -> Value
DetailType -> Encoding
DetailType -> Value
(DetailType -> Value)
-> (DetailType -> Encoding)
-> ([DetailType] -> Value)
-> ([DetailType] -> Encoding)
-> ToJSON DetailType
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
Core.ToJSON,
      ToJSONKeyFunction [DetailType]
ToJSONKeyFunction DetailType
ToJSONKeyFunction DetailType
-> ToJSONKeyFunction [DetailType] -> ToJSONKey DetailType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DetailType]
$ctoJSONKeyList :: ToJSONKeyFunction [DetailType]
toJSONKey :: ToJSONKeyFunction DetailType
$ctoJSONKey :: ToJSONKeyFunction DetailType
Core.ToJSONKey,
      [Node] -> Either String DetailType
([Node] -> Either String DetailType) -> FromXML DetailType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DetailType
$cparseXML :: [Node] -> Either String DetailType
Core.FromXML,
      DetailType -> XML
(DetailType -> XML) -> ToXML DetailType
forall a. (a -> XML) -> ToXML a
toXML :: DetailType -> XML
$ctoXML :: DetailType -> XML
Core.ToXML
    )

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

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

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