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

pattern MulticastSupportValue_Disable :: MulticastSupportValue
pattern $bMulticastSupportValue_Disable :: MulticastSupportValue
$mMulticastSupportValue_Disable :: forall {r}.
MulticastSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
MulticastSupportValue_Disable = MulticastSupportValue' "disable"

pattern MulticastSupportValue_Enable :: MulticastSupportValue
pattern $bMulticastSupportValue_Enable :: MulticastSupportValue
$mMulticastSupportValue_Enable :: forall {r}.
MulticastSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
MulticastSupportValue_Enable = MulticastSupportValue' "enable"

{-# COMPLETE
  MulticastSupportValue_Disable,
  MulticastSupportValue_Enable,
  MulticastSupportValue'
  #-}