{-# 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.DnsNameState
-- 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.DnsNameState
  ( DnsNameState
      ( ..,
        DnsNameState_Failed,
        DnsNameState_PendingVerification,
        DnsNameState_Verified
      ),
  )
where

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

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

pattern DnsNameState_Failed :: DnsNameState
pattern $bDnsNameState_Failed :: DnsNameState
$mDnsNameState_Failed :: forall {r}. DnsNameState -> ((# #) -> r) -> ((# #) -> r) -> r
DnsNameState_Failed = DnsNameState' "failed"

pattern DnsNameState_PendingVerification :: DnsNameState
pattern $bDnsNameState_PendingVerification :: DnsNameState
$mDnsNameState_PendingVerification :: forall {r}. DnsNameState -> ((# #) -> r) -> ((# #) -> r) -> r
DnsNameState_PendingVerification = DnsNameState' "pendingVerification"

pattern DnsNameState_Verified :: DnsNameState
pattern $bDnsNameState_Verified :: DnsNameState
$mDnsNameState_Verified :: forall {r}. DnsNameState -> ((# #) -> r) -> ((# #) -> r) -> r
DnsNameState_Verified = DnsNameState' "verified"

{-# COMPLETE
  DnsNameState_Failed,
  DnsNameState_PendingVerification,
  DnsNameState_Verified,
  DnsNameState'
  #-}