{-# 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.FolderFilterAttribute
-- 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.FolderFilterAttribute
  ( FolderFilterAttribute
      ( ..,
        FolderFilterAttribute_DIRECT_QUICKSIGHT_OWNER,
        FolderFilterAttribute_DIRECT_QUICKSIGHT_SOLE_OWNER,
        FolderFilterAttribute_DIRECT_QUICKSIGHT_VIEWER_OR_OWNER,
        FolderFilterAttribute_FOLDER_NAME,
        FolderFilterAttribute_PARENT_FOLDER_ARN,
        FolderFilterAttribute_QUICKSIGHT_OWNER,
        FolderFilterAttribute_QUICKSIGHT_VIEWER_OR_OWNER
      ),
  )
where

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

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

pattern FolderFilterAttribute_DIRECT_QUICKSIGHT_OWNER :: FolderFilterAttribute
pattern $bFolderFilterAttribute_DIRECT_QUICKSIGHT_OWNER :: FolderFilterAttribute
$mFolderFilterAttribute_DIRECT_QUICKSIGHT_OWNER :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_DIRECT_QUICKSIGHT_OWNER = FolderFilterAttribute' "DIRECT_QUICKSIGHT_OWNER"

pattern FolderFilterAttribute_DIRECT_QUICKSIGHT_SOLE_OWNER :: FolderFilterAttribute
pattern $bFolderFilterAttribute_DIRECT_QUICKSIGHT_SOLE_OWNER :: FolderFilterAttribute
$mFolderFilterAttribute_DIRECT_QUICKSIGHT_SOLE_OWNER :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_DIRECT_QUICKSIGHT_SOLE_OWNER = FolderFilterAttribute' "DIRECT_QUICKSIGHT_SOLE_OWNER"

pattern FolderFilterAttribute_DIRECT_QUICKSIGHT_VIEWER_OR_OWNER :: FolderFilterAttribute
pattern $bFolderFilterAttribute_DIRECT_QUICKSIGHT_VIEWER_OR_OWNER :: FolderFilterAttribute
$mFolderFilterAttribute_DIRECT_QUICKSIGHT_VIEWER_OR_OWNER :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_DIRECT_QUICKSIGHT_VIEWER_OR_OWNER = FolderFilterAttribute' "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"

pattern FolderFilterAttribute_FOLDER_NAME :: FolderFilterAttribute
pattern $bFolderFilterAttribute_FOLDER_NAME :: FolderFilterAttribute
$mFolderFilterAttribute_FOLDER_NAME :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_FOLDER_NAME = FolderFilterAttribute' "FOLDER_NAME"

pattern FolderFilterAttribute_PARENT_FOLDER_ARN :: FolderFilterAttribute
pattern $bFolderFilterAttribute_PARENT_FOLDER_ARN :: FolderFilterAttribute
$mFolderFilterAttribute_PARENT_FOLDER_ARN :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_PARENT_FOLDER_ARN = FolderFilterAttribute' "PARENT_FOLDER_ARN"

pattern FolderFilterAttribute_QUICKSIGHT_OWNER :: FolderFilterAttribute
pattern $bFolderFilterAttribute_QUICKSIGHT_OWNER :: FolderFilterAttribute
$mFolderFilterAttribute_QUICKSIGHT_OWNER :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_QUICKSIGHT_OWNER = FolderFilterAttribute' "QUICKSIGHT_OWNER"

pattern FolderFilterAttribute_QUICKSIGHT_VIEWER_OR_OWNER :: FolderFilterAttribute
pattern $bFolderFilterAttribute_QUICKSIGHT_VIEWER_OR_OWNER :: FolderFilterAttribute
$mFolderFilterAttribute_QUICKSIGHT_VIEWER_OR_OWNER :: forall {r}.
FolderFilterAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
FolderFilterAttribute_QUICKSIGHT_VIEWER_OR_OWNER = FolderFilterAttribute' "QUICKSIGHT_VIEWER_OR_OWNER"

{-# COMPLETE
  FolderFilterAttribute_DIRECT_QUICKSIGHT_OWNER,
  FolderFilterAttribute_DIRECT_QUICKSIGHT_SOLE_OWNER,
  FolderFilterAttribute_DIRECT_QUICKSIGHT_VIEWER_OR_OWNER,
  FolderFilterAttribute_FOLDER_NAME,
  FolderFilterAttribute_PARENT_FOLDER_ARN,
  FolderFilterAttribute_QUICKSIGHT_OWNER,
  FolderFilterAttribute_QUICKSIGHT_VIEWER_OR_OWNER,
  FolderFilterAttribute'
  #-}