{-# 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.VirtualInterfaceState
( VirtualInterfaceState
( ..,
VirtualInterfaceState_Available,
VirtualInterfaceState_Confirming,
VirtualInterfaceState_Deleted,
VirtualInterfaceState_Deleting,
VirtualInterfaceState_Down,
VirtualInterfaceState_Pending,
VirtualInterfaceState_Rejected,
VirtualInterfaceState_Unknown,
VirtualInterfaceState_Verifying
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype VirtualInterfaceState = VirtualInterfaceState'
{ VirtualInterfaceState -> Text
fromVirtualInterfaceState ::
Core.Text
}
deriving stock
( Int -> VirtualInterfaceState -> ShowS
[VirtualInterfaceState] -> ShowS
VirtualInterfaceState -> String
(Int -> VirtualInterfaceState -> ShowS)
-> (VirtualInterfaceState -> String)
-> ([VirtualInterfaceState] -> ShowS)
-> Show VirtualInterfaceState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VirtualInterfaceState] -> ShowS
$cshowList :: [VirtualInterfaceState] -> ShowS
show :: VirtualInterfaceState -> String
$cshow :: VirtualInterfaceState -> String
showsPrec :: Int -> VirtualInterfaceState -> ShowS
$cshowsPrec :: Int -> VirtualInterfaceState -> ShowS
Prelude.Show,
ReadPrec [VirtualInterfaceState]
ReadPrec VirtualInterfaceState
Int -> ReadS VirtualInterfaceState
ReadS [VirtualInterfaceState]
(Int -> ReadS VirtualInterfaceState)
-> ReadS [VirtualInterfaceState]
-> ReadPrec VirtualInterfaceState
-> ReadPrec [VirtualInterfaceState]
-> Read VirtualInterfaceState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VirtualInterfaceState]
$creadListPrec :: ReadPrec [VirtualInterfaceState]
readPrec :: ReadPrec VirtualInterfaceState
$creadPrec :: ReadPrec VirtualInterfaceState
readList :: ReadS [VirtualInterfaceState]
$creadList :: ReadS [VirtualInterfaceState]
readsPrec :: Int -> ReadS VirtualInterfaceState
$creadsPrec :: Int -> ReadS VirtualInterfaceState
Prelude.Read,
VirtualInterfaceState -> VirtualInterfaceState -> Bool
(VirtualInterfaceState -> VirtualInterfaceState -> Bool)
-> (VirtualInterfaceState -> VirtualInterfaceState -> Bool)
-> Eq VirtualInterfaceState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
$c/= :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
== :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
$c== :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
Prelude.Eq,
Eq VirtualInterfaceState
Eq VirtualInterfaceState
-> (VirtualInterfaceState -> VirtualInterfaceState -> Ordering)
-> (VirtualInterfaceState -> VirtualInterfaceState -> Bool)
-> (VirtualInterfaceState -> VirtualInterfaceState -> Bool)
-> (VirtualInterfaceState -> VirtualInterfaceState -> Bool)
-> (VirtualInterfaceState -> VirtualInterfaceState -> Bool)
-> (VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState)
-> (VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState)
-> Ord VirtualInterfaceState
VirtualInterfaceState -> VirtualInterfaceState -> Bool
VirtualInterfaceState -> VirtualInterfaceState -> Ordering
VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState
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 :: VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState
$cmin :: VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState
max :: VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState
$cmax :: VirtualInterfaceState
-> VirtualInterfaceState -> VirtualInterfaceState
>= :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
$c>= :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
> :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
$c> :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
<= :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
$c<= :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
< :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
$c< :: VirtualInterfaceState -> VirtualInterfaceState -> Bool
compare :: VirtualInterfaceState -> VirtualInterfaceState -> Ordering
$ccompare :: VirtualInterfaceState -> VirtualInterfaceState -> Ordering
$cp1Ord :: Eq VirtualInterfaceState
Prelude.Ord,
(forall x. VirtualInterfaceState -> Rep VirtualInterfaceState x)
-> (forall x. Rep VirtualInterfaceState x -> VirtualInterfaceState)
-> Generic VirtualInterfaceState
forall x. Rep VirtualInterfaceState x -> VirtualInterfaceState
forall x. VirtualInterfaceState -> Rep VirtualInterfaceState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VirtualInterfaceState x -> VirtualInterfaceState
$cfrom :: forall x. VirtualInterfaceState -> Rep VirtualInterfaceState x
Prelude.Generic
)
deriving newtype
( Int -> VirtualInterfaceState -> Int
VirtualInterfaceState -> Int
(Int -> VirtualInterfaceState -> Int)
-> (VirtualInterfaceState -> Int) -> Hashable VirtualInterfaceState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VirtualInterfaceState -> Int
$chash :: VirtualInterfaceState -> Int
hashWithSalt :: Int -> VirtualInterfaceState -> Int
$chashWithSalt :: Int -> VirtualInterfaceState -> Int
Prelude.Hashable,
VirtualInterfaceState -> ()
(VirtualInterfaceState -> ()) -> NFData VirtualInterfaceState
forall a. (a -> ()) -> NFData a
rnf :: VirtualInterfaceState -> ()
$crnf :: VirtualInterfaceState -> ()
Prelude.NFData,
Text -> Either String VirtualInterfaceState
(Text -> Either String VirtualInterfaceState)
-> FromText VirtualInterfaceState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VirtualInterfaceState
$cfromText :: Text -> Either String VirtualInterfaceState
Core.FromText,
VirtualInterfaceState -> Text
(VirtualInterfaceState -> Text) -> ToText VirtualInterfaceState
forall a. (a -> Text) -> ToText a
toText :: VirtualInterfaceState -> Text
$ctoText :: VirtualInterfaceState -> Text
Core.ToText,
VirtualInterfaceState -> ByteString
(VirtualInterfaceState -> ByteString)
-> ToByteString VirtualInterfaceState
forall a. (a -> ByteString) -> ToByteString a
toBS :: VirtualInterfaceState -> ByteString
$ctoBS :: VirtualInterfaceState -> ByteString
Core.ToByteString,
VirtualInterfaceState -> ByteStringBuilder
(VirtualInterfaceState -> ByteStringBuilder)
-> ToLog VirtualInterfaceState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VirtualInterfaceState -> ByteStringBuilder
$cbuild :: VirtualInterfaceState -> ByteStringBuilder
Core.ToLog,
HeaderName -> VirtualInterfaceState -> [Header]
(HeaderName -> VirtualInterfaceState -> [Header])
-> ToHeader VirtualInterfaceState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VirtualInterfaceState -> [Header]
$ctoHeader :: HeaderName -> VirtualInterfaceState -> [Header]
Core.ToHeader,
VirtualInterfaceState -> QueryString
(VirtualInterfaceState -> QueryString)
-> ToQuery VirtualInterfaceState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VirtualInterfaceState -> QueryString
$ctoQuery :: VirtualInterfaceState -> QueryString
Core.ToQuery,
Value -> Parser [VirtualInterfaceState]
Value -> Parser VirtualInterfaceState
(Value -> Parser VirtualInterfaceState)
-> (Value -> Parser [VirtualInterfaceState])
-> FromJSON VirtualInterfaceState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VirtualInterfaceState]
$cparseJSONList :: Value -> Parser [VirtualInterfaceState]
parseJSON :: Value -> Parser VirtualInterfaceState
$cparseJSON :: Value -> Parser VirtualInterfaceState
Core.FromJSON,
FromJSONKeyFunction [VirtualInterfaceState]
FromJSONKeyFunction VirtualInterfaceState
FromJSONKeyFunction VirtualInterfaceState
-> FromJSONKeyFunction [VirtualInterfaceState]
-> FromJSONKey VirtualInterfaceState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VirtualInterfaceState]
$cfromJSONKeyList :: FromJSONKeyFunction [VirtualInterfaceState]
fromJSONKey :: FromJSONKeyFunction VirtualInterfaceState
$cfromJSONKey :: FromJSONKeyFunction VirtualInterfaceState
Core.FromJSONKey,
[VirtualInterfaceState] -> Encoding
[VirtualInterfaceState] -> Value
VirtualInterfaceState -> Encoding
VirtualInterfaceState -> Value
(VirtualInterfaceState -> Value)
-> (VirtualInterfaceState -> Encoding)
-> ([VirtualInterfaceState] -> Value)
-> ([VirtualInterfaceState] -> Encoding)
-> ToJSON VirtualInterfaceState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VirtualInterfaceState] -> Encoding
$ctoEncodingList :: [VirtualInterfaceState] -> Encoding
toJSONList :: [VirtualInterfaceState] -> Value
$ctoJSONList :: [VirtualInterfaceState] -> Value
toEncoding :: VirtualInterfaceState -> Encoding
$ctoEncoding :: VirtualInterfaceState -> Encoding
toJSON :: VirtualInterfaceState -> Value
$ctoJSON :: VirtualInterfaceState -> Value
Core.ToJSON,
ToJSONKeyFunction [VirtualInterfaceState]
ToJSONKeyFunction VirtualInterfaceState
ToJSONKeyFunction VirtualInterfaceState
-> ToJSONKeyFunction [VirtualInterfaceState]
-> ToJSONKey VirtualInterfaceState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VirtualInterfaceState]
$ctoJSONKeyList :: ToJSONKeyFunction [VirtualInterfaceState]
toJSONKey :: ToJSONKeyFunction VirtualInterfaceState
$ctoJSONKey :: ToJSONKeyFunction VirtualInterfaceState
Core.ToJSONKey,
[Node] -> Either String VirtualInterfaceState
([Node] -> Either String VirtualInterfaceState)
-> FromXML VirtualInterfaceState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VirtualInterfaceState
$cparseXML :: [Node] -> Either String VirtualInterfaceState
Core.FromXML,
VirtualInterfaceState -> XML
(VirtualInterfaceState -> XML) -> ToXML VirtualInterfaceState
forall a. (a -> XML) -> ToXML a
toXML :: VirtualInterfaceState -> XML
$ctoXML :: VirtualInterfaceState -> XML
Core.ToXML
)
pattern VirtualInterfaceState_Available :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Available :: VirtualInterfaceState
$mVirtualInterfaceState_Available :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Available = VirtualInterfaceState' "available"
pattern VirtualInterfaceState_Confirming :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Confirming :: VirtualInterfaceState
$mVirtualInterfaceState_Confirming :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Confirming = VirtualInterfaceState' "confirming"
pattern VirtualInterfaceState_Deleted :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Deleted :: VirtualInterfaceState
$mVirtualInterfaceState_Deleted :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Deleted = VirtualInterfaceState' "deleted"
pattern VirtualInterfaceState_Deleting :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Deleting :: VirtualInterfaceState
$mVirtualInterfaceState_Deleting :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Deleting = VirtualInterfaceState' "deleting"
pattern VirtualInterfaceState_Down :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Down :: VirtualInterfaceState
$mVirtualInterfaceState_Down :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Down = VirtualInterfaceState' "down"
pattern VirtualInterfaceState_Pending :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Pending :: VirtualInterfaceState
$mVirtualInterfaceState_Pending :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Pending = VirtualInterfaceState' "pending"
pattern VirtualInterfaceState_Rejected :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Rejected :: VirtualInterfaceState
$mVirtualInterfaceState_Rejected :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Rejected = VirtualInterfaceState' "rejected"
pattern VirtualInterfaceState_Unknown :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Unknown :: VirtualInterfaceState
$mVirtualInterfaceState_Unknown :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Unknown = VirtualInterfaceState' "unknown"
pattern VirtualInterfaceState_Verifying :: VirtualInterfaceState
pattern $bVirtualInterfaceState_Verifying :: VirtualInterfaceState
$mVirtualInterfaceState_Verifying :: forall r.
VirtualInterfaceState -> (Void# -> r) -> (Void# -> r) -> r
VirtualInterfaceState_Verifying = VirtualInterfaceState' "verifying"
{-# COMPLETE
VirtualInterfaceState_Available,
VirtualInterfaceState_Confirming,
VirtualInterfaceState_Deleted,
VirtualInterfaceState_Deleting,
VirtualInterfaceState_Down,
VirtualInterfaceState_Pending,
VirtualInterfaceState_Rejected,
VirtualInterfaceState_Unknown,
VirtualInterfaceState_Verifying,
VirtualInterfaceState'
#-}