{-# 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.QuickSight.Types.ResourceStatus
-- 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.QuickSight.Types.ResourceStatus
  ( ResourceStatus
      ( ..,
        ResourceStatus_CREATION_FAILED,
        ResourceStatus_CREATION_IN_PROGRESS,
        ResourceStatus_CREATION_SUCCESSFUL,
        ResourceStatus_DELETED,
        ResourceStatus_UPDATE_FAILED,
        ResourceStatus_UPDATE_IN_PROGRESS,
        ResourceStatus_UPDATE_SUCCESSFUL
      ),
  )
where

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

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

pattern ResourceStatus_CREATION_FAILED :: ResourceStatus
pattern $bResourceStatus_CREATION_FAILED :: ResourceStatus
$mResourceStatus_CREATION_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_CREATION_FAILED = ResourceStatus' "CREATION_FAILED"

pattern ResourceStatus_CREATION_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_CREATION_IN_PROGRESS :: ResourceStatus
$mResourceStatus_CREATION_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_CREATION_IN_PROGRESS = ResourceStatus' "CREATION_IN_PROGRESS"

pattern ResourceStatus_CREATION_SUCCESSFUL :: ResourceStatus
pattern $bResourceStatus_CREATION_SUCCESSFUL :: ResourceStatus
$mResourceStatus_CREATION_SUCCESSFUL :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_CREATION_SUCCESSFUL = ResourceStatus' "CREATION_SUCCESSFUL"

pattern ResourceStatus_DELETED :: ResourceStatus
pattern $bResourceStatus_DELETED :: ResourceStatus
$mResourceStatus_DELETED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_DELETED = ResourceStatus' "DELETED"

pattern ResourceStatus_UPDATE_FAILED :: ResourceStatus
pattern $bResourceStatus_UPDATE_FAILED :: ResourceStatus
$mResourceStatus_UPDATE_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_FAILED = ResourceStatus' "UPDATE_FAILED"

pattern ResourceStatus_UPDATE_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_UPDATE_IN_PROGRESS :: ResourceStatus
$mResourceStatus_UPDATE_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_IN_PROGRESS = ResourceStatus' "UPDATE_IN_PROGRESS"

pattern ResourceStatus_UPDATE_SUCCESSFUL :: ResourceStatus
pattern $bResourceStatus_UPDATE_SUCCESSFUL :: ResourceStatus
$mResourceStatus_UPDATE_SUCCESSFUL :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_SUCCESSFUL = ResourceStatus' "UPDATE_SUCCESSFUL"

{-# COMPLETE
  ResourceStatus_CREATION_FAILED,
  ResourceStatus_CREATION_IN_PROGRESS,
  ResourceStatus_CREATION_SUCCESSFUL,
  ResourceStatus_DELETED,
  ResourceStatus_UPDATE_FAILED,
  ResourceStatus_UPDATE_IN_PROGRESS,
  ResourceStatus_UPDATE_SUCCESSFUL,
  ResourceStatus'
  #-}