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

pattern Ipv6SupportValue_Disable :: Ipv6SupportValue
pattern $bIpv6SupportValue_Disable :: Ipv6SupportValue
$mIpv6SupportValue_Disable :: forall {r}. Ipv6SupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
Ipv6SupportValue_Disable = Ipv6SupportValue' "disable"

pattern Ipv6SupportValue_Enable :: Ipv6SupportValue
pattern $bIpv6SupportValue_Enable :: Ipv6SupportValue
$mIpv6SupportValue_Enable :: forall {r}. Ipv6SupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
Ipv6SupportValue_Enable = Ipv6SupportValue' "enable"

{-# COMPLETE
  Ipv6SupportValue_Disable,
  Ipv6SupportValue_Enable,
  Ipv6SupportValue'
  #-}