{-# 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.PrivateNetworks.Types.NetworkSiteStatus
-- 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.PrivateNetworks.Types.NetworkSiteStatus
  ( NetworkSiteStatus
      ( ..,
        NetworkSiteStatus_AVAILABLE,
        NetworkSiteStatus_CREATED,
        NetworkSiteStatus_DELETED,
        NetworkSiteStatus_DEPROVISIONING,
        NetworkSiteStatus_PROVISIONING
      ),
  )
where

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

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

pattern NetworkSiteStatus_AVAILABLE :: NetworkSiteStatus
pattern $bNetworkSiteStatus_AVAILABLE :: NetworkSiteStatus
$mNetworkSiteStatus_AVAILABLE :: forall {r}. NetworkSiteStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkSiteStatus_AVAILABLE = NetworkSiteStatus' "AVAILABLE"

pattern NetworkSiteStatus_CREATED :: NetworkSiteStatus
pattern $bNetworkSiteStatus_CREATED :: NetworkSiteStatus
$mNetworkSiteStatus_CREATED :: forall {r}. NetworkSiteStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkSiteStatus_CREATED = NetworkSiteStatus' "CREATED"

pattern NetworkSiteStatus_DELETED :: NetworkSiteStatus
pattern $bNetworkSiteStatus_DELETED :: NetworkSiteStatus
$mNetworkSiteStatus_DELETED :: forall {r}. NetworkSiteStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkSiteStatus_DELETED = NetworkSiteStatus' "DELETED"

pattern NetworkSiteStatus_DEPROVISIONING :: NetworkSiteStatus
pattern $bNetworkSiteStatus_DEPROVISIONING :: NetworkSiteStatus
$mNetworkSiteStatus_DEPROVISIONING :: forall {r}. NetworkSiteStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkSiteStatus_DEPROVISIONING = NetworkSiteStatus' "DEPROVISIONING"

pattern NetworkSiteStatus_PROVISIONING :: NetworkSiteStatus
pattern $bNetworkSiteStatus_PROVISIONING :: NetworkSiteStatus
$mNetworkSiteStatus_PROVISIONING :: forall {r}. NetworkSiteStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkSiteStatus_PROVISIONING = NetworkSiteStatus' "PROVISIONING"

{-# COMPLETE
  NetworkSiteStatus_AVAILABLE,
  NetworkSiteStatus_CREATED,
  NetworkSiteStatus_DELETED,
  NetworkSiteStatus_DEPROVISIONING,
  NetworkSiteStatus_PROVISIONING,
  NetworkSiteStatus'
  #-}