{-# 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.IntegerValueWhenUnsetConfiguration 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.ValueWhenUnsetOption
data IntegerValueWhenUnsetConfiguration = IntegerValueWhenUnsetConfiguration'
{
IntegerValueWhenUnsetConfiguration -> Maybe (Sensitive Integer)
customValue :: Prelude.Maybe (Data.Sensitive Prelude.Integer),
IntegerValueWhenUnsetConfiguration -> Maybe ValueWhenUnsetOption
valueWhenUnsetOption :: Prelude.Maybe ValueWhenUnsetOption
}
deriving (IntegerValueWhenUnsetConfiguration
-> IntegerValueWhenUnsetConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IntegerValueWhenUnsetConfiguration
-> IntegerValueWhenUnsetConfiguration -> Bool
$c/= :: IntegerValueWhenUnsetConfiguration
-> IntegerValueWhenUnsetConfiguration -> Bool
== :: IntegerValueWhenUnsetConfiguration
-> IntegerValueWhenUnsetConfiguration -> Bool
$c== :: IntegerValueWhenUnsetConfiguration
-> IntegerValueWhenUnsetConfiguration -> Bool
Prelude.Eq, Int -> IntegerValueWhenUnsetConfiguration -> ShowS
[IntegerValueWhenUnsetConfiguration] -> ShowS
IntegerValueWhenUnsetConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IntegerValueWhenUnsetConfiguration] -> ShowS
$cshowList :: [IntegerValueWhenUnsetConfiguration] -> ShowS
show :: IntegerValueWhenUnsetConfiguration -> String
$cshow :: IntegerValueWhenUnsetConfiguration -> String
showsPrec :: Int -> IntegerValueWhenUnsetConfiguration -> ShowS
$cshowsPrec :: Int -> IntegerValueWhenUnsetConfiguration -> ShowS
Prelude.Show, forall x.
Rep IntegerValueWhenUnsetConfiguration x
-> IntegerValueWhenUnsetConfiguration
forall x.
IntegerValueWhenUnsetConfiguration
-> Rep IntegerValueWhenUnsetConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep IntegerValueWhenUnsetConfiguration x
-> IntegerValueWhenUnsetConfiguration
$cfrom :: forall x.
IntegerValueWhenUnsetConfiguration
-> Rep IntegerValueWhenUnsetConfiguration x
Prelude.Generic)
newIntegerValueWhenUnsetConfiguration ::
IntegerValueWhenUnsetConfiguration
newIntegerValueWhenUnsetConfiguration :: IntegerValueWhenUnsetConfiguration
newIntegerValueWhenUnsetConfiguration =
IntegerValueWhenUnsetConfiguration'
{ $sel:customValue:IntegerValueWhenUnsetConfiguration' :: Maybe (Sensitive Integer)
customValue =
forall a. Maybe a
Prelude.Nothing,
$sel:valueWhenUnsetOption:IntegerValueWhenUnsetConfiguration' :: Maybe ValueWhenUnsetOption
valueWhenUnsetOption = forall a. Maybe a
Prelude.Nothing
}
integerValueWhenUnsetConfiguration_customValue :: Lens.Lens' IntegerValueWhenUnsetConfiguration (Prelude.Maybe Prelude.Integer)
integerValueWhenUnsetConfiguration_customValue :: Lens' IntegerValueWhenUnsetConfiguration (Maybe Integer)
integerValueWhenUnsetConfiguration_customValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegerValueWhenUnsetConfiguration' {Maybe (Sensitive Integer)
customValue :: Maybe (Sensitive Integer)
$sel:customValue:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe (Sensitive Integer)
customValue} -> Maybe (Sensitive Integer)
customValue) (\s :: IntegerValueWhenUnsetConfiguration
s@IntegerValueWhenUnsetConfiguration' {} Maybe (Sensitive Integer)
a -> IntegerValueWhenUnsetConfiguration
s {$sel:customValue:IntegerValueWhenUnsetConfiguration' :: Maybe (Sensitive Integer)
customValue = Maybe (Sensitive Integer)
a} :: IntegerValueWhenUnsetConfiguration) 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 a. Iso' (Sensitive a) a
Data._Sensitive
integerValueWhenUnsetConfiguration_valueWhenUnsetOption :: Lens.Lens' IntegerValueWhenUnsetConfiguration (Prelude.Maybe ValueWhenUnsetOption)
integerValueWhenUnsetConfiguration_valueWhenUnsetOption :: Lens'
IntegerValueWhenUnsetConfiguration (Maybe ValueWhenUnsetOption)
integerValueWhenUnsetConfiguration_valueWhenUnsetOption = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegerValueWhenUnsetConfiguration' {Maybe ValueWhenUnsetOption
valueWhenUnsetOption :: Maybe ValueWhenUnsetOption
$sel:valueWhenUnsetOption:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe ValueWhenUnsetOption
valueWhenUnsetOption} -> Maybe ValueWhenUnsetOption
valueWhenUnsetOption) (\s :: IntegerValueWhenUnsetConfiguration
s@IntegerValueWhenUnsetConfiguration' {} Maybe ValueWhenUnsetOption
a -> IntegerValueWhenUnsetConfiguration
s {$sel:valueWhenUnsetOption:IntegerValueWhenUnsetConfiguration' :: Maybe ValueWhenUnsetOption
valueWhenUnsetOption = Maybe ValueWhenUnsetOption
a} :: IntegerValueWhenUnsetConfiguration)
instance
Data.FromJSON
IntegerValueWhenUnsetConfiguration
where
parseJSON :: Value -> Parser IntegerValueWhenUnsetConfiguration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"IntegerValueWhenUnsetConfiguration"
( \Object
x ->
Maybe (Sensitive Integer)
-> Maybe ValueWhenUnsetOption -> IntegerValueWhenUnsetConfiguration
IntegerValueWhenUnsetConfiguration'
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
"CustomValue")
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
"ValueWhenUnsetOption")
)
instance
Prelude.Hashable
IntegerValueWhenUnsetConfiguration
where
hashWithSalt :: Int -> IntegerValueWhenUnsetConfiguration -> Int
hashWithSalt
Int
_salt
IntegerValueWhenUnsetConfiguration' {Maybe (Sensitive Integer)
Maybe ValueWhenUnsetOption
valueWhenUnsetOption :: Maybe ValueWhenUnsetOption
customValue :: Maybe (Sensitive Integer)
$sel:valueWhenUnsetOption:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe ValueWhenUnsetOption
$sel:customValue:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe (Sensitive Integer)
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Integer)
customValue
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ValueWhenUnsetOption
valueWhenUnsetOption
instance
Prelude.NFData
IntegerValueWhenUnsetConfiguration
where
rnf :: IntegerValueWhenUnsetConfiguration -> ()
rnf IntegerValueWhenUnsetConfiguration' {Maybe (Sensitive Integer)
Maybe ValueWhenUnsetOption
valueWhenUnsetOption :: Maybe ValueWhenUnsetOption
customValue :: Maybe (Sensitive Integer)
$sel:valueWhenUnsetOption:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe ValueWhenUnsetOption
$sel:customValue:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe (Sensitive Integer)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Integer)
customValue
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ValueWhenUnsetOption
valueWhenUnsetOption
instance
Data.ToJSON
IntegerValueWhenUnsetConfiguration
where
toJSON :: IntegerValueWhenUnsetConfiguration -> Value
toJSON IntegerValueWhenUnsetConfiguration' {Maybe (Sensitive Integer)
Maybe ValueWhenUnsetOption
valueWhenUnsetOption :: Maybe ValueWhenUnsetOption
customValue :: Maybe (Sensitive Integer)
$sel:valueWhenUnsetOption:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe ValueWhenUnsetOption
$sel:customValue:IntegerValueWhenUnsetConfiguration' :: IntegerValueWhenUnsetConfiguration -> Maybe (Sensitive Integer)
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CustomValue" 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 (Sensitive Integer)
customValue,
(Key
"ValueWhenUnsetOption" 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 ValueWhenUnsetOption
valueWhenUnsetOption
]
)