{-# 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.Route53AutoNaming.Types.NamespaceType
-- 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.Route53AutoNaming.Types.NamespaceType
  ( NamespaceType
      ( ..,
        NamespaceType_DNS_PRIVATE,
        NamespaceType_DNS_PUBLIC,
        NamespaceType_HTTP
      ),
  )
where

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

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

pattern NamespaceType_DNS_PRIVATE :: NamespaceType
pattern $bNamespaceType_DNS_PRIVATE :: NamespaceType
$mNamespaceType_DNS_PRIVATE :: forall r. NamespaceType -> (Void# -> r) -> (Void# -> r) -> r
NamespaceType_DNS_PRIVATE = NamespaceType' "DNS_PRIVATE"

pattern NamespaceType_DNS_PUBLIC :: NamespaceType
pattern $bNamespaceType_DNS_PUBLIC :: NamespaceType
$mNamespaceType_DNS_PUBLIC :: forall r. NamespaceType -> (Void# -> r) -> (Void# -> r) -> r
NamespaceType_DNS_PUBLIC = NamespaceType' "DNS_PUBLIC"

pattern NamespaceType_HTTP :: NamespaceType
pattern $bNamespaceType_HTTP :: NamespaceType
$mNamespaceType_HTTP :: forall r. NamespaceType -> (Void# -> r) -> (Void# -> r) -> r
NamespaceType_HTTP = NamespaceType' "HTTP"

{-# COMPLETE
  NamespaceType_DNS_PRIVATE,
  NamespaceType_DNS_PUBLIC,
  NamespaceType_HTTP,
  NamespaceType'
  #-}