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

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

newtype DashboardUIState = DashboardUIState'
  { DashboardUIState -> Text
fromDashboardUIState ::
      Core.Text
  }
  deriving stock
    ( Int -> DashboardUIState -> ShowS
[DashboardUIState] -> ShowS
DashboardUIState -> String
(Int -> DashboardUIState -> ShowS)
-> (DashboardUIState -> String)
-> ([DashboardUIState] -> ShowS)
-> Show DashboardUIState
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]
(Int -> ReadS DashboardUIState)
-> ReadS [DashboardUIState]
-> ReadPrec DashboardUIState
-> ReadPrec [DashboardUIState]
-> Read 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
(DashboardUIState -> DashboardUIState -> Bool)
-> (DashboardUIState -> DashboardUIState -> Bool)
-> Eq DashboardUIState
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
Eq DashboardUIState
-> (DashboardUIState -> DashboardUIState -> Ordering)
-> (DashboardUIState -> DashboardUIState -> Bool)
-> (DashboardUIState -> DashboardUIState -> Bool)
-> (DashboardUIState -> DashboardUIState -> Bool)
-> (DashboardUIState -> DashboardUIState -> Bool)
-> (DashboardUIState -> DashboardUIState -> DashboardUIState)
-> (DashboardUIState -> DashboardUIState -> DashboardUIState)
-> Ord 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
$cp1Ord :: Eq DashboardUIState
Prelude.Ord,
      (forall x. DashboardUIState -> Rep DashboardUIState x)
-> (forall x. Rep DashboardUIState x -> DashboardUIState)
-> Generic DashboardUIState
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
    ( Int -> DashboardUIState -> Int
DashboardUIState -> Int
(Int -> DashboardUIState -> Int)
-> (DashboardUIState -> Int) -> Hashable DashboardUIState
forall 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 -> ()
(DashboardUIState -> ()) -> NFData DashboardUIState
forall a. (a -> ()) -> NFData a
rnf :: DashboardUIState -> ()
$crnf :: DashboardUIState -> ()
Prelude.NFData,
      Text -> Either String DashboardUIState
(Text -> Either String DashboardUIState)
-> FromText DashboardUIState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashboardUIState
$cfromText :: Text -> Either String DashboardUIState
Core.FromText,
      DashboardUIState -> Text
(DashboardUIState -> Text) -> ToText DashboardUIState
forall a. (a -> Text) -> ToText a
toText :: DashboardUIState -> Text
$ctoText :: DashboardUIState -> Text
Core.ToText,
      DashboardUIState -> ByteString
(DashboardUIState -> ByteString) -> ToByteString DashboardUIState
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashboardUIState -> ByteString
$ctoBS :: DashboardUIState -> ByteString
Core.ToByteString,
      DashboardUIState -> ByteStringBuilder
(DashboardUIState -> ByteStringBuilder) -> ToLog DashboardUIState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashboardUIState -> ByteStringBuilder
$cbuild :: DashboardUIState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DashboardUIState -> [Header]
(HeaderName -> DashboardUIState -> [Header])
-> ToHeader DashboardUIState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DashboardUIState -> [Header]
$ctoHeader :: HeaderName -> DashboardUIState -> [Header]
Core.ToHeader,
      DashboardUIState -> QueryString
(DashboardUIState -> QueryString) -> ToQuery DashboardUIState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashboardUIState -> QueryString
$ctoQuery :: DashboardUIState -> QueryString
Core.ToQuery,
      Value -> Parser [DashboardUIState]
Value -> Parser DashboardUIState
(Value -> Parser DashboardUIState)
-> (Value -> Parser [DashboardUIState])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DashboardUIState]
FromJSONKeyFunction DashboardUIState
FromJSONKeyFunction DashboardUIState
-> FromJSONKeyFunction [DashboardUIState]
-> FromJSONKey DashboardUIState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashboardUIState]
$cfromJSONKeyList :: FromJSONKeyFunction [DashboardUIState]
fromJSONKey :: FromJSONKeyFunction DashboardUIState
$cfromJSONKey :: FromJSONKeyFunction DashboardUIState
Core.FromJSONKey,
      [DashboardUIState] -> Encoding
[DashboardUIState] -> Value
DashboardUIState -> Encoding
DashboardUIState -> Value
(DashboardUIState -> Value)
-> (DashboardUIState -> Encoding)
-> ([DashboardUIState] -> Value)
-> ([DashboardUIState] -> Encoding)
-> ToJSON DashboardUIState
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
Core.ToJSON,
      ToJSONKeyFunction [DashboardUIState]
ToJSONKeyFunction DashboardUIState
ToJSONKeyFunction DashboardUIState
-> ToJSONKeyFunction [DashboardUIState]
-> ToJSONKey DashboardUIState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashboardUIState]
$ctoJSONKeyList :: ToJSONKeyFunction [DashboardUIState]
toJSONKey :: ToJSONKeyFunction DashboardUIState
$ctoJSONKey :: ToJSONKeyFunction DashboardUIState
Core.ToJSONKey,
      [Node] -> Either String DashboardUIState
([Node] -> Either String DashboardUIState)
-> FromXML DashboardUIState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashboardUIState
$cparseXML :: [Node] -> Either String DashboardUIState
Core.FromXML,
      DashboardUIState -> XML
(DashboardUIState -> XML) -> ToXML DashboardUIState
forall a. (a -> XML) -> ToXML a
toXML :: DashboardUIState -> XML
$ctoXML :: DashboardUIState -> XML
Core.ToXML
    )

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

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

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