{-# 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.SheetControlSliderType
-- 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.SheetControlSliderType
  ( SheetControlSliderType
      ( ..,
        SheetControlSliderType_RANGE,
        SheetControlSliderType_SINGLE_POINT
      ),
  )
where

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

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

pattern SheetControlSliderType_RANGE :: SheetControlSliderType
pattern $bSheetControlSliderType_RANGE :: SheetControlSliderType
$mSheetControlSliderType_RANGE :: forall {r}.
SheetControlSliderType -> ((# #) -> r) -> ((# #) -> r) -> r
SheetControlSliderType_RANGE = SheetControlSliderType' "RANGE"

pattern SheetControlSliderType_SINGLE_POINT :: SheetControlSliderType
pattern $bSheetControlSliderType_SINGLE_POINT :: SheetControlSliderType
$mSheetControlSliderType_SINGLE_POINT :: forall {r}.
SheetControlSliderType -> ((# #) -> r) -> ((# #) -> r) -> r
SheetControlSliderType_SINGLE_POINT = SheetControlSliderType' "SINGLE_POINT"

{-# COMPLETE
  SheetControlSliderType_RANGE,
  SheetControlSliderType_SINGLE_POINT,
  SheetControlSliderType'
  #-}