{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Route53Resolver.Types.RuleTypeOption
( RuleTypeOption
( ..,
RuleTypeOption_FORWARD,
RuleTypeOption_RECURSIVE,
RuleTypeOption_SYSTEM
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RuleTypeOption = RuleTypeOption'
{ RuleTypeOption -> Text
fromRuleTypeOption ::
Core.Text
}
deriving stock
( Int -> RuleTypeOption -> ShowS
[RuleTypeOption] -> ShowS
RuleTypeOption -> String
(Int -> RuleTypeOption -> ShowS)
-> (RuleTypeOption -> String)
-> ([RuleTypeOption] -> ShowS)
-> Show RuleTypeOption
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RuleTypeOption] -> ShowS
$cshowList :: [RuleTypeOption] -> ShowS
show :: RuleTypeOption -> String
$cshow :: RuleTypeOption -> String
showsPrec :: Int -> RuleTypeOption -> ShowS
$cshowsPrec :: Int -> RuleTypeOption -> ShowS
Prelude.Show,
ReadPrec [RuleTypeOption]
ReadPrec RuleTypeOption
Int -> ReadS RuleTypeOption
ReadS [RuleTypeOption]
(Int -> ReadS RuleTypeOption)
-> ReadS [RuleTypeOption]
-> ReadPrec RuleTypeOption
-> ReadPrec [RuleTypeOption]
-> Read RuleTypeOption
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RuleTypeOption]
$creadListPrec :: ReadPrec [RuleTypeOption]
readPrec :: ReadPrec RuleTypeOption
$creadPrec :: ReadPrec RuleTypeOption
readList :: ReadS [RuleTypeOption]
$creadList :: ReadS [RuleTypeOption]
readsPrec :: Int -> ReadS RuleTypeOption
$creadsPrec :: Int -> ReadS RuleTypeOption
Prelude.Read,
RuleTypeOption -> RuleTypeOption -> Bool
(RuleTypeOption -> RuleTypeOption -> Bool)
-> (RuleTypeOption -> RuleTypeOption -> Bool) -> Eq RuleTypeOption
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RuleTypeOption -> RuleTypeOption -> Bool
$c/= :: RuleTypeOption -> RuleTypeOption -> Bool
== :: RuleTypeOption -> RuleTypeOption -> Bool
$c== :: RuleTypeOption -> RuleTypeOption -> Bool
Prelude.Eq,
Eq RuleTypeOption
Eq RuleTypeOption
-> (RuleTypeOption -> RuleTypeOption -> Ordering)
-> (RuleTypeOption -> RuleTypeOption -> Bool)
-> (RuleTypeOption -> RuleTypeOption -> Bool)
-> (RuleTypeOption -> RuleTypeOption -> Bool)
-> (RuleTypeOption -> RuleTypeOption -> Bool)
-> (RuleTypeOption -> RuleTypeOption -> RuleTypeOption)
-> (RuleTypeOption -> RuleTypeOption -> RuleTypeOption)
-> Ord RuleTypeOption
RuleTypeOption -> RuleTypeOption -> Bool
RuleTypeOption -> RuleTypeOption -> Ordering
RuleTypeOption -> RuleTypeOption -> RuleTypeOption
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 :: RuleTypeOption -> RuleTypeOption -> RuleTypeOption
$cmin :: RuleTypeOption -> RuleTypeOption -> RuleTypeOption
max :: RuleTypeOption -> RuleTypeOption -> RuleTypeOption
$cmax :: RuleTypeOption -> RuleTypeOption -> RuleTypeOption
>= :: RuleTypeOption -> RuleTypeOption -> Bool
$c>= :: RuleTypeOption -> RuleTypeOption -> Bool
> :: RuleTypeOption -> RuleTypeOption -> Bool
$c> :: RuleTypeOption -> RuleTypeOption -> Bool
<= :: RuleTypeOption -> RuleTypeOption -> Bool
$c<= :: RuleTypeOption -> RuleTypeOption -> Bool
< :: RuleTypeOption -> RuleTypeOption -> Bool
$c< :: RuleTypeOption -> RuleTypeOption -> Bool
compare :: RuleTypeOption -> RuleTypeOption -> Ordering
$ccompare :: RuleTypeOption -> RuleTypeOption -> Ordering
$cp1Ord :: Eq RuleTypeOption
Prelude.Ord,
(forall x. RuleTypeOption -> Rep RuleTypeOption x)
-> (forall x. Rep RuleTypeOption x -> RuleTypeOption)
-> Generic RuleTypeOption
forall x. Rep RuleTypeOption x -> RuleTypeOption
forall x. RuleTypeOption -> Rep RuleTypeOption x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RuleTypeOption x -> RuleTypeOption
$cfrom :: forall x. RuleTypeOption -> Rep RuleTypeOption x
Prelude.Generic
)
deriving newtype
( Int -> RuleTypeOption -> Int
RuleTypeOption -> Int
(Int -> RuleTypeOption -> Int)
-> (RuleTypeOption -> Int) -> Hashable RuleTypeOption
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RuleTypeOption -> Int
$chash :: RuleTypeOption -> Int
hashWithSalt :: Int -> RuleTypeOption -> Int
$chashWithSalt :: Int -> RuleTypeOption -> Int
Prelude.Hashable,
RuleTypeOption -> ()
(RuleTypeOption -> ()) -> NFData RuleTypeOption
forall a. (a -> ()) -> NFData a
rnf :: RuleTypeOption -> ()
$crnf :: RuleTypeOption -> ()
Prelude.NFData,
Text -> Either String RuleTypeOption
(Text -> Either String RuleTypeOption) -> FromText RuleTypeOption
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RuleTypeOption
$cfromText :: Text -> Either String RuleTypeOption
Core.FromText,
RuleTypeOption -> Text
(RuleTypeOption -> Text) -> ToText RuleTypeOption
forall a. (a -> Text) -> ToText a
toText :: RuleTypeOption -> Text
$ctoText :: RuleTypeOption -> Text
Core.ToText,
RuleTypeOption -> ByteString
(RuleTypeOption -> ByteString) -> ToByteString RuleTypeOption
forall a. (a -> ByteString) -> ToByteString a
toBS :: RuleTypeOption -> ByteString
$ctoBS :: RuleTypeOption -> ByteString
Core.ToByteString,
RuleTypeOption -> ByteStringBuilder
(RuleTypeOption -> ByteStringBuilder) -> ToLog RuleTypeOption
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RuleTypeOption -> ByteStringBuilder
$cbuild :: RuleTypeOption -> ByteStringBuilder
Core.ToLog,
HeaderName -> RuleTypeOption -> [Header]
(HeaderName -> RuleTypeOption -> [Header])
-> ToHeader RuleTypeOption
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RuleTypeOption -> [Header]
$ctoHeader :: HeaderName -> RuleTypeOption -> [Header]
Core.ToHeader,
RuleTypeOption -> QueryString
(RuleTypeOption -> QueryString) -> ToQuery RuleTypeOption
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RuleTypeOption -> QueryString
$ctoQuery :: RuleTypeOption -> QueryString
Core.ToQuery,
Value -> Parser [RuleTypeOption]
Value -> Parser RuleTypeOption
(Value -> Parser RuleTypeOption)
-> (Value -> Parser [RuleTypeOption]) -> FromJSON RuleTypeOption
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RuleTypeOption]
$cparseJSONList :: Value -> Parser [RuleTypeOption]
parseJSON :: Value -> Parser RuleTypeOption
$cparseJSON :: Value -> Parser RuleTypeOption
Core.FromJSON,
FromJSONKeyFunction [RuleTypeOption]
FromJSONKeyFunction RuleTypeOption
FromJSONKeyFunction RuleTypeOption
-> FromJSONKeyFunction [RuleTypeOption]
-> FromJSONKey RuleTypeOption
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RuleTypeOption]
$cfromJSONKeyList :: FromJSONKeyFunction [RuleTypeOption]
fromJSONKey :: FromJSONKeyFunction RuleTypeOption
$cfromJSONKey :: FromJSONKeyFunction RuleTypeOption
Core.FromJSONKey,
[RuleTypeOption] -> Encoding
[RuleTypeOption] -> Value
RuleTypeOption -> Encoding
RuleTypeOption -> Value
(RuleTypeOption -> Value)
-> (RuleTypeOption -> Encoding)
-> ([RuleTypeOption] -> Value)
-> ([RuleTypeOption] -> Encoding)
-> ToJSON RuleTypeOption
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RuleTypeOption] -> Encoding
$ctoEncodingList :: [RuleTypeOption] -> Encoding
toJSONList :: [RuleTypeOption] -> Value
$ctoJSONList :: [RuleTypeOption] -> Value
toEncoding :: RuleTypeOption -> Encoding
$ctoEncoding :: RuleTypeOption -> Encoding
toJSON :: RuleTypeOption -> Value
$ctoJSON :: RuleTypeOption -> Value
Core.ToJSON,
ToJSONKeyFunction [RuleTypeOption]
ToJSONKeyFunction RuleTypeOption
ToJSONKeyFunction RuleTypeOption
-> ToJSONKeyFunction [RuleTypeOption] -> ToJSONKey RuleTypeOption
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RuleTypeOption]
$ctoJSONKeyList :: ToJSONKeyFunction [RuleTypeOption]
toJSONKey :: ToJSONKeyFunction RuleTypeOption
$ctoJSONKey :: ToJSONKeyFunction RuleTypeOption
Core.ToJSONKey,
[Node] -> Either String RuleTypeOption
([Node] -> Either String RuleTypeOption) -> FromXML RuleTypeOption
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RuleTypeOption
$cparseXML :: [Node] -> Either String RuleTypeOption
Core.FromXML,
RuleTypeOption -> XML
(RuleTypeOption -> XML) -> ToXML RuleTypeOption
forall a. (a -> XML) -> ToXML a
toXML :: RuleTypeOption -> XML
$ctoXML :: RuleTypeOption -> XML
Core.ToXML
)
pattern RuleTypeOption_FORWARD :: RuleTypeOption
pattern $bRuleTypeOption_FORWARD :: RuleTypeOption
$mRuleTypeOption_FORWARD :: forall r. RuleTypeOption -> (Void# -> r) -> (Void# -> r) -> r
RuleTypeOption_FORWARD = RuleTypeOption' "FORWARD"
pattern RuleTypeOption_RECURSIVE :: RuleTypeOption
pattern $bRuleTypeOption_RECURSIVE :: RuleTypeOption
$mRuleTypeOption_RECURSIVE :: forall r. RuleTypeOption -> (Void# -> r) -> (Void# -> r) -> r
RuleTypeOption_RECURSIVE = RuleTypeOption' "RECURSIVE"
pattern RuleTypeOption_SYSTEM :: RuleTypeOption
pattern $bRuleTypeOption_SYSTEM :: RuleTypeOption
$mRuleTypeOption_SYSTEM :: forall r. RuleTypeOption -> (Void# -> r) -> (Void# -> r) -> r
RuleTypeOption_SYSTEM = RuleTypeOption' "SYSTEM"
{-# COMPLETE
RuleTypeOption_FORWARD,
RuleTypeOption_RECURSIVE,
RuleTypeOption_SYSTEM,
RuleTypeOption'
#-}