{-# 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.APIGateway.Types.DomainNameStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.APIGateway.Types.DomainNameStatus
  ( DomainNameStatus
      ( ..,
        DomainNameStatus_AVAILABLE,
        DomainNameStatus_PENDING,
        DomainNameStatus_PENDING_CERTIFICATE_REIMPORT,
        DomainNameStatus_PENDING_OWNERSHIP_VERIFICATION,
        DomainNameStatus_UPDATING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern DomainNameStatus_AVAILABLE :: DomainNameStatus
pattern $bDomainNameStatus_AVAILABLE :: DomainNameStatus
$mDomainNameStatus_AVAILABLE :: forall r. DomainNameStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainNameStatus_AVAILABLE = DomainNameStatus' "AVAILABLE"

pattern DomainNameStatus_PENDING :: DomainNameStatus
pattern $bDomainNameStatus_PENDING :: DomainNameStatus
$mDomainNameStatus_PENDING :: forall r. DomainNameStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainNameStatus_PENDING = DomainNameStatus' "PENDING"

pattern DomainNameStatus_PENDING_CERTIFICATE_REIMPORT :: DomainNameStatus
pattern $bDomainNameStatus_PENDING_CERTIFICATE_REIMPORT :: DomainNameStatus
$mDomainNameStatus_PENDING_CERTIFICATE_REIMPORT :: forall r. DomainNameStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainNameStatus_PENDING_CERTIFICATE_REIMPORT = DomainNameStatus' "PENDING_CERTIFICATE_REIMPORT"

pattern DomainNameStatus_PENDING_OWNERSHIP_VERIFICATION :: DomainNameStatus
pattern $bDomainNameStatus_PENDING_OWNERSHIP_VERIFICATION :: DomainNameStatus
$mDomainNameStatus_PENDING_OWNERSHIP_VERIFICATION :: forall r. DomainNameStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainNameStatus_PENDING_OWNERSHIP_VERIFICATION = DomainNameStatus' "PENDING_OWNERSHIP_VERIFICATION"

pattern DomainNameStatus_UPDATING :: DomainNameStatus
pattern $bDomainNameStatus_UPDATING :: DomainNameStatus
$mDomainNameStatus_UPDATING :: forall r. DomainNameStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainNameStatus_UPDATING = DomainNameStatus' "UPDATING"

{-# COMPLETE
  DomainNameStatus_AVAILABLE,
  DomainNameStatus_PENDING,
  DomainNameStatus_PENDING_CERTIFICATE_REIMPORT,
  DomainNameStatus_PENDING_OWNERSHIP_VERIFICATION,
  DomainNameStatus_UPDATING,
  DomainNameStatus'
  #-}