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

pattern DnsSupportValue_Disable :: DnsSupportValue
pattern $bDnsSupportValue_Disable :: DnsSupportValue
$mDnsSupportValue_Disable :: forall {r}. DnsSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
DnsSupportValue_Disable = DnsSupportValue' "disable"

pattern DnsSupportValue_Enable :: DnsSupportValue
pattern $bDnsSupportValue_Enable :: DnsSupportValue
$mDnsSupportValue_Enable :: forall {r}. DnsSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
DnsSupportValue_Enable = DnsSupportValue' "enable"

{-# COMPLETE
  DnsSupportValue_Disable,
  DnsSupportValue_Enable,
  DnsSupportValue'
  #-}