{-# 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.Outposts.Types.ComputeAssetState
-- 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.Outposts.Types.ComputeAssetState
  ( ComputeAssetState
      ( ..,
        ComputeAssetState_ACTIVE,
        ComputeAssetState_ISOLATED,
        ComputeAssetState_RETIRING
      ),
  )
where

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

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

pattern ComputeAssetState_ACTIVE :: ComputeAssetState
pattern $bComputeAssetState_ACTIVE :: ComputeAssetState
$mComputeAssetState_ACTIVE :: forall {r}. ComputeAssetState -> ((# #) -> r) -> ((# #) -> r) -> r
ComputeAssetState_ACTIVE = ComputeAssetState' "ACTIVE"

pattern ComputeAssetState_ISOLATED :: ComputeAssetState
pattern $bComputeAssetState_ISOLATED :: ComputeAssetState
$mComputeAssetState_ISOLATED :: forall {r}. ComputeAssetState -> ((# #) -> r) -> ((# #) -> r) -> r
ComputeAssetState_ISOLATED = ComputeAssetState' "ISOLATED"

pattern ComputeAssetState_RETIRING :: ComputeAssetState
pattern $bComputeAssetState_RETIRING :: ComputeAssetState
$mComputeAssetState_RETIRING :: forall {r}. ComputeAssetState -> ((# #) -> r) -> ((# #) -> r) -> r
ComputeAssetState_RETIRING = ComputeAssetState' "RETIRING"

{-# COMPLETE
  ComputeAssetState_ACTIVE,
  ComputeAssetState_ISOLATED,
  ComputeAssetState_RETIRING,
  ComputeAssetState'
  #-}