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