{-# 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.DashboardUIState
-- 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.DashboardUIState
  ( DashboardUIState
      ( ..,
        DashboardUIState_COLLAPSED,
        DashboardUIState_EXPANDED
      ),
  )
where

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

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

pattern DashboardUIState_COLLAPSED :: DashboardUIState
pattern $bDashboardUIState_COLLAPSED :: DashboardUIState
$mDashboardUIState_COLLAPSED :: forall {r}. DashboardUIState -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardUIState_COLLAPSED = DashboardUIState' "COLLAPSED"

pattern DashboardUIState_EXPANDED :: DashboardUIState
pattern $bDashboardUIState_EXPANDED :: DashboardUIState
$mDashboardUIState_EXPANDED :: forall {r}. DashboardUIState -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardUIState_EXPANDED = DashboardUIState' "EXPANDED"

{-# COMPLETE
  DashboardUIState_COLLAPSED,
  DashboardUIState_EXPANDED,
  DashboardUIState'
  #-}