{-# 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.WorkspaceImageState
-- 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.WorkspaceImageState
  ( WorkspaceImageState
      ( ..,
        WorkspaceImageState_AVAILABLE,
        WorkspaceImageState_ERROR,
        WorkspaceImageState_PENDING
      ),
  )
where

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

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

pattern WorkspaceImageState_AVAILABLE :: WorkspaceImageState
pattern $bWorkspaceImageState_AVAILABLE :: WorkspaceImageState
$mWorkspaceImageState_AVAILABLE :: forall r. WorkspaceImageState -> (Void# -> r) -> (Void# -> r) -> r
WorkspaceImageState_AVAILABLE = WorkspaceImageState' "AVAILABLE"

pattern WorkspaceImageState_ERROR :: WorkspaceImageState
pattern $bWorkspaceImageState_ERROR :: WorkspaceImageState
$mWorkspaceImageState_ERROR :: forall r. WorkspaceImageState -> (Void# -> r) -> (Void# -> r) -> r
WorkspaceImageState_ERROR = WorkspaceImageState' "ERROR"

pattern WorkspaceImageState_PENDING :: WorkspaceImageState
pattern $bWorkspaceImageState_PENDING :: WorkspaceImageState
$mWorkspaceImageState_PENDING :: forall r. WorkspaceImageState -> (Void# -> r) -> (Void# -> r) -> r
WorkspaceImageState_PENDING = WorkspaceImageState' "PENDING"

{-# COMPLETE
  WorkspaceImageState_AVAILABLE,
  WorkspaceImageState_ERROR,
  WorkspaceImageState_PENDING,
  WorkspaceImageState'
  #-}