{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
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.Prelude as Prelude
import Amazonka.Route53.Internal
newtype RRType = RRType' {RRType -> Text
fromRRType :: Core.Text}
deriving stock
( Int -> RRType -> ShowS
[RRType] -> ShowS
RRType -> String
(Int -> RRType -> ShowS)
-> (RRType -> String) -> ([RRType] -> ShowS) -> Show RRType
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]
(Int -> ReadS RRType)
-> ReadS [RRType]
-> ReadPrec RRType
-> ReadPrec [RRType]
-> Read 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
(RRType -> RRType -> Bool)
-> (RRType -> RRType -> Bool) -> Eq RRType
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
Eq RRType
-> (RRType -> RRType -> Ordering)
-> (RRType -> RRType -> Bool)
-> (RRType -> RRType -> Bool)
-> (RRType -> RRType -> Bool)
-> (RRType -> RRType -> Bool)
-> (RRType -> RRType -> RRType)
-> (RRType -> RRType -> RRType)
-> Ord 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
$cp1Ord :: Eq RRType
Prelude.Ord,
(forall x. RRType -> Rep RRType x)
-> (forall x. Rep RRType x -> RRType) -> Generic RRType
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
( Int -> RRType -> Int
RRType -> Int
(Int -> RRType -> Int) -> (RRType -> Int) -> Hashable RRType
forall 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 -> ()
(RRType -> ()) -> NFData RRType
forall a. (a -> ()) -> NFData a
rnf :: RRType -> ()
$crnf :: RRType -> ()
Prelude.NFData,
Text -> Either String RRType
(Text -> Either String RRType) -> FromText RRType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RRType
$cfromText :: Text -> Either String RRType
Core.FromText,
RRType -> Text
(RRType -> Text) -> ToText RRType
forall a. (a -> Text) -> ToText a
toText :: RRType -> Text
$ctoText :: RRType -> Text
Core.ToText,
RRType -> ByteString
(RRType -> ByteString) -> ToByteString RRType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RRType -> ByteString
$ctoBS :: RRType -> ByteString
Core.ToByteString,
RRType -> ByteStringBuilder
(RRType -> ByteStringBuilder) -> ToLog RRType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RRType -> ByteStringBuilder
$cbuild :: RRType -> ByteStringBuilder
Core.ToLog,
HeaderName -> RRType -> [Header]
(HeaderName -> RRType -> [Header]) -> ToHeader RRType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RRType -> [Header]
$ctoHeader :: HeaderName -> RRType -> [Header]
Core.ToHeader,
RRType -> QueryString
(RRType -> QueryString) -> ToQuery RRType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RRType -> QueryString
$ctoQuery :: RRType -> QueryString
Core.ToQuery,
Value -> Parser [RRType]
Value -> Parser RRType
(Value -> Parser RRType)
-> (Value -> Parser [RRType]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [RRType]
FromJSONKeyFunction RRType
FromJSONKeyFunction RRType
-> FromJSONKeyFunction [RRType] -> FromJSONKey RRType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RRType]
$cfromJSONKeyList :: FromJSONKeyFunction [RRType]
fromJSONKey :: FromJSONKeyFunction RRType
$cfromJSONKey :: FromJSONKeyFunction RRType
Core.FromJSONKey,
[RRType] -> Encoding
[RRType] -> Value
RRType -> Encoding
RRType -> Value
(RRType -> Value)
-> (RRType -> Encoding)
-> ([RRType] -> Value)
-> ([RRType] -> Encoding)
-> ToJSON RRType
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
Core.ToJSON,
ToJSONKeyFunction [RRType]
ToJSONKeyFunction RRType
ToJSONKeyFunction RRType
-> ToJSONKeyFunction [RRType] -> ToJSONKey RRType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RRType]
$ctoJSONKeyList :: ToJSONKeyFunction [RRType]
toJSONKey :: ToJSONKeyFunction RRType
$ctoJSONKey :: ToJSONKeyFunction RRType
Core.ToJSONKey,
[Node] -> Either String RRType
([Node] -> Either String RRType) -> FromXML RRType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RRType
$cparseXML :: [Node] -> Either String RRType
Core.FromXML,
RRType -> XML
(RRType -> XML) -> ToXML RRType
forall a. (a -> XML) -> ToXML a
toXML :: RRType -> XML
$ctoXML :: RRType -> XML
Core.ToXML
)
pattern RRType_A :: RRType
pattern $bRRType_A :: RRType
$mRRType_A :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_A = RRType' "A"
pattern RRType_AAAA :: RRType
pattern $bRRType_AAAA :: RRType
$mRRType_AAAA :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_AAAA = RRType' "AAAA"
pattern RRType_CAA :: RRType
pattern $bRRType_CAA :: RRType
$mRRType_CAA :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_CAA = RRType' "CAA"
pattern RRType_CNAME :: RRType
pattern $bRRType_CNAME :: RRType
$mRRType_CNAME :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_CNAME = RRType' "CNAME"
pattern RRType_DS :: RRType
pattern $bRRType_DS :: RRType
$mRRType_DS :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_DS = RRType' "DS"
pattern RRType_MX :: RRType
pattern $bRRType_MX :: RRType
$mRRType_MX :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_MX = RRType' "MX"
pattern RRType_NAPTR :: RRType
pattern $bRRType_NAPTR :: RRType
$mRRType_NAPTR :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_NAPTR = RRType' "NAPTR"
pattern RRType_NS :: RRType
pattern $bRRType_NS :: RRType
$mRRType_NS :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_NS = RRType' "NS"
pattern RRType_PTR :: RRType
pattern $bRRType_PTR :: RRType
$mRRType_PTR :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_PTR = RRType' "PTR"
pattern RRType_SOA :: RRType
pattern $bRRType_SOA :: RRType
$mRRType_SOA :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_SOA = RRType' "SOA"
pattern RRType_SPF :: RRType
pattern $bRRType_SPF :: RRType
$mRRType_SPF :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_SPF = RRType' "SPF"
pattern RRType_SRV :: RRType
pattern $bRRType_SRV :: RRType
$mRRType_SRV :: forall r. RRType -> (Void# -> r) -> (Void# -> r) -> r
RRType_SRV = RRType' "SRV"
pattern RRType_TXT :: RRType
pattern $bRRType_TXT :: RRType
$mRRType_TXT :: forall r. RRType -> (Void# -> r) -> (Void# -> 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'
#-}