{-# 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.TableTotalsPlacement
-- 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.TableTotalsPlacement
  ( TableTotalsPlacement
      ( ..,
        TableTotalsPlacement_END,
        TableTotalsPlacement_START
      ),
  )
where

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

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

pattern TableTotalsPlacement_END :: TableTotalsPlacement
pattern $bTableTotalsPlacement_END :: TableTotalsPlacement
$mTableTotalsPlacement_END :: forall {r}.
TableTotalsPlacement -> ((# #) -> r) -> ((# #) -> r) -> r
TableTotalsPlacement_END = TableTotalsPlacement' "END"

pattern TableTotalsPlacement_START :: TableTotalsPlacement
pattern $bTableTotalsPlacement_START :: TableTotalsPlacement
$mTableTotalsPlacement_START :: forall {r}.
TableTotalsPlacement -> ((# #) -> r) -> ((# #) -> r) -> r
TableTotalsPlacement_START = TableTotalsPlacement' "START"

{-# COMPLETE
  TableTotalsPlacement_END,
  TableTotalsPlacement_START,
  TableTotalsPlacement'
  #-}