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