{-# 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.SheetControlListType
-- 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.SheetControlListType
  ( SheetControlListType
      ( ..,
        SheetControlListType_MULTI_SELECT,
        SheetControlListType_SINGLE_SELECT
      ),
  )
where

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

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

pattern SheetControlListType_MULTI_SELECT :: SheetControlListType
pattern $bSheetControlListType_MULTI_SELECT :: SheetControlListType
$mSheetControlListType_MULTI_SELECT :: forall {r}.
SheetControlListType -> ((# #) -> r) -> ((# #) -> r) -> r
SheetControlListType_MULTI_SELECT = SheetControlListType' "MULTI_SELECT"

pattern SheetControlListType_SINGLE_SELECT :: SheetControlListType
pattern $bSheetControlListType_SINGLE_SELECT :: SheetControlListType
$mSheetControlListType_SINGLE_SELECT :: forall {r}.
SheetControlListType -> ((# #) -> r) -> ((# #) -> r) -> r
SheetControlListType_SINGLE_SELECT = SheetControlListType' "SINGLE_SELECT"

{-# COMPLETE
  SheetControlListType_MULTI_SELECT,
  SheetControlListType_SINGLE_SELECT,
  SheetControlListType'
  #-}