{-# 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.EventAggregateField
-- 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.EventAggregateField
  ( EventAggregateField
      ( ..,
        EventAggregateField_EventTypeCategory
      ),
  )
where

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

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

pattern EventAggregateField_EventTypeCategory :: EventAggregateField
pattern $bEventAggregateField_EventTypeCategory :: EventAggregateField
$mEventAggregateField_EventTypeCategory :: forall r. EventAggregateField -> (Void# -> r) -> (Void# -> r) -> r
EventAggregateField_EventTypeCategory = EventAggregateField' "eventTypeCategory"

{-# COMPLETE
  EventAggregateField_EventTypeCategory,
  EventAggregateField'
  #-}