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