{-# 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.EC2.Types.ConnectionNotificationState
-- 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.EC2.Types.ConnectionNotificationState
  ( ConnectionNotificationState
      ( ..,
        ConnectionNotificationState_Disabled,
        ConnectionNotificationState_Enabled
      ),
  )
where

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

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

pattern ConnectionNotificationState_Disabled :: ConnectionNotificationState
pattern $bConnectionNotificationState_Disabled :: ConnectionNotificationState
$mConnectionNotificationState_Disabled :: forall {r}.
ConnectionNotificationState -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectionNotificationState_Disabled = ConnectionNotificationState' "Disabled"

pattern ConnectionNotificationState_Enabled :: ConnectionNotificationState
pattern $bConnectionNotificationState_Enabled :: ConnectionNotificationState
$mConnectionNotificationState_Enabled :: forall {r}.
ConnectionNotificationState -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectionNotificationState_Enabled = ConnectionNotificationState' "Enabled"

{-# COMPLETE
  ConnectionNotificationState_Disabled,
  ConnectionNotificationState_Enabled,
  ConnectionNotificationState'
  #-}