{-# 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 #-}
module Amazonka.QuickSight.Types.LineChartMarkerStyleSettings 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.LineChartMarkerShape
import Amazonka.QuickSight.Types.Visibility
data LineChartMarkerStyleSettings = LineChartMarkerStyleSettings'
{
LineChartMarkerStyleSettings -> Maybe Text
markerColor :: Prelude.Maybe Prelude.Text,
LineChartMarkerStyleSettings -> Maybe LineChartMarkerShape
markerShape :: Prelude.Maybe LineChartMarkerShape,
LineChartMarkerStyleSettings -> Maybe Text
markerSize :: Prelude.Maybe Prelude.Text,
LineChartMarkerStyleSettings -> Maybe Visibility
markerVisibility :: Prelude.Maybe Visibility
}
deriving (LineChartMarkerStyleSettings
-> LineChartMarkerStyleSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LineChartMarkerStyleSettings
-> LineChartMarkerStyleSettings -> Bool
$c/= :: LineChartMarkerStyleSettings
-> LineChartMarkerStyleSettings -> Bool
== :: LineChartMarkerStyleSettings
-> LineChartMarkerStyleSettings -> Bool
$c== :: LineChartMarkerStyleSettings
-> LineChartMarkerStyleSettings -> Bool
Prelude.Eq, ReadPrec [LineChartMarkerStyleSettings]
ReadPrec LineChartMarkerStyleSettings
Int -> ReadS LineChartMarkerStyleSettings
ReadS [LineChartMarkerStyleSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LineChartMarkerStyleSettings]
$creadListPrec :: ReadPrec [LineChartMarkerStyleSettings]
readPrec :: ReadPrec LineChartMarkerStyleSettings
$creadPrec :: ReadPrec LineChartMarkerStyleSettings
readList :: ReadS [LineChartMarkerStyleSettings]
$creadList :: ReadS [LineChartMarkerStyleSettings]
readsPrec :: Int -> ReadS LineChartMarkerStyleSettings
$creadsPrec :: Int -> ReadS LineChartMarkerStyleSettings
Prelude.Read, Int -> LineChartMarkerStyleSettings -> ShowS
[LineChartMarkerStyleSettings] -> ShowS
LineChartMarkerStyleSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LineChartMarkerStyleSettings] -> ShowS
$cshowList :: [LineChartMarkerStyleSettings] -> ShowS
show :: LineChartMarkerStyleSettings -> String
$cshow :: LineChartMarkerStyleSettings -> String
showsPrec :: Int -> LineChartMarkerStyleSettings -> ShowS
$cshowsPrec :: Int -> LineChartMarkerStyleSettings -> ShowS
Prelude.Show, forall x.
Rep LineChartMarkerStyleSettings x -> LineChartMarkerStyleSettings
forall x.
LineChartMarkerStyleSettings -> Rep LineChartMarkerStyleSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LineChartMarkerStyleSettings x -> LineChartMarkerStyleSettings
$cfrom :: forall x.
LineChartMarkerStyleSettings -> Rep LineChartMarkerStyleSettings x
Prelude.Generic)
newLineChartMarkerStyleSettings ::
LineChartMarkerStyleSettings
newLineChartMarkerStyleSettings :: LineChartMarkerStyleSettings
newLineChartMarkerStyleSettings =
LineChartMarkerStyleSettings'
{ $sel:markerColor:LineChartMarkerStyleSettings' :: Maybe Text
markerColor =
forall a. Maybe a
Prelude.Nothing,
$sel:markerShape:LineChartMarkerStyleSettings' :: Maybe LineChartMarkerShape
markerShape = forall a. Maybe a
Prelude.Nothing,
$sel:markerSize:LineChartMarkerStyleSettings' :: Maybe Text
markerSize = forall a. Maybe a
Prelude.Nothing,
$sel:markerVisibility:LineChartMarkerStyleSettings' :: Maybe Visibility
markerVisibility = forall a. Maybe a
Prelude.Nothing
}
lineChartMarkerStyleSettings_markerColor :: Lens.Lens' LineChartMarkerStyleSettings (Prelude.Maybe Prelude.Text)
lineChartMarkerStyleSettings_markerColor :: Lens' LineChartMarkerStyleSettings (Maybe Text)
lineChartMarkerStyleSettings_markerColor = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LineChartMarkerStyleSettings' {Maybe Text
markerColor :: Maybe Text
$sel:markerColor:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
markerColor} -> Maybe Text
markerColor) (\s :: LineChartMarkerStyleSettings
s@LineChartMarkerStyleSettings' {} Maybe Text
a -> LineChartMarkerStyleSettings
s {$sel:markerColor:LineChartMarkerStyleSettings' :: Maybe Text
markerColor = Maybe Text
a} :: LineChartMarkerStyleSettings)
lineChartMarkerStyleSettings_markerShape :: Lens.Lens' LineChartMarkerStyleSettings (Prelude.Maybe LineChartMarkerShape)
lineChartMarkerStyleSettings_markerShape :: Lens' LineChartMarkerStyleSettings (Maybe LineChartMarkerShape)
lineChartMarkerStyleSettings_markerShape = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LineChartMarkerStyleSettings' {Maybe LineChartMarkerShape
markerShape :: Maybe LineChartMarkerShape
$sel:markerShape:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe LineChartMarkerShape
markerShape} -> Maybe LineChartMarkerShape
markerShape) (\s :: LineChartMarkerStyleSettings
s@LineChartMarkerStyleSettings' {} Maybe LineChartMarkerShape
a -> LineChartMarkerStyleSettings
s {$sel:markerShape:LineChartMarkerStyleSettings' :: Maybe LineChartMarkerShape
markerShape = Maybe LineChartMarkerShape
a} :: LineChartMarkerStyleSettings)
lineChartMarkerStyleSettings_markerSize :: Lens.Lens' LineChartMarkerStyleSettings (Prelude.Maybe Prelude.Text)
lineChartMarkerStyleSettings_markerSize :: Lens' LineChartMarkerStyleSettings (Maybe Text)
lineChartMarkerStyleSettings_markerSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LineChartMarkerStyleSettings' {Maybe Text
markerSize :: Maybe Text
$sel:markerSize:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
markerSize} -> Maybe Text
markerSize) (\s :: LineChartMarkerStyleSettings
s@LineChartMarkerStyleSettings' {} Maybe Text
a -> LineChartMarkerStyleSettings
s {$sel:markerSize:LineChartMarkerStyleSettings' :: Maybe Text
markerSize = Maybe Text
a} :: LineChartMarkerStyleSettings)
lineChartMarkerStyleSettings_markerVisibility :: Lens.Lens' LineChartMarkerStyleSettings (Prelude.Maybe Visibility)
lineChartMarkerStyleSettings_markerVisibility :: Lens' LineChartMarkerStyleSettings (Maybe Visibility)
lineChartMarkerStyleSettings_markerVisibility = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LineChartMarkerStyleSettings' {Maybe Visibility
markerVisibility :: Maybe Visibility
$sel:markerVisibility:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Visibility
markerVisibility} -> Maybe Visibility
markerVisibility) (\s :: LineChartMarkerStyleSettings
s@LineChartMarkerStyleSettings' {} Maybe Visibility
a -> LineChartMarkerStyleSettings
s {$sel:markerVisibility:LineChartMarkerStyleSettings' :: Maybe Visibility
markerVisibility = Maybe Visibility
a} :: LineChartMarkerStyleSettings)
instance Data.FromJSON LineChartMarkerStyleSettings where
parseJSON :: Value -> Parser LineChartMarkerStyleSettings
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LineChartMarkerStyleSettings"
( \Object
x ->
Maybe Text
-> Maybe LineChartMarkerShape
-> Maybe Text
-> Maybe Visibility
-> LineChartMarkerStyleSettings
LineChartMarkerStyleSettings'
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
"MarkerColor")
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
"MarkerShape")
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
"MarkerSize")
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
"MarkerVisibility")
)
instance
Prelude.Hashable
LineChartMarkerStyleSettings
where
hashWithSalt :: Int -> LineChartMarkerStyleSettings -> Int
hashWithSalt Int
_salt LineChartMarkerStyleSettings' {Maybe Text
Maybe LineChartMarkerShape
Maybe Visibility
markerVisibility :: Maybe Visibility
markerSize :: Maybe Text
markerShape :: Maybe LineChartMarkerShape
markerColor :: Maybe Text
$sel:markerVisibility:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Visibility
$sel:markerSize:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
$sel:markerShape:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe LineChartMarkerShape
$sel:markerColor:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
markerColor
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LineChartMarkerShape
markerShape
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
markerSize
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Visibility
markerVisibility
instance Prelude.NFData LineChartMarkerStyleSettings where
rnf :: LineChartMarkerStyleSettings -> ()
rnf LineChartMarkerStyleSettings' {Maybe Text
Maybe LineChartMarkerShape
Maybe Visibility
markerVisibility :: Maybe Visibility
markerSize :: Maybe Text
markerShape :: Maybe LineChartMarkerShape
markerColor :: Maybe Text
$sel:markerVisibility:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Visibility
$sel:markerSize:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
$sel:markerShape:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe LineChartMarkerShape
$sel:markerColor:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
markerColor
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LineChartMarkerShape
markerShape
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
markerSize
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Visibility
markerVisibility
instance Data.ToJSON LineChartMarkerStyleSettings where
toJSON :: LineChartMarkerStyleSettings -> Value
toJSON LineChartMarkerStyleSettings' {Maybe Text
Maybe LineChartMarkerShape
Maybe Visibility
markerVisibility :: Maybe Visibility
markerSize :: Maybe Text
markerShape :: Maybe LineChartMarkerShape
markerColor :: Maybe Text
$sel:markerVisibility:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Visibility
$sel:markerSize:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
$sel:markerShape:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe LineChartMarkerShape
$sel:markerColor:LineChartMarkerStyleSettings' :: LineChartMarkerStyleSettings -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MarkerColor" 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
markerColor,
(Key
"MarkerShape" 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 LineChartMarkerShape
markerShape,
(Key
"MarkerSize" 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
markerSize,
(Key
"MarkerVisibility" 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
markerVisibility
]
)