{-# 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.AWSHealth.Types.EventTypeCategory
-- 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.AWSHealth.Types.EventTypeCategory
  ( EventTypeCategory
      ( ..,
        EventTypeCategory_AccountNotification,
        EventTypeCategory_Investigation,
        EventTypeCategory_Issue,
        EventTypeCategory_ScheduledChange
      ),
  )
where

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

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

pattern EventTypeCategory_AccountNotification :: EventTypeCategory
pattern $bEventTypeCategory_AccountNotification :: EventTypeCategory
$mEventTypeCategory_AccountNotification :: forall r. EventTypeCategory -> (Void# -> r) -> (Void# -> r) -> r
EventTypeCategory_AccountNotification = EventTypeCategory' "accountNotification"

pattern EventTypeCategory_Investigation :: EventTypeCategory
pattern $bEventTypeCategory_Investigation :: EventTypeCategory
$mEventTypeCategory_Investigation :: forall r. EventTypeCategory -> (Void# -> r) -> (Void# -> r) -> r
EventTypeCategory_Investigation = EventTypeCategory' "investigation"

pattern EventTypeCategory_Issue :: EventTypeCategory
pattern $bEventTypeCategory_Issue :: EventTypeCategory
$mEventTypeCategory_Issue :: forall r. EventTypeCategory -> (Void# -> r) -> (Void# -> r) -> r
EventTypeCategory_Issue = EventTypeCategory' "issue"

pattern EventTypeCategory_ScheduledChange :: EventTypeCategory
pattern $bEventTypeCategory_ScheduledChange :: EventTypeCategory
$mEventTypeCategory_ScheduledChange :: forall r. EventTypeCategory -> (Void# -> r) -> (Void# -> r) -> r
EventTypeCategory_ScheduledChange = EventTypeCategory' "scheduledChange"

{-# COMPLETE
  EventTypeCategory_AccountNotification,
  EventTypeCategory_Investigation,
  EventTypeCategory_Issue,
  EventTypeCategory_ScheduledChange,
  EventTypeCategory'
  #-}