{-# 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.ResourceGroups.Types.ResourceStatusValue
-- 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.ResourceGroups.Types.ResourceStatusValue
  ( ResourceStatusValue
      ( ..,
        ResourceStatusValue_PENDING
      ),
  )
where

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

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

pattern ResourceStatusValue_PENDING :: ResourceStatusValue
pattern $bResourceStatusValue_PENDING :: ResourceStatusValue
$mResourceStatusValue_PENDING :: forall r. ResourceStatusValue -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatusValue_PENDING = ResourceStatusValue' "PENDING"

{-# COMPLETE
  ResourceStatusValue_PENDING,
  ResourceStatusValue'
  #-}