{-# 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.FreeFormLayoutScreenCanvasSizeOptions 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
data FreeFormLayoutScreenCanvasSizeOptions = FreeFormLayoutScreenCanvasSizeOptions'
{
FreeFormLayoutScreenCanvasSizeOptions -> Text
optimizedViewPortWidth :: Prelude.Text
}
deriving (FreeFormLayoutScreenCanvasSizeOptions
-> FreeFormLayoutScreenCanvasSizeOptions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FreeFormLayoutScreenCanvasSizeOptions
-> FreeFormLayoutScreenCanvasSizeOptions -> Bool
$c/= :: FreeFormLayoutScreenCanvasSizeOptions
-> FreeFormLayoutScreenCanvasSizeOptions -> Bool
== :: FreeFormLayoutScreenCanvasSizeOptions
-> FreeFormLayoutScreenCanvasSizeOptions -> Bool
$c== :: FreeFormLayoutScreenCanvasSizeOptions
-> FreeFormLayoutScreenCanvasSizeOptions -> Bool
Prelude.Eq, ReadPrec [FreeFormLayoutScreenCanvasSizeOptions]
ReadPrec FreeFormLayoutScreenCanvasSizeOptions
Int -> ReadS FreeFormLayoutScreenCanvasSizeOptions
ReadS [FreeFormLayoutScreenCanvasSizeOptions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FreeFormLayoutScreenCanvasSizeOptions]
$creadListPrec :: ReadPrec [FreeFormLayoutScreenCanvasSizeOptions]
readPrec :: ReadPrec FreeFormLayoutScreenCanvasSizeOptions
$creadPrec :: ReadPrec FreeFormLayoutScreenCanvasSizeOptions
readList :: ReadS [FreeFormLayoutScreenCanvasSizeOptions]
$creadList :: ReadS [FreeFormLayoutScreenCanvasSizeOptions]
readsPrec :: Int -> ReadS FreeFormLayoutScreenCanvasSizeOptions
$creadsPrec :: Int -> ReadS FreeFormLayoutScreenCanvasSizeOptions
Prelude.Read, Int -> FreeFormLayoutScreenCanvasSizeOptions -> ShowS
[FreeFormLayoutScreenCanvasSizeOptions] -> ShowS
FreeFormLayoutScreenCanvasSizeOptions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FreeFormLayoutScreenCanvasSizeOptions] -> ShowS
$cshowList :: [FreeFormLayoutScreenCanvasSizeOptions] -> ShowS
show :: FreeFormLayoutScreenCanvasSizeOptions -> String
$cshow :: FreeFormLayoutScreenCanvasSizeOptions -> String
showsPrec :: Int -> FreeFormLayoutScreenCanvasSizeOptions -> ShowS
$cshowsPrec :: Int -> FreeFormLayoutScreenCanvasSizeOptions -> ShowS
Prelude.Show, forall x.
Rep FreeFormLayoutScreenCanvasSizeOptions x
-> FreeFormLayoutScreenCanvasSizeOptions
forall x.
FreeFormLayoutScreenCanvasSizeOptions
-> Rep FreeFormLayoutScreenCanvasSizeOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FreeFormLayoutScreenCanvasSizeOptions x
-> FreeFormLayoutScreenCanvasSizeOptions
$cfrom :: forall x.
FreeFormLayoutScreenCanvasSizeOptions
-> Rep FreeFormLayoutScreenCanvasSizeOptions x
Prelude.Generic)
newFreeFormLayoutScreenCanvasSizeOptions ::
Prelude.Text ->
FreeFormLayoutScreenCanvasSizeOptions
newFreeFormLayoutScreenCanvasSizeOptions :: Text -> FreeFormLayoutScreenCanvasSizeOptions
newFreeFormLayoutScreenCanvasSizeOptions
Text
pOptimizedViewPortWidth_ =
FreeFormLayoutScreenCanvasSizeOptions'
{ $sel:optimizedViewPortWidth:FreeFormLayoutScreenCanvasSizeOptions' :: Text
optimizedViewPortWidth =
Text
pOptimizedViewPortWidth_
}
freeFormLayoutScreenCanvasSizeOptions_optimizedViewPortWidth :: Lens.Lens' FreeFormLayoutScreenCanvasSizeOptions Prelude.Text
freeFormLayoutScreenCanvasSizeOptions_optimizedViewPortWidth :: Lens' FreeFormLayoutScreenCanvasSizeOptions Text
freeFormLayoutScreenCanvasSizeOptions_optimizedViewPortWidth = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FreeFormLayoutScreenCanvasSizeOptions' {Text
optimizedViewPortWidth :: Text
$sel:optimizedViewPortWidth:FreeFormLayoutScreenCanvasSizeOptions' :: FreeFormLayoutScreenCanvasSizeOptions -> Text
optimizedViewPortWidth} -> Text
optimizedViewPortWidth) (\s :: FreeFormLayoutScreenCanvasSizeOptions
s@FreeFormLayoutScreenCanvasSizeOptions' {} Text
a -> FreeFormLayoutScreenCanvasSizeOptions
s {$sel:optimizedViewPortWidth:FreeFormLayoutScreenCanvasSizeOptions' :: Text
optimizedViewPortWidth = Text
a} :: FreeFormLayoutScreenCanvasSizeOptions)
instance
Data.FromJSON
FreeFormLayoutScreenCanvasSizeOptions
where
parseJSON :: Value -> Parser FreeFormLayoutScreenCanvasSizeOptions
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"FreeFormLayoutScreenCanvasSizeOptions"
( \Object
x ->
Text -> FreeFormLayoutScreenCanvasSizeOptions
FreeFormLayoutScreenCanvasSizeOptions'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"OptimizedViewPortWidth")
)
instance
Prelude.Hashable
FreeFormLayoutScreenCanvasSizeOptions
where
hashWithSalt :: Int -> FreeFormLayoutScreenCanvasSizeOptions -> Int
hashWithSalt
Int
_salt
FreeFormLayoutScreenCanvasSizeOptions' {Text
optimizedViewPortWidth :: Text
$sel:optimizedViewPortWidth:FreeFormLayoutScreenCanvasSizeOptions' :: FreeFormLayoutScreenCanvasSizeOptions -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
optimizedViewPortWidth
instance
Prelude.NFData
FreeFormLayoutScreenCanvasSizeOptions
where
rnf :: FreeFormLayoutScreenCanvasSizeOptions -> ()
rnf FreeFormLayoutScreenCanvasSizeOptions' {Text
optimizedViewPortWidth :: Text
$sel:optimizedViewPortWidth:FreeFormLayoutScreenCanvasSizeOptions' :: FreeFormLayoutScreenCanvasSizeOptions -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
optimizedViewPortWidth
instance
Data.ToJSON
FreeFormLayoutScreenCanvasSizeOptions
where
toJSON :: FreeFormLayoutScreenCanvasSizeOptions -> Value
toJSON FreeFormLayoutScreenCanvasSizeOptions' {Text
optimizedViewPortWidth :: Text
$sel:optimizedViewPortWidth:FreeFormLayoutScreenCanvasSizeOptions' :: FreeFormLayoutScreenCanvasSizeOptions -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just
( Key
"OptimizedViewPortWidth"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
optimizedViewPortWidth
)
]
)