{-# 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.Route53.Types.RRType
-- 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.Route53.Types.RRType
  ( RRType
      ( ..,
        RRType_A,
        RRType_AAAA,
        RRType_CAA,
        RRType_CNAME,
        RRType_DS,
        RRType_MX,
        RRType_NAPTR,
        RRType_NS,
        RRType_PTR,
        RRType_SOA,
        RRType_SPF,
        RRType_SRV,
        RRType_TXT
      ),
  )
where

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

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

pattern RRType_A :: RRType
pattern $bRRType_A :: RRType
$mRRType_A :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_A = RRType' "A"

pattern RRType_AAAA :: RRType
pattern $bRRType_AAAA :: RRType
$mRRType_AAAA :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_AAAA = RRType' "AAAA"

pattern RRType_CAA :: RRType
pattern $bRRType_CAA :: RRType
$mRRType_CAA :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_CAA = RRType' "CAA"

pattern RRType_CNAME :: RRType
pattern $bRRType_CNAME :: RRType
$mRRType_CNAME :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_CNAME = RRType' "CNAME"

pattern RRType_DS :: RRType
pattern $bRRType_DS :: RRType
$mRRType_DS :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_DS = RRType' "DS"

pattern RRType_MX :: RRType
pattern $bRRType_MX :: RRType
$mRRType_MX :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_MX = RRType' "MX"

pattern RRType_NAPTR :: RRType
pattern $bRRType_NAPTR :: RRType
$mRRType_NAPTR :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_NAPTR = RRType' "NAPTR"

pattern RRType_NS :: RRType
pattern $bRRType_NS :: RRType
$mRRType_NS :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_NS = RRType' "NS"

pattern RRType_PTR :: RRType
pattern $bRRType_PTR :: RRType
$mRRType_PTR :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_PTR = RRType' "PTR"

pattern RRType_SOA :: RRType
pattern $bRRType_SOA :: RRType
$mRRType_SOA :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_SOA = RRType' "SOA"

pattern RRType_SPF :: RRType
pattern $bRRType_SPF :: RRType
$mRRType_SPF :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_SPF = RRType' "SPF"

pattern RRType_SRV :: RRType
pattern $bRRType_SRV :: RRType
$mRRType_SRV :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_SRV = RRType' "SRV"

pattern RRType_TXT :: RRType
pattern $bRRType_TXT :: RRType
$mRRType_TXT :: forall {r}. RRType -> ((# #) -> r) -> ((# #) -> r) -> r
RRType_TXT = RRType' "TXT"

{-# COMPLETE
  RRType_A,
  RRType_AAAA,
  RRType_CAA,
  RRType_CNAME,
  RRType_DS,
  RRType_MX,
  RRType_NAPTR,
  RRType_NS,
  RRType_PTR,
  RRType_SOA,
  RRType_SPF,
  RRType_SRV,
  RRType_TXT,
  RRType'
  #-}