{-# 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.DashboardFilterAttribute
-- 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.DashboardFilterAttribute
  ( DashboardFilterAttribute
      ( ..,
        DashboardFilterAttribute_QUICKSIGHT_USER
      ),
  )
where

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

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

pattern DashboardFilterAttribute_QUICKSIGHT_USER :: DashboardFilterAttribute
pattern $bDashboardFilterAttribute_QUICKSIGHT_USER :: DashboardFilterAttribute
$mDashboardFilterAttribute_QUICKSIGHT_USER :: forall r.
DashboardFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
DashboardFilterAttribute_QUICKSIGHT_USER = DashboardFilterAttribute' "QUICKSIGHT_USER"

{-# COMPLETE
  DashboardFilterAttribute_QUICKSIGHT_USER,
  DashboardFilterAttribute'
  #-}