{-# 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.CodeGuruProfiler.Types.EventPublisher
-- 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.CodeGuruProfiler.Types.EventPublisher
  ( EventPublisher
      ( ..,
        EventPublisher_AnomalyDetection
      ),
  )
where

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

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

pattern EventPublisher_AnomalyDetection :: EventPublisher
pattern $bEventPublisher_AnomalyDetection :: EventPublisher
$mEventPublisher_AnomalyDetection :: forall r. EventPublisher -> (Void# -> r) -> (Void# -> r) -> r
EventPublisher_AnomalyDetection = EventPublisher' "AnomalyDetection"

{-# COMPLETE
  EventPublisher_AnomalyDetection,
  EventPublisher'
  #-}