{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.QuickSight.Types.SubtotalOptions
-- 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.SubtotalOptions where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types.PivotTableFieldSubtotalOptions
import Amazonka.QuickSight.Types.PivotTableSubtotalLevel
import Amazonka.QuickSight.Types.TableCellStyle
import Amazonka.QuickSight.Types.Visibility

-- | The subtotal options.
--
-- /See:/ 'newSubtotalOptions' smart constructor.
data SubtotalOptions = SubtotalOptions'
  { -- | The custom label string for the subtotal cells.
    SubtotalOptions -> Maybe Text
customLabel :: Prelude.Maybe Prelude.Text,
    -- | The field level (all, custom, last) for the subtotal cells.
    SubtotalOptions -> Maybe PivotTableSubtotalLevel
fieldLevel :: Prelude.Maybe PivotTableSubtotalLevel,
    -- | The optional configuration of subtotal cells.
    SubtotalOptions -> Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions :: Prelude.Maybe [PivotTableFieldSubtotalOptions],
    -- | The cell styling options for the subtotals of header cells.
    SubtotalOptions -> Maybe TableCellStyle
metricHeaderCellStyle :: Prelude.Maybe TableCellStyle,
    -- | The cell styling options for the subtotal cells.
    SubtotalOptions -> Maybe TableCellStyle
totalCellStyle :: Prelude.Maybe TableCellStyle,
    -- | The visibility configuration for the subtotal cells.
    SubtotalOptions -> Maybe Visibility
totalsVisibility :: Prelude.Maybe Visibility,
    -- | The cell styling options for the subtotals of value cells.
    SubtotalOptions -> Maybe TableCellStyle
valueCellStyle :: Prelude.Maybe TableCellStyle
  }
  deriving (SubtotalOptions -> SubtotalOptions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SubtotalOptions -> SubtotalOptions -> Bool
$c/= :: SubtotalOptions -> SubtotalOptions -> Bool
== :: SubtotalOptions -> SubtotalOptions -> Bool
$c== :: SubtotalOptions -> SubtotalOptions -> Bool
Prelude.Eq, ReadPrec [SubtotalOptions]
ReadPrec SubtotalOptions
Int -> ReadS SubtotalOptions
ReadS [SubtotalOptions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SubtotalOptions]
$creadListPrec :: ReadPrec [SubtotalOptions]
readPrec :: ReadPrec SubtotalOptions
$creadPrec :: ReadPrec SubtotalOptions
readList :: ReadS [SubtotalOptions]
$creadList :: ReadS [SubtotalOptions]
readsPrec :: Int -> ReadS SubtotalOptions
$creadsPrec :: Int -> ReadS SubtotalOptions
Prelude.Read, Int -> SubtotalOptions -> ShowS
[SubtotalOptions] -> ShowS
SubtotalOptions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SubtotalOptions] -> ShowS
$cshowList :: [SubtotalOptions] -> ShowS
show :: SubtotalOptions -> String
$cshow :: SubtotalOptions -> String
showsPrec :: Int -> SubtotalOptions -> ShowS
$cshowsPrec :: Int -> SubtotalOptions -> ShowS
Prelude.Show, forall x. Rep SubtotalOptions x -> SubtotalOptions
forall x. SubtotalOptions -> Rep SubtotalOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SubtotalOptions x -> SubtotalOptions
$cfrom :: forall x. SubtotalOptions -> Rep SubtotalOptions x
Prelude.Generic)

-- |
-- Create a value of 'SubtotalOptions' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'customLabel', 'subtotalOptions_customLabel' - The custom label string for the subtotal cells.
--
-- 'fieldLevel', 'subtotalOptions_fieldLevel' - The field level (all, custom, last) for the subtotal cells.
--
-- 'fieldLevelOptions', 'subtotalOptions_fieldLevelOptions' - The optional configuration of subtotal cells.
--
-- 'metricHeaderCellStyle', 'subtotalOptions_metricHeaderCellStyle' - The cell styling options for the subtotals of header cells.
--
-- 'totalCellStyle', 'subtotalOptions_totalCellStyle' - The cell styling options for the subtotal cells.
--
-- 'totalsVisibility', 'subtotalOptions_totalsVisibility' - The visibility configuration for the subtotal cells.
--
-- 'valueCellStyle', 'subtotalOptions_valueCellStyle' - The cell styling options for the subtotals of value cells.
newSubtotalOptions ::
  SubtotalOptions
newSubtotalOptions :: SubtotalOptions
newSubtotalOptions =
  SubtotalOptions'
    { $sel:customLabel:SubtotalOptions' :: Maybe Text
customLabel = forall a. Maybe a
Prelude.Nothing,
      $sel:fieldLevel:SubtotalOptions' :: Maybe PivotTableSubtotalLevel
fieldLevel = forall a. Maybe a
Prelude.Nothing,
      $sel:fieldLevelOptions:SubtotalOptions' :: Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions = forall a. Maybe a
Prelude.Nothing,
      $sel:metricHeaderCellStyle:SubtotalOptions' :: Maybe TableCellStyle
metricHeaderCellStyle = forall a. Maybe a
Prelude.Nothing,
      $sel:totalCellStyle:SubtotalOptions' :: Maybe TableCellStyle
totalCellStyle = forall a. Maybe a
Prelude.Nothing,
      $sel:totalsVisibility:SubtotalOptions' :: Maybe Visibility
totalsVisibility = forall a. Maybe a
Prelude.Nothing,
      $sel:valueCellStyle:SubtotalOptions' :: Maybe TableCellStyle
valueCellStyle = forall a. Maybe a
Prelude.Nothing
    }

-- | The custom label string for the subtotal cells.
subtotalOptions_customLabel :: Lens.Lens' SubtotalOptions (Prelude.Maybe Prelude.Text)
subtotalOptions_customLabel :: Lens' SubtotalOptions (Maybe Text)
subtotalOptions_customLabel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe Text
customLabel :: Maybe Text
$sel:customLabel:SubtotalOptions' :: SubtotalOptions -> Maybe Text
customLabel} -> Maybe Text
customLabel) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe Text
a -> SubtotalOptions
s {$sel:customLabel:SubtotalOptions' :: Maybe Text
customLabel = Maybe Text
a} :: SubtotalOptions)

-- | The field level (all, custom, last) for the subtotal cells.
subtotalOptions_fieldLevel :: Lens.Lens' SubtotalOptions (Prelude.Maybe PivotTableSubtotalLevel)
subtotalOptions_fieldLevel :: Lens' SubtotalOptions (Maybe PivotTableSubtotalLevel)
subtotalOptions_fieldLevel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe PivotTableSubtotalLevel
fieldLevel :: Maybe PivotTableSubtotalLevel
$sel:fieldLevel:SubtotalOptions' :: SubtotalOptions -> Maybe PivotTableSubtotalLevel
fieldLevel} -> Maybe PivotTableSubtotalLevel
fieldLevel) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe PivotTableSubtotalLevel
a -> SubtotalOptions
s {$sel:fieldLevel:SubtotalOptions' :: Maybe PivotTableSubtotalLevel
fieldLevel = Maybe PivotTableSubtotalLevel
a} :: SubtotalOptions)

-- | The optional configuration of subtotal cells.
subtotalOptions_fieldLevelOptions :: Lens.Lens' SubtotalOptions (Prelude.Maybe [PivotTableFieldSubtotalOptions])
subtotalOptions_fieldLevelOptions :: Lens' SubtotalOptions (Maybe [PivotTableFieldSubtotalOptions])
subtotalOptions_fieldLevelOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions :: Maybe [PivotTableFieldSubtotalOptions]
$sel:fieldLevelOptions:SubtotalOptions' :: SubtotalOptions -> Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions} -> Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe [PivotTableFieldSubtotalOptions]
a -> SubtotalOptions
s {$sel:fieldLevelOptions:SubtotalOptions' :: Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions = Maybe [PivotTableFieldSubtotalOptions]
a} :: SubtotalOptions) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The cell styling options for the subtotals of header cells.
subtotalOptions_metricHeaderCellStyle :: Lens.Lens' SubtotalOptions (Prelude.Maybe TableCellStyle)
subtotalOptions_metricHeaderCellStyle :: Lens' SubtotalOptions (Maybe TableCellStyle)
subtotalOptions_metricHeaderCellStyle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe TableCellStyle
metricHeaderCellStyle :: Maybe TableCellStyle
$sel:metricHeaderCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
metricHeaderCellStyle} -> Maybe TableCellStyle
metricHeaderCellStyle) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe TableCellStyle
a -> SubtotalOptions
s {$sel:metricHeaderCellStyle:SubtotalOptions' :: Maybe TableCellStyle
metricHeaderCellStyle = Maybe TableCellStyle
a} :: SubtotalOptions)

-- | The cell styling options for the subtotal cells.
subtotalOptions_totalCellStyle :: Lens.Lens' SubtotalOptions (Prelude.Maybe TableCellStyle)
subtotalOptions_totalCellStyle :: Lens' SubtotalOptions (Maybe TableCellStyle)
subtotalOptions_totalCellStyle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe TableCellStyle
totalCellStyle :: Maybe TableCellStyle
$sel:totalCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
totalCellStyle} -> Maybe TableCellStyle
totalCellStyle) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe TableCellStyle
a -> SubtotalOptions
s {$sel:totalCellStyle:SubtotalOptions' :: Maybe TableCellStyle
totalCellStyle = Maybe TableCellStyle
a} :: SubtotalOptions)

-- | The visibility configuration for the subtotal cells.
subtotalOptions_totalsVisibility :: Lens.Lens' SubtotalOptions (Prelude.Maybe Visibility)
subtotalOptions_totalsVisibility :: Lens' SubtotalOptions (Maybe Visibility)
subtotalOptions_totalsVisibility = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe Visibility
totalsVisibility :: Maybe Visibility
$sel:totalsVisibility:SubtotalOptions' :: SubtotalOptions -> Maybe Visibility
totalsVisibility} -> Maybe Visibility
totalsVisibility) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe Visibility
a -> SubtotalOptions
s {$sel:totalsVisibility:SubtotalOptions' :: Maybe Visibility
totalsVisibility = Maybe Visibility
a} :: SubtotalOptions)

-- | The cell styling options for the subtotals of value cells.
subtotalOptions_valueCellStyle :: Lens.Lens' SubtotalOptions (Prelude.Maybe TableCellStyle)
subtotalOptions_valueCellStyle :: Lens' SubtotalOptions (Maybe TableCellStyle)
subtotalOptions_valueCellStyle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SubtotalOptions' {Maybe TableCellStyle
valueCellStyle :: Maybe TableCellStyle
$sel:valueCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
valueCellStyle} -> Maybe TableCellStyle
valueCellStyle) (\s :: SubtotalOptions
s@SubtotalOptions' {} Maybe TableCellStyle
a -> SubtotalOptions
s {$sel:valueCellStyle:SubtotalOptions' :: Maybe TableCellStyle
valueCellStyle = Maybe TableCellStyle
a} :: SubtotalOptions)

instance Data.FromJSON SubtotalOptions where
  parseJSON :: Value -> Parser SubtotalOptions
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"SubtotalOptions"
      ( \Object
x ->
          Maybe Text
-> Maybe PivotTableSubtotalLevel
-> Maybe [PivotTableFieldSubtotalOptions]
-> Maybe TableCellStyle
-> Maybe TableCellStyle
-> Maybe Visibility
-> Maybe TableCellStyle
-> SubtotalOptions
SubtotalOptions'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CustomLabel")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FieldLevel")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FieldLevelOptions"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MetricHeaderCellStyle")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TotalCellStyle")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TotalsVisibility")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ValueCellStyle")
      )

instance Prelude.Hashable SubtotalOptions where
  hashWithSalt :: Int -> SubtotalOptions -> Int
hashWithSalt Int
_salt SubtotalOptions' {Maybe [PivotTableFieldSubtotalOptions]
Maybe Text
Maybe PivotTableSubtotalLevel
Maybe Visibility
Maybe TableCellStyle
valueCellStyle :: Maybe TableCellStyle
totalsVisibility :: Maybe Visibility
totalCellStyle :: Maybe TableCellStyle
metricHeaderCellStyle :: Maybe TableCellStyle
fieldLevelOptions :: Maybe [PivotTableFieldSubtotalOptions]
fieldLevel :: Maybe PivotTableSubtotalLevel
customLabel :: Maybe Text
$sel:valueCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:totalsVisibility:SubtotalOptions' :: SubtotalOptions -> Maybe Visibility
$sel:totalCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:metricHeaderCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:fieldLevelOptions:SubtotalOptions' :: SubtotalOptions -> Maybe [PivotTableFieldSubtotalOptions]
$sel:fieldLevel:SubtotalOptions' :: SubtotalOptions -> Maybe PivotTableSubtotalLevel
$sel:customLabel:SubtotalOptions' :: SubtotalOptions -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customLabel
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PivotTableSubtotalLevel
fieldLevel
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableCellStyle
metricHeaderCellStyle
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableCellStyle
totalCellStyle
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Visibility
totalsVisibility
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableCellStyle
valueCellStyle

instance Prelude.NFData SubtotalOptions where
  rnf :: SubtotalOptions -> ()
rnf SubtotalOptions' {Maybe [PivotTableFieldSubtotalOptions]
Maybe Text
Maybe PivotTableSubtotalLevel
Maybe Visibility
Maybe TableCellStyle
valueCellStyle :: Maybe TableCellStyle
totalsVisibility :: Maybe Visibility
totalCellStyle :: Maybe TableCellStyle
metricHeaderCellStyle :: Maybe TableCellStyle
fieldLevelOptions :: Maybe [PivotTableFieldSubtotalOptions]
fieldLevel :: Maybe PivotTableSubtotalLevel
customLabel :: Maybe Text
$sel:valueCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:totalsVisibility:SubtotalOptions' :: SubtotalOptions -> Maybe Visibility
$sel:totalCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:metricHeaderCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:fieldLevelOptions:SubtotalOptions' :: SubtotalOptions -> Maybe [PivotTableFieldSubtotalOptions]
$sel:fieldLevel:SubtotalOptions' :: SubtotalOptions -> Maybe PivotTableSubtotalLevel
$sel:customLabel:SubtotalOptions' :: SubtotalOptions -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customLabel
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PivotTableSubtotalLevel
fieldLevel
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableCellStyle
metricHeaderCellStyle
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableCellStyle
totalCellStyle
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Visibility
totalsVisibility
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableCellStyle
valueCellStyle

instance Data.ToJSON SubtotalOptions where
  toJSON :: SubtotalOptions -> Value
toJSON SubtotalOptions' {Maybe [PivotTableFieldSubtotalOptions]
Maybe Text
Maybe PivotTableSubtotalLevel
Maybe Visibility
Maybe TableCellStyle
valueCellStyle :: Maybe TableCellStyle
totalsVisibility :: Maybe Visibility
totalCellStyle :: Maybe TableCellStyle
metricHeaderCellStyle :: Maybe TableCellStyle
fieldLevelOptions :: Maybe [PivotTableFieldSubtotalOptions]
fieldLevel :: Maybe PivotTableSubtotalLevel
customLabel :: Maybe Text
$sel:valueCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:totalsVisibility:SubtotalOptions' :: SubtotalOptions -> Maybe Visibility
$sel:totalCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:metricHeaderCellStyle:SubtotalOptions' :: SubtotalOptions -> Maybe TableCellStyle
$sel:fieldLevelOptions:SubtotalOptions' :: SubtotalOptions -> Maybe [PivotTableFieldSubtotalOptions]
$sel:fieldLevel:SubtotalOptions' :: SubtotalOptions -> Maybe PivotTableSubtotalLevel
$sel:customLabel:SubtotalOptions' :: SubtotalOptions -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"CustomLabel" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
customLabel,
            (Key
"FieldLevel" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PivotTableSubtotalLevel
fieldLevel,
            (Key
"FieldLevelOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PivotTableFieldSubtotalOptions]
fieldLevelOptions,
            (Key
"MetricHeaderCellStyle" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableCellStyle
metricHeaderCellStyle,
            (Key
"TotalCellStyle" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableCellStyle
totalCellStyle,
            (Key
"TotalsVisibility" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Visibility
totalsVisibility,
            (Key
"ValueCellStyle" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableCellStyle
valueCellStyle
          ]
      )