{-# 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.Transferable
-- 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.Transferable
  ( Transferable
      ( ..,
        Transferable_DONT_KNOW,
        Transferable_TRANSFERABLE,
        Transferable_UNTRANSFERABLE
      ),
  )
where

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

-- | Whether the domain name can be transferred to Route 53.
--
-- You can transfer only domains that have a value of @TRANSFERABLE@ for
-- @Transferable@.
--
-- Valid values:
--
-- [TRANSFERABLE]
--     The domain name can be transferred to Route 53.
--
-- [UNTRANSFERRABLE]
--     The domain name can\'t be transferred to Route 53.
--
-- [DONT_KNOW]
--     Reserved for future use.
newtype Transferable = Transferable'
  { Transferable -> Text
fromTransferable ::
      Core.Text
  }
  deriving stock
    ( Int -> Transferable -> ShowS
[Transferable] -> ShowS
Transferable -> String
(Int -> Transferable -> ShowS)
-> (Transferable -> String)
-> ([Transferable] -> ShowS)
-> Show Transferable
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Transferable] -> ShowS
$cshowList :: [Transferable] -> ShowS
show :: Transferable -> String
$cshow :: Transferable -> String
showsPrec :: Int -> Transferable -> ShowS
$cshowsPrec :: Int -> Transferable -> ShowS
Prelude.Show,
      ReadPrec [Transferable]
ReadPrec Transferable
Int -> ReadS Transferable
ReadS [Transferable]
(Int -> ReadS Transferable)
-> ReadS [Transferable]
-> ReadPrec Transferable
-> ReadPrec [Transferable]
-> Read Transferable
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Transferable]
$creadListPrec :: ReadPrec [Transferable]
readPrec :: ReadPrec Transferable
$creadPrec :: ReadPrec Transferable
readList :: ReadS [Transferable]
$creadList :: ReadS [Transferable]
readsPrec :: Int -> ReadS Transferable
$creadsPrec :: Int -> ReadS Transferable
Prelude.Read,
      Transferable -> Transferable -> Bool
(Transferable -> Transferable -> Bool)
-> (Transferable -> Transferable -> Bool) -> Eq Transferable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Transferable -> Transferable -> Bool
$c/= :: Transferable -> Transferable -> Bool
== :: Transferable -> Transferable -> Bool
$c== :: Transferable -> Transferable -> Bool
Prelude.Eq,
      Eq Transferable
Eq Transferable
-> (Transferable -> Transferable -> Ordering)
-> (Transferable -> Transferable -> Bool)
-> (Transferable -> Transferable -> Bool)
-> (Transferable -> Transferable -> Bool)
-> (Transferable -> Transferable -> Bool)
-> (Transferable -> Transferable -> Transferable)
-> (Transferable -> Transferable -> Transferable)
-> Ord Transferable
Transferable -> Transferable -> Bool
Transferable -> Transferable -> Ordering
Transferable -> Transferable -> Transferable
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 :: Transferable -> Transferable -> Transferable
$cmin :: Transferable -> Transferable -> Transferable
max :: Transferable -> Transferable -> Transferable
$cmax :: Transferable -> Transferable -> Transferable
>= :: Transferable -> Transferable -> Bool
$c>= :: Transferable -> Transferable -> Bool
> :: Transferable -> Transferable -> Bool
$c> :: Transferable -> Transferable -> Bool
<= :: Transferable -> Transferable -> Bool
$c<= :: Transferable -> Transferable -> Bool
< :: Transferable -> Transferable -> Bool
$c< :: Transferable -> Transferable -> Bool
compare :: Transferable -> Transferable -> Ordering
$ccompare :: Transferable -> Transferable -> Ordering
$cp1Ord :: Eq Transferable
Prelude.Ord,
      (forall x. Transferable -> Rep Transferable x)
-> (forall x. Rep Transferable x -> Transferable)
-> Generic Transferable
forall x. Rep Transferable x -> Transferable
forall x. Transferable -> Rep Transferable x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Transferable x -> Transferable
$cfrom :: forall x. Transferable -> Rep Transferable x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Transferable -> Int
Transferable -> Int
(Int -> Transferable -> Int)
-> (Transferable -> Int) -> Hashable Transferable
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Transferable -> Int
$chash :: Transferable -> Int
hashWithSalt :: Int -> Transferable -> Int
$chashWithSalt :: Int -> Transferable -> Int
Prelude.Hashable,
      Transferable -> ()
(Transferable -> ()) -> NFData Transferable
forall a. (a -> ()) -> NFData a
rnf :: Transferable -> ()
$crnf :: Transferable -> ()
Prelude.NFData,
      Text -> Either String Transferable
(Text -> Either String Transferable) -> FromText Transferable
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Transferable
$cfromText :: Text -> Either String Transferable
Core.FromText,
      Transferable -> Text
(Transferable -> Text) -> ToText Transferable
forall a. (a -> Text) -> ToText a
toText :: Transferable -> Text
$ctoText :: Transferable -> Text
Core.ToText,
      Transferable -> ByteString
(Transferable -> ByteString) -> ToByteString Transferable
forall a. (a -> ByteString) -> ToByteString a
toBS :: Transferable -> ByteString
$ctoBS :: Transferable -> ByteString
Core.ToByteString,
      Transferable -> ByteStringBuilder
(Transferable -> ByteStringBuilder) -> ToLog Transferable
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Transferable -> ByteStringBuilder
$cbuild :: Transferable -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Transferable -> [Header]
(HeaderName -> Transferable -> [Header]) -> ToHeader Transferable
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Transferable -> [Header]
$ctoHeader :: HeaderName -> Transferable -> [Header]
Core.ToHeader,
      Transferable -> QueryString
(Transferable -> QueryString) -> ToQuery Transferable
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Transferable -> QueryString
$ctoQuery :: Transferable -> QueryString
Core.ToQuery,
      Value -> Parser [Transferable]
Value -> Parser Transferable
(Value -> Parser Transferable)
-> (Value -> Parser [Transferable]) -> FromJSON Transferable
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Transferable]
$cparseJSONList :: Value -> Parser [Transferable]
parseJSON :: Value -> Parser Transferable
$cparseJSON :: Value -> Parser Transferable
Core.FromJSON,
      FromJSONKeyFunction [Transferable]
FromJSONKeyFunction Transferable
FromJSONKeyFunction Transferable
-> FromJSONKeyFunction [Transferable] -> FromJSONKey Transferable
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Transferable]
$cfromJSONKeyList :: FromJSONKeyFunction [Transferable]
fromJSONKey :: FromJSONKeyFunction Transferable
$cfromJSONKey :: FromJSONKeyFunction Transferable
Core.FromJSONKey,
      [Transferable] -> Encoding
[Transferable] -> Value
Transferable -> Encoding
Transferable -> Value
(Transferable -> Value)
-> (Transferable -> Encoding)
-> ([Transferable] -> Value)
-> ([Transferable] -> Encoding)
-> ToJSON Transferable
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Transferable] -> Encoding
$ctoEncodingList :: [Transferable] -> Encoding
toJSONList :: [Transferable] -> Value
$ctoJSONList :: [Transferable] -> Value
toEncoding :: Transferable -> Encoding
$ctoEncoding :: Transferable -> Encoding
toJSON :: Transferable -> Value
$ctoJSON :: Transferable -> Value
Core.ToJSON,
      ToJSONKeyFunction [Transferable]
ToJSONKeyFunction Transferable
ToJSONKeyFunction Transferable
-> ToJSONKeyFunction [Transferable] -> ToJSONKey Transferable
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Transferable]
$ctoJSONKeyList :: ToJSONKeyFunction [Transferable]
toJSONKey :: ToJSONKeyFunction Transferable
$ctoJSONKey :: ToJSONKeyFunction Transferable
Core.ToJSONKey,
      [Node] -> Either String Transferable
([Node] -> Either String Transferable) -> FromXML Transferable
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Transferable
$cparseXML :: [Node] -> Either String Transferable
Core.FromXML,
      Transferable -> XML
(Transferable -> XML) -> ToXML Transferable
forall a. (a -> XML) -> ToXML a
toXML :: Transferable -> XML
$ctoXML :: Transferable -> XML
Core.ToXML
    )

pattern Transferable_DONT_KNOW :: Transferable
pattern $bTransferable_DONT_KNOW :: Transferable
$mTransferable_DONT_KNOW :: forall r. Transferable -> (Void# -> r) -> (Void# -> r) -> r
Transferable_DONT_KNOW = Transferable' "DONT_KNOW"

pattern Transferable_TRANSFERABLE :: Transferable
pattern $bTransferable_TRANSFERABLE :: Transferable
$mTransferable_TRANSFERABLE :: forall r. Transferable -> (Void# -> r) -> (Void# -> r) -> r
Transferable_TRANSFERABLE = Transferable' "TRANSFERABLE"

pattern Transferable_UNTRANSFERABLE :: Transferable
pattern $bTransferable_UNTRANSFERABLE :: Transferable
$mTransferable_UNTRANSFERABLE :: forall r. Transferable -> (Void# -> r) -> (Void# -> r) -> r
Transferable_UNTRANSFERABLE = Transferable' "UNTRANSFERABLE"

{-# COMPLETE
  Transferable_DONT_KNOW,
  Transferable_TRANSFERABLE,
  Transferable_UNTRANSFERABLE,
  Transferable'
  #-}