{-# 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.Route53Domains.Types.DomainAvailability
-- 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.Route53Domains.Types.DomainAvailability
  ( DomainAvailability
      ( ..,
        DomainAvailability_AVAILABLE,
        DomainAvailability_AVAILABLE_PREORDER,
        DomainAvailability_AVAILABLE_RESERVED,
        DomainAvailability_DONT_KNOW,
        DomainAvailability_RESERVED,
        DomainAvailability_UNAVAILABLE,
        DomainAvailability_UNAVAILABLE_PREMIUM,
        DomainAvailability_UNAVAILABLE_RESTRICTED
      ),
  )
where

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

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

pattern DomainAvailability_AVAILABLE :: DomainAvailability
pattern $bDomainAvailability_AVAILABLE :: DomainAvailability
$mDomainAvailability_AVAILABLE :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_AVAILABLE = DomainAvailability' "AVAILABLE"

pattern DomainAvailability_AVAILABLE_PREORDER :: DomainAvailability
pattern $bDomainAvailability_AVAILABLE_PREORDER :: DomainAvailability
$mDomainAvailability_AVAILABLE_PREORDER :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_AVAILABLE_PREORDER = DomainAvailability' "AVAILABLE_PREORDER"

pattern DomainAvailability_AVAILABLE_RESERVED :: DomainAvailability
pattern $bDomainAvailability_AVAILABLE_RESERVED :: DomainAvailability
$mDomainAvailability_AVAILABLE_RESERVED :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_AVAILABLE_RESERVED = DomainAvailability' "AVAILABLE_RESERVED"

pattern DomainAvailability_DONT_KNOW :: DomainAvailability
pattern $bDomainAvailability_DONT_KNOW :: DomainAvailability
$mDomainAvailability_DONT_KNOW :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_DONT_KNOW = DomainAvailability' "DONT_KNOW"

pattern DomainAvailability_RESERVED :: DomainAvailability
pattern $bDomainAvailability_RESERVED :: DomainAvailability
$mDomainAvailability_RESERVED :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_RESERVED = DomainAvailability' "RESERVED"

pattern DomainAvailability_UNAVAILABLE :: DomainAvailability
pattern $bDomainAvailability_UNAVAILABLE :: DomainAvailability
$mDomainAvailability_UNAVAILABLE :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_UNAVAILABLE = DomainAvailability' "UNAVAILABLE"

pattern DomainAvailability_UNAVAILABLE_PREMIUM :: DomainAvailability
pattern $bDomainAvailability_UNAVAILABLE_PREMIUM :: DomainAvailability
$mDomainAvailability_UNAVAILABLE_PREMIUM :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_UNAVAILABLE_PREMIUM = DomainAvailability' "UNAVAILABLE_PREMIUM"

pattern DomainAvailability_UNAVAILABLE_RESTRICTED :: DomainAvailability
pattern $bDomainAvailability_UNAVAILABLE_RESTRICTED :: DomainAvailability
$mDomainAvailability_UNAVAILABLE_RESTRICTED :: forall r. DomainAvailability -> (Void# -> r) -> (Void# -> r) -> r
DomainAvailability_UNAVAILABLE_RESTRICTED = DomainAvailability' "UNAVAILABLE_RESTRICTED"

{-# COMPLETE
  DomainAvailability_AVAILABLE,
  DomainAvailability_AVAILABLE_PREORDER,
  DomainAvailability_AVAILABLE_RESERVED,
  DomainAvailability_DONT_KNOW,
  DomainAvailability_RESERVED,
  DomainAvailability_UNAVAILABLE,
  DomainAvailability_UNAVAILABLE_PREMIUM,
  DomainAvailability_UNAVAILABLE_RESTRICTED,
  DomainAvailability'
  #-}