{-# 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.WorkSpaces.Types.ModificationStateEnum
-- 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.WorkSpaces.Types.ModificationStateEnum
  ( ModificationStateEnum
      ( ..,
        ModificationStateEnum_UPDATE_INITIATED,
        ModificationStateEnum_UPDATE_IN_PROGRESS
      ),
  )
where

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

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

pattern ModificationStateEnum_UPDATE_INITIATED :: ModificationStateEnum
pattern $bModificationStateEnum_UPDATE_INITIATED :: ModificationStateEnum
$mModificationStateEnum_UPDATE_INITIATED :: forall r.
ModificationStateEnum -> (Void# -> r) -> (Void# -> r) -> r
ModificationStateEnum_UPDATE_INITIATED = ModificationStateEnum' "UPDATE_INITIATED"

pattern ModificationStateEnum_UPDATE_IN_PROGRESS :: ModificationStateEnum
pattern $bModificationStateEnum_UPDATE_IN_PROGRESS :: ModificationStateEnum
$mModificationStateEnum_UPDATE_IN_PROGRESS :: forall r.
ModificationStateEnum -> (Void# -> r) -> (Void# -> r) -> r
ModificationStateEnum_UPDATE_IN_PROGRESS = ModificationStateEnum' "UPDATE_IN_PROGRESS"

{-# COMPLETE
  ModificationStateEnum_UPDATE_INITIATED,
  ModificationStateEnum_UPDATE_IN_PROGRESS,
  ModificationStateEnum'
  #-}