{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.GlobalAccelerator.Types.ByoipCidrState
( ByoipCidrState
( ..,
ByoipCidrState_ADVERTISING,
ByoipCidrState_DEPROVISIONED,
ByoipCidrState_FAILED_ADVERTISING,
ByoipCidrState_FAILED_DEPROVISION,
ByoipCidrState_FAILED_PROVISION,
ByoipCidrState_FAILED_WITHDRAW,
ByoipCidrState_PENDING_ADVERTISING,
ByoipCidrState_PENDING_DEPROVISIONING,
ByoipCidrState_PENDING_PROVISIONING,
ByoipCidrState_PENDING_WITHDRAWING,
ByoipCidrState_READY
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ByoipCidrState = ByoipCidrState'
{ ByoipCidrState -> Text
fromByoipCidrState ::
Data.Text
}
deriving stock
( Int -> ByoipCidrState -> ShowS
[ByoipCidrState] -> ShowS
ByoipCidrState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ByoipCidrState] -> ShowS
$cshowList :: [ByoipCidrState] -> ShowS
show :: ByoipCidrState -> String
$cshow :: ByoipCidrState -> String
showsPrec :: Int -> ByoipCidrState -> ShowS
$cshowsPrec :: Int -> ByoipCidrState -> ShowS
Prelude.Show,
ReadPrec [ByoipCidrState]
ReadPrec ByoipCidrState
Int -> ReadS ByoipCidrState
ReadS [ByoipCidrState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ByoipCidrState]
$creadListPrec :: ReadPrec [ByoipCidrState]
readPrec :: ReadPrec ByoipCidrState
$creadPrec :: ReadPrec ByoipCidrState
readList :: ReadS [ByoipCidrState]
$creadList :: ReadS [ByoipCidrState]
readsPrec :: Int -> ReadS ByoipCidrState
$creadsPrec :: Int -> ReadS ByoipCidrState
Prelude.Read,
ByoipCidrState -> ByoipCidrState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ByoipCidrState -> ByoipCidrState -> Bool
$c/= :: ByoipCidrState -> ByoipCidrState -> Bool
== :: ByoipCidrState -> ByoipCidrState -> Bool
$c== :: ByoipCidrState -> ByoipCidrState -> Bool
Prelude.Eq,
Eq ByoipCidrState
ByoipCidrState -> ByoipCidrState -> Bool
ByoipCidrState -> ByoipCidrState -> Ordering
ByoipCidrState -> ByoipCidrState -> ByoipCidrState
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 :: ByoipCidrState -> ByoipCidrState -> ByoipCidrState
$cmin :: ByoipCidrState -> ByoipCidrState -> ByoipCidrState
max :: ByoipCidrState -> ByoipCidrState -> ByoipCidrState
$cmax :: ByoipCidrState -> ByoipCidrState -> ByoipCidrState
>= :: ByoipCidrState -> ByoipCidrState -> Bool
$c>= :: ByoipCidrState -> ByoipCidrState -> Bool
> :: ByoipCidrState -> ByoipCidrState -> Bool
$c> :: ByoipCidrState -> ByoipCidrState -> Bool
<= :: ByoipCidrState -> ByoipCidrState -> Bool
$c<= :: ByoipCidrState -> ByoipCidrState -> Bool
< :: ByoipCidrState -> ByoipCidrState -> Bool
$c< :: ByoipCidrState -> ByoipCidrState -> Bool
compare :: ByoipCidrState -> ByoipCidrState -> Ordering
$ccompare :: ByoipCidrState -> ByoipCidrState -> Ordering
Prelude.Ord,
forall x. Rep ByoipCidrState x -> ByoipCidrState
forall x. ByoipCidrState -> Rep ByoipCidrState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ByoipCidrState x -> ByoipCidrState
$cfrom :: forall x. ByoipCidrState -> Rep ByoipCidrState x
Prelude.Generic
)
deriving newtype
( Eq ByoipCidrState
Int -> ByoipCidrState -> Int
ByoipCidrState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ByoipCidrState -> Int
$chash :: ByoipCidrState -> Int
hashWithSalt :: Int -> ByoipCidrState -> Int
$chashWithSalt :: Int -> ByoipCidrState -> Int
Prelude.Hashable,
ByoipCidrState -> ()
forall a. (a -> ()) -> NFData a
rnf :: ByoipCidrState -> ()
$crnf :: ByoipCidrState -> ()
Prelude.NFData,
Text -> Either String ByoipCidrState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ByoipCidrState
$cfromText :: Text -> Either String ByoipCidrState
Data.FromText,
ByoipCidrState -> Text
forall a. (a -> Text) -> ToText a
toText :: ByoipCidrState -> Text
$ctoText :: ByoipCidrState -> Text
Data.ToText,
ByoipCidrState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ByoipCidrState -> ByteString
$ctoBS :: ByoipCidrState -> ByteString
Data.ToByteString,
ByoipCidrState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ByoipCidrState -> ByteStringBuilder
$cbuild :: ByoipCidrState -> ByteStringBuilder
Data.ToLog,
HeaderName -> ByoipCidrState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ByoipCidrState -> [Header]
$ctoHeader :: HeaderName -> ByoipCidrState -> [Header]
Data.ToHeader,
ByoipCidrState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ByoipCidrState -> QueryString
$ctoQuery :: ByoipCidrState -> QueryString
Data.ToQuery,
Value -> Parser [ByoipCidrState]
Value -> Parser ByoipCidrState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ByoipCidrState]
$cparseJSONList :: Value -> Parser [ByoipCidrState]
parseJSON :: Value -> Parser ByoipCidrState
$cparseJSON :: Value -> Parser ByoipCidrState
Data.FromJSON,
FromJSONKeyFunction [ByoipCidrState]
FromJSONKeyFunction ByoipCidrState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ByoipCidrState]
$cfromJSONKeyList :: FromJSONKeyFunction [ByoipCidrState]
fromJSONKey :: FromJSONKeyFunction ByoipCidrState
$cfromJSONKey :: FromJSONKeyFunction ByoipCidrState
Data.FromJSONKey,
[ByoipCidrState] -> Encoding
[ByoipCidrState] -> Value
ByoipCidrState -> Encoding
ByoipCidrState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ByoipCidrState] -> Encoding
$ctoEncodingList :: [ByoipCidrState] -> Encoding
toJSONList :: [ByoipCidrState] -> Value
$ctoJSONList :: [ByoipCidrState] -> Value
toEncoding :: ByoipCidrState -> Encoding
$ctoEncoding :: ByoipCidrState -> Encoding
toJSON :: ByoipCidrState -> Value
$ctoJSON :: ByoipCidrState -> Value
Data.ToJSON,
ToJSONKeyFunction [ByoipCidrState]
ToJSONKeyFunction ByoipCidrState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ByoipCidrState]
$ctoJSONKeyList :: ToJSONKeyFunction [ByoipCidrState]
toJSONKey :: ToJSONKeyFunction ByoipCidrState
$ctoJSONKey :: ToJSONKeyFunction ByoipCidrState
Data.ToJSONKey,
[Node] -> Either String ByoipCidrState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ByoipCidrState
$cparseXML :: [Node] -> Either String ByoipCidrState
Data.FromXML,
ByoipCidrState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ByoipCidrState -> XML
$ctoXML :: ByoipCidrState -> XML
Data.ToXML
)
pattern ByoipCidrState_ADVERTISING :: ByoipCidrState
pattern $bByoipCidrState_ADVERTISING :: ByoipCidrState
$mByoipCidrState_ADVERTISING :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_ADVERTISING = ByoipCidrState' "ADVERTISING"
pattern ByoipCidrState_DEPROVISIONED :: ByoipCidrState
pattern $bByoipCidrState_DEPROVISIONED :: ByoipCidrState
$mByoipCidrState_DEPROVISIONED :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_DEPROVISIONED = ByoipCidrState' "DEPROVISIONED"
pattern ByoipCidrState_FAILED_ADVERTISING :: ByoipCidrState
pattern $bByoipCidrState_FAILED_ADVERTISING :: ByoipCidrState
$mByoipCidrState_FAILED_ADVERTISING :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_FAILED_ADVERTISING = ByoipCidrState' "FAILED_ADVERTISING"
pattern ByoipCidrState_FAILED_DEPROVISION :: ByoipCidrState
pattern $bByoipCidrState_FAILED_DEPROVISION :: ByoipCidrState
$mByoipCidrState_FAILED_DEPROVISION :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_FAILED_DEPROVISION = ByoipCidrState' "FAILED_DEPROVISION"
pattern ByoipCidrState_FAILED_PROVISION :: ByoipCidrState
pattern $bByoipCidrState_FAILED_PROVISION :: ByoipCidrState
$mByoipCidrState_FAILED_PROVISION :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_FAILED_PROVISION = ByoipCidrState' "FAILED_PROVISION"
pattern ByoipCidrState_FAILED_WITHDRAW :: ByoipCidrState
pattern $bByoipCidrState_FAILED_WITHDRAW :: ByoipCidrState
$mByoipCidrState_FAILED_WITHDRAW :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_FAILED_WITHDRAW = ByoipCidrState' "FAILED_WITHDRAW"
pattern ByoipCidrState_PENDING_ADVERTISING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_ADVERTISING :: ByoipCidrState
$mByoipCidrState_PENDING_ADVERTISING :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_PENDING_ADVERTISING = ByoipCidrState' "PENDING_ADVERTISING"
pattern ByoipCidrState_PENDING_DEPROVISIONING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_DEPROVISIONING :: ByoipCidrState
$mByoipCidrState_PENDING_DEPROVISIONING :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_PENDING_DEPROVISIONING = ByoipCidrState' "PENDING_DEPROVISIONING"
pattern ByoipCidrState_PENDING_PROVISIONING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_PROVISIONING :: ByoipCidrState
$mByoipCidrState_PENDING_PROVISIONING :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_PENDING_PROVISIONING = ByoipCidrState' "PENDING_PROVISIONING"
pattern ByoipCidrState_PENDING_WITHDRAWING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_WITHDRAWING :: ByoipCidrState
$mByoipCidrState_PENDING_WITHDRAWING :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_PENDING_WITHDRAWING = ByoipCidrState' "PENDING_WITHDRAWING"
pattern ByoipCidrState_READY :: ByoipCidrState
pattern $bByoipCidrState_READY :: ByoipCidrState
$mByoipCidrState_READY :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_READY = ByoipCidrState' "READY"
{-# COMPLETE
ByoipCidrState_ADVERTISING,
ByoipCidrState_DEPROVISIONED,
ByoipCidrState_FAILED_ADVERTISING,
ByoipCidrState_FAILED_DEPROVISION,
ByoipCidrState_FAILED_PROVISION,
ByoipCidrState_FAILED_WITHDRAW,
ByoipCidrState_PENDING_ADVERTISING,
ByoipCidrState_PENDING_DEPROVISIONING,
ByoipCidrState_PENDING_PROVISIONING,
ByoipCidrState_PENDING_WITHDRAWING,
ByoipCidrState_READY,
ByoipCidrState'
#-}