{-# 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.CoreNetworkState
-- 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.CoreNetworkState
  ( CoreNetworkState
      ( ..,
        CoreNetworkState_AVAILABLE,
        CoreNetworkState_CREATING,
        CoreNetworkState_DELETING,
        CoreNetworkState_UPDATING
      ),
  )
where

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

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

pattern CoreNetworkState_AVAILABLE :: CoreNetworkState
pattern $bCoreNetworkState_AVAILABLE :: CoreNetworkState
$mCoreNetworkState_AVAILABLE :: forall {r}. CoreNetworkState -> ((# #) -> r) -> ((# #) -> r) -> r
CoreNetworkState_AVAILABLE = CoreNetworkState' "AVAILABLE"

pattern CoreNetworkState_CREATING :: CoreNetworkState
pattern $bCoreNetworkState_CREATING :: CoreNetworkState
$mCoreNetworkState_CREATING :: forall {r}. CoreNetworkState -> ((# #) -> r) -> ((# #) -> r) -> r
CoreNetworkState_CREATING = CoreNetworkState' "CREATING"

pattern CoreNetworkState_DELETING :: CoreNetworkState
pattern $bCoreNetworkState_DELETING :: CoreNetworkState
$mCoreNetworkState_DELETING :: forall {r}. CoreNetworkState -> ((# #) -> r) -> ((# #) -> r) -> r
CoreNetworkState_DELETING = CoreNetworkState' "DELETING"

pattern CoreNetworkState_UPDATING :: CoreNetworkState
pattern $bCoreNetworkState_UPDATING :: CoreNetworkState
$mCoreNetworkState_UPDATING :: forall {r}. CoreNetworkState -> ((# #) -> r) -> ((# #) -> r) -> r
CoreNetworkState_UPDATING = CoreNetworkState' "UPDATING"

{-# COMPLETE
  CoreNetworkState_AVAILABLE,
  CoreNetworkState_CREATING,
  CoreNetworkState_DELETING,
  CoreNetworkState_UPDATING,
  CoreNetworkState'
  #-}