{-# 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.Panorama.Types.DesiredState
-- 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.Panorama.Types.DesiredState
  ( DesiredState
      ( ..,
        DesiredState_REMOVED,
        DesiredState_RUNNING,
        DesiredState_STOPPED
      ),
  )
where

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

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

pattern DesiredState_REMOVED :: DesiredState
pattern $bDesiredState_REMOVED :: DesiredState
$mDesiredState_REMOVED :: forall {r}. DesiredState -> ((# #) -> r) -> ((# #) -> r) -> r
DesiredState_REMOVED = DesiredState' "REMOVED"

pattern DesiredState_RUNNING :: DesiredState
pattern $bDesiredState_RUNNING :: DesiredState
$mDesiredState_RUNNING :: forall {r}. DesiredState -> ((# #) -> r) -> ((# #) -> r) -> r
DesiredState_RUNNING = DesiredState' "RUNNING"

pattern DesiredState_STOPPED :: DesiredState
pattern $bDesiredState_STOPPED :: DesiredState
$mDesiredState_STOPPED :: forall {r}. DesiredState -> ((# #) -> r) -> ((# #) -> r) -> r
DesiredState_STOPPED = DesiredState' "STOPPED"

{-# COMPLETE
  DesiredState_REMOVED,
  DesiredState_RUNNING,
  DesiredState_STOPPED,
  DesiredState'
  #-}