{-# 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.WidgetStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QuickSight.Types.WidgetStatus
  ( WidgetStatus
      ( ..,
        WidgetStatus_DISABLED,
        WidgetStatus_ENABLED
      ),
  )
where

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

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

pattern WidgetStatus_DISABLED :: WidgetStatus
pattern $bWidgetStatus_DISABLED :: WidgetStatus
$mWidgetStatus_DISABLED :: forall {r}. WidgetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WidgetStatus_DISABLED = WidgetStatus' "DISABLED"

pattern WidgetStatus_ENABLED :: WidgetStatus
pattern $bWidgetStatus_ENABLED :: WidgetStatus
$mWidgetStatus_ENABLED :: forall {r}. WidgetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WidgetStatus_ENABLED = WidgetStatus' "ENABLED"

{-# COMPLETE
  WidgetStatus_DISABLED,
  WidgetStatus_ENABLED,
  WidgetStatus'
  #-}