{-# 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.TransitGatewayMulticastDomainState
-- 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.TransitGatewayMulticastDomainState
  ( TransitGatewayMulticastDomainState
      ( ..,
        TransitGatewayMulticastDomainState_Available,
        TransitGatewayMulticastDomainState_Deleted,
        TransitGatewayMulticastDomainState_Deleting,
        TransitGatewayMulticastDomainState_Pending
      ),
  )
where

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

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

pattern TransitGatewayMulticastDomainState_Available :: TransitGatewayMulticastDomainState
pattern $bTransitGatewayMulticastDomainState_Available :: TransitGatewayMulticastDomainState
$mTransitGatewayMulticastDomainState_Available :: forall {r}.
TransitGatewayMulticastDomainState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayMulticastDomainState_Available = TransitGatewayMulticastDomainState' "available"

pattern TransitGatewayMulticastDomainState_Deleted :: TransitGatewayMulticastDomainState
pattern $bTransitGatewayMulticastDomainState_Deleted :: TransitGatewayMulticastDomainState
$mTransitGatewayMulticastDomainState_Deleted :: forall {r}.
TransitGatewayMulticastDomainState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayMulticastDomainState_Deleted = TransitGatewayMulticastDomainState' "deleted"

pattern TransitGatewayMulticastDomainState_Deleting :: TransitGatewayMulticastDomainState
pattern $bTransitGatewayMulticastDomainState_Deleting :: TransitGatewayMulticastDomainState
$mTransitGatewayMulticastDomainState_Deleting :: forall {r}.
TransitGatewayMulticastDomainState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayMulticastDomainState_Deleting = TransitGatewayMulticastDomainState' "deleting"

pattern TransitGatewayMulticastDomainState_Pending :: TransitGatewayMulticastDomainState
pattern $bTransitGatewayMulticastDomainState_Pending :: TransitGatewayMulticastDomainState
$mTransitGatewayMulticastDomainState_Pending :: forall {r}.
TransitGatewayMulticastDomainState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayMulticastDomainState_Pending = TransitGatewayMulticastDomainState' "pending"

{-# COMPLETE
  TransitGatewayMulticastDomainState_Available,
  TransitGatewayMulticastDomainState_Deleted,
  TransitGatewayMulticastDomainState_Deleting,
  TransitGatewayMulticastDomainState_Pending,
  TransitGatewayMulticastDomainState'
  #-}