module Stratosphere.WorkSpacesWeb.UserSettings.ToolbarConfigurationProperty (
ToolbarConfigurationProperty(..), mkToolbarConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ToolbarConfigurationProperty
=
ToolbarConfigurationProperty {ToolbarConfigurationProperty -> ()
haddock_workaround_ :: (),
ToolbarConfigurationProperty -> Maybe (ValueList Text)
hiddenToolbarItems :: (Prelude.Maybe (ValueList Prelude.Text)),
ToolbarConfigurationProperty -> Maybe (Value Text)
maxDisplayResolution :: (Prelude.Maybe (Value Prelude.Text)),
ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: (Prelude.Maybe (Value Prelude.Text)),
ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool
(ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool)
-> (ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool)
-> Eq ToolbarConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool
== :: ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool
$c/= :: ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool
/= :: ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> Bool
Prelude.Eq, Int -> ToolbarConfigurationProperty -> ShowS
[ToolbarConfigurationProperty] -> ShowS
ToolbarConfigurationProperty -> String
(Int -> ToolbarConfigurationProperty -> ShowS)
-> (ToolbarConfigurationProperty -> String)
-> ([ToolbarConfigurationProperty] -> ShowS)
-> Show ToolbarConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ToolbarConfigurationProperty -> ShowS
showsPrec :: Int -> ToolbarConfigurationProperty -> ShowS
$cshow :: ToolbarConfigurationProperty -> String
show :: ToolbarConfigurationProperty -> String
$cshowList :: [ToolbarConfigurationProperty] -> ShowS
showList :: [ToolbarConfigurationProperty] -> ShowS
Prelude.Show)
mkToolbarConfigurationProperty :: ToolbarConfigurationProperty
mkToolbarConfigurationProperty :: ToolbarConfigurationProperty
mkToolbarConfigurationProperty
= ToolbarConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), hiddenToolbarItems :: Maybe (ValueList Text)
hiddenToolbarItems = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
maxDisplayResolution :: Maybe (Value Text)
maxDisplayResolution = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
toolbarType :: Maybe (Value Text)
toolbarType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, visualMode :: Maybe (Value Text)
visualMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ToolbarConfigurationProperty where
toResourceProperties :: ToolbarConfigurationProperty -> ResourceProperties
toResourceProperties ToolbarConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ToolbarConfigurationProperty -> ()
hiddenToolbarItems :: ToolbarConfigurationProperty -> Maybe (ValueList Text)
maxDisplayResolution :: ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: ToolbarConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WorkSpacesWeb::UserSettings.ToolbarConfiguration",
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 -> ValueList 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
"HiddenToolbarItems" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
hiddenToolbarItems,
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
"MaxDisplayResolution" (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)
maxDisplayResolution,
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
"ToolbarType" (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)
toolbarType,
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
"VisualMode" (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)
visualMode])}
instance JSON.ToJSON ToolbarConfigurationProperty where
toJSON :: ToolbarConfigurationProperty -> Value
toJSON ToolbarConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ToolbarConfigurationProperty -> ()
hiddenToolbarItems :: ToolbarConfigurationProperty -> Maybe (ValueList Text)
maxDisplayResolution :: ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: ToolbarConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: 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 -> ValueList 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
"HiddenToolbarItems" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
hiddenToolbarItems,
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
"MaxDisplayResolution" (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)
maxDisplayResolution,
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
"ToolbarType" (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)
toolbarType,
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
"VisualMode" (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)
visualMode]))
instance Property "HiddenToolbarItems" ToolbarConfigurationProperty where
type PropertyType "HiddenToolbarItems" ToolbarConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "HiddenToolbarItems" ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> ToolbarConfigurationProperty
set PropertyType "HiddenToolbarItems" ToolbarConfigurationProperty
newValue ToolbarConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ToolbarConfigurationProperty -> ()
hiddenToolbarItems :: ToolbarConfigurationProperty -> Maybe (ValueList Text)
maxDisplayResolution :: ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: ToolbarConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
= ToolbarConfigurationProperty
{hiddenToolbarItems :: Maybe (ValueList Text)
hiddenToolbarItems = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HiddenToolbarItems" ToolbarConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
haddock_workaround_ :: ()
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
instance Property "MaxDisplayResolution" ToolbarConfigurationProperty where
type PropertyType "MaxDisplayResolution" ToolbarConfigurationProperty = Value Prelude.Text
set :: PropertyType "MaxDisplayResolution" ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> ToolbarConfigurationProperty
set PropertyType "MaxDisplayResolution" ToolbarConfigurationProperty
newValue ToolbarConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ToolbarConfigurationProperty -> ()
hiddenToolbarItems :: ToolbarConfigurationProperty -> Maybe (ValueList Text)
maxDisplayResolution :: ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: ToolbarConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
= ToolbarConfigurationProperty
{maxDisplayResolution :: Maybe (Value Text)
maxDisplayResolution = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxDisplayResolution" ToolbarConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
instance Property "ToolbarType" ToolbarConfigurationProperty where
type PropertyType "ToolbarType" ToolbarConfigurationProperty = Value Prelude.Text
set :: PropertyType "ToolbarType" ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> ToolbarConfigurationProperty
set PropertyType "ToolbarType" ToolbarConfigurationProperty
newValue ToolbarConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ToolbarConfigurationProperty -> ()
hiddenToolbarItems :: ToolbarConfigurationProperty -> Maybe (ValueList Text)
maxDisplayResolution :: ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: ToolbarConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
= ToolbarConfigurationProperty
{toolbarType :: Maybe (Value Text)
toolbarType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ToolbarType" ToolbarConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
instance Property "VisualMode" ToolbarConfigurationProperty where
type PropertyType "VisualMode" ToolbarConfigurationProperty = Value Prelude.Text
set :: PropertyType "VisualMode" ToolbarConfigurationProperty
-> ToolbarConfigurationProperty -> ToolbarConfigurationProperty
set PropertyType "VisualMode" ToolbarConfigurationProperty
newValue ToolbarConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ToolbarConfigurationProperty -> ()
hiddenToolbarItems :: ToolbarConfigurationProperty -> Maybe (ValueList Text)
maxDisplayResolution :: ToolbarConfigurationProperty -> Maybe (Value Text)
toolbarType :: ToolbarConfigurationProperty -> Maybe (Value Text)
visualMode :: ToolbarConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
visualMode :: Maybe (Value Text)
..}
= ToolbarConfigurationProperty
{visualMode :: Maybe (Value Text)
visualMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VisualMode" ToolbarConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
haddock_workaround_ :: ()
hiddenToolbarItems :: Maybe (ValueList Text)
maxDisplayResolution :: Maybe (Value Text)
toolbarType :: Maybe (Value Text)
..}