{-# 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.SiteState
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.NetworkManager.Types.SiteState
  ( SiteState
      ( ..,
        SiteState_AVAILABLE,
        SiteState_DELETING,
        SiteState_PENDING,
        SiteState_UPDATING
      ),
  )
where

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

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

pattern SiteState_AVAILABLE :: SiteState
pattern $bSiteState_AVAILABLE :: SiteState
$mSiteState_AVAILABLE :: forall r. SiteState -> (Void# -> r) -> (Void# -> r) -> r
SiteState_AVAILABLE = SiteState' "AVAILABLE"

pattern SiteState_DELETING :: SiteState
pattern $bSiteState_DELETING :: SiteState
$mSiteState_DELETING :: forall r. SiteState -> (Void# -> r) -> (Void# -> r) -> r
SiteState_DELETING = SiteState' "DELETING"

pattern SiteState_PENDING :: SiteState
pattern $bSiteState_PENDING :: SiteState
$mSiteState_PENDING :: forall r. SiteState -> (Void# -> r) -> (Void# -> r) -> r
SiteState_PENDING = SiteState' "PENDING"

pattern SiteState_UPDATING :: SiteState
pattern $bSiteState_UPDATING :: SiteState
$mSiteState_UPDATING :: forall r. SiteState -> (Void# -> r) -> (Void# -> r) -> r
SiteState_UPDATING = SiteState' "UPDATING"

{-# COMPLETE
  SiteState_AVAILABLE,
  SiteState_DELETING,
  SiteState_PENDING,
  SiteState_UPDATING,
  SiteState'
  #-}