{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.NetworkManager.Types.LinkState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.NetworkManager.Types.LinkState
  ( LinkState
      ( ..,
        LinkState_AVAILABLE,
        LinkState_DELETING,
        LinkState_PENDING,
        LinkState_UPDATING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern LinkState_AVAILABLE :: LinkState
pattern $bLinkState_AVAILABLE :: LinkState
$mLinkState_AVAILABLE :: forall {r}. LinkState -> ((# #) -> r) -> ((# #) -> r) -> r
LinkState_AVAILABLE = LinkState' "AVAILABLE"

pattern LinkState_DELETING :: LinkState
pattern $bLinkState_DELETING :: LinkState
$mLinkState_DELETING :: forall {r}. LinkState -> ((# #) -> r) -> ((# #) -> r) -> r
LinkState_DELETING = LinkState' "DELETING"

pattern LinkState_PENDING :: LinkState
pattern $bLinkState_PENDING :: LinkState
$mLinkState_PENDING :: forall {r}. LinkState -> ((# #) -> r) -> ((# #) -> r) -> r
LinkState_PENDING = LinkState' "PENDING"

pattern LinkState_UPDATING :: LinkState
pattern $bLinkState_UPDATING :: LinkState
$mLinkState_UPDATING :: forall {r}. LinkState -> ((# #) -> r) -> ((# #) -> r) -> r
LinkState_UPDATING = LinkState' "UPDATING"

{-# COMPLETE
  LinkState_AVAILABLE,
  LinkState_DELETING,
  LinkState_PENDING,
  LinkState_UPDATING,
  LinkState'
  #-}