{-# 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.Igmpv2SupportValue
-- 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.Igmpv2SupportValue
  ( Igmpv2SupportValue
      ( ..,
        Igmpv2SupportValue_Disable,
        Igmpv2SupportValue_Enable
      ),
  )
where

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

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

pattern Igmpv2SupportValue_Disable :: Igmpv2SupportValue
pattern $bIgmpv2SupportValue_Disable :: Igmpv2SupportValue
$mIgmpv2SupportValue_Disable :: forall {r}. Igmpv2SupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
Igmpv2SupportValue_Disable = Igmpv2SupportValue' "disable"

pattern Igmpv2SupportValue_Enable :: Igmpv2SupportValue
pattern $bIgmpv2SupportValue_Enable :: Igmpv2SupportValue
$mIgmpv2SupportValue_Enable :: forall {r}. Igmpv2SupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
Igmpv2SupportValue_Enable = Igmpv2SupportValue' "enable"

{-# COMPLETE
  Igmpv2SupportValue_Disable,
  Igmpv2SupportValue_Enable,
  Igmpv2SupportValue'
  #-}