module Stratosphere.QuickSight.Dashboard.ExportWithHiddenFieldsOptionProperty (
ExportWithHiddenFieldsOptionProperty(..),
mkExportWithHiddenFieldsOptionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExportWithHiddenFieldsOptionProperty
=
ExportWithHiddenFieldsOptionProperty {ExportWithHiddenFieldsOptionProperty -> ()
haddock_workaround_ :: (),
ExportWithHiddenFieldsOptionProperty -> Maybe (Value Text)
availabilityStatus :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool
(ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool)
-> (ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool)
-> Eq ExportWithHiddenFieldsOptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool
== :: ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool
$c/= :: ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool
/= :: ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty -> Bool
Prelude.Eq, Int -> ExportWithHiddenFieldsOptionProperty -> ShowS
[ExportWithHiddenFieldsOptionProperty] -> ShowS
ExportWithHiddenFieldsOptionProperty -> String
(Int -> ExportWithHiddenFieldsOptionProperty -> ShowS)
-> (ExportWithHiddenFieldsOptionProperty -> String)
-> ([ExportWithHiddenFieldsOptionProperty] -> ShowS)
-> Show ExportWithHiddenFieldsOptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExportWithHiddenFieldsOptionProperty -> ShowS
showsPrec :: Int -> ExportWithHiddenFieldsOptionProperty -> ShowS
$cshow :: ExportWithHiddenFieldsOptionProperty -> String
show :: ExportWithHiddenFieldsOptionProperty -> String
$cshowList :: [ExportWithHiddenFieldsOptionProperty] -> ShowS
showList :: [ExportWithHiddenFieldsOptionProperty] -> ShowS
Prelude.Show)
mkExportWithHiddenFieldsOptionProperty ::
ExportWithHiddenFieldsOptionProperty
mkExportWithHiddenFieldsOptionProperty :: ExportWithHiddenFieldsOptionProperty
mkExportWithHiddenFieldsOptionProperty
= ExportWithHiddenFieldsOptionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), availabilityStatus :: Maybe (Value Text)
availabilityStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExportWithHiddenFieldsOptionProperty where
toResourceProperties :: ExportWithHiddenFieldsOptionProperty -> ResourceProperties
toResourceProperties ExportWithHiddenFieldsOptionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ExportWithHiddenFieldsOptionProperty -> ()
availabilityStatus :: ExportWithHiddenFieldsOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityStatus :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.ExportWithHiddenFieldsOption",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailabilityStatus" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
availabilityStatus])}
instance JSON.ToJSON ExportWithHiddenFieldsOptionProperty where
toJSON :: ExportWithHiddenFieldsOptionProperty -> Value
toJSON ExportWithHiddenFieldsOptionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ExportWithHiddenFieldsOptionProperty -> ()
availabilityStatus :: ExportWithHiddenFieldsOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityStatus :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailabilityStatus" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
availabilityStatus]))
instance Property "AvailabilityStatus" ExportWithHiddenFieldsOptionProperty where
type PropertyType "AvailabilityStatus" ExportWithHiddenFieldsOptionProperty = Value Prelude.Text
set :: PropertyType
"AvailabilityStatus" ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty
-> ExportWithHiddenFieldsOptionProperty
set PropertyType
"AvailabilityStatus" ExportWithHiddenFieldsOptionProperty
newValue ExportWithHiddenFieldsOptionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ExportWithHiddenFieldsOptionProperty -> ()
availabilityStatus :: ExportWithHiddenFieldsOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityStatus :: Maybe (Value Text)
..}
= ExportWithHiddenFieldsOptionProperty
{availabilityStatus :: Maybe (Value Text)
availabilityStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AvailabilityStatus" ExportWithHiddenFieldsOptionProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}