{-# 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.FolderType
-- 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.FolderType
  ( FolderType
      ( ..,
        FolderType_SHARED
      ),
  )
where

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

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

pattern FolderType_SHARED :: FolderType
pattern $bFolderType_SHARED :: FolderType
$mFolderType_SHARED :: forall {r}. FolderType -> ((# #) -> r) -> ((# #) -> r) -> r
FolderType_SHARED = FolderType' "SHARED"

{-# COMPLETE
  FolderType_SHARED,
  FolderType'
  #-}