{-# 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.WorkDocs.Types.ResourceStateType
-- 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.WorkDocs.Types.ResourceStateType
  ( ResourceStateType
      ( ..,
        ResourceStateType_ACTIVE,
        ResourceStateType_RECYCLED,
        ResourceStateType_RECYCLING,
        ResourceStateType_RESTORING
      ),
  )
where

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

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

pattern ResourceStateType_ACTIVE :: ResourceStateType
pattern $bResourceStateType_ACTIVE :: ResourceStateType
$mResourceStateType_ACTIVE :: forall r. ResourceStateType -> (Void# -> r) -> (Void# -> r) -> r
ResourceStateType_ACTIVE = ResourceStateType' "ACTIVE"

pattern ResourceStateType_RECYCLED :: ResourceStateType
pattern $bResourceStateType_RECYCLED :: ResourceStateType
$mResourceStateType_RECYCLED :: forall r. ResourceStateType -> (Void# -> r) -> (Void# -> r) -> r
ResourceStateType_RECYCLED = ResourceStateType' "RECYCLED"

pattern ResourceStateType_RECYCLING :: ResourceStateType
pattern $bResourceStateType_RECYCLING :: ResourceStateType
$mResourceStateType_RECYCLING :: forall r. ResourceStateType -> (Void# -> r) -> (Void# -> r) -> r
ResourceStateType_RECYCLING = ResourceStateType' "RECYCLING"

pattern ResourceStateType_RESTORING :: ResourceStateType
pattern $bResourceStateType_RESTORING :: ResourceStateType
$mResourceStateType_RESTORING :: forall r. ResourceStateType -> (Void# -> r) -> (Void# -> r) -> r
ResourceStateType_RESTORING = ResourceStateType' "RESTORING"

{-# COMPLETE
  ResourceStateType_ACTIVE,
  ResourceStateType_RECYCLED,
  ResourceStateType_RECYCLING,
  ResourceStateType_RESTORING,
  ResourceStateType'
  #-}