module Stratosphere.AmplifyUIBuilder.Form.SectionalElementProperty (
module Exports, SectionalElementProperty(..),
mkSectionalElementProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AmplifyUIBuilder.Form.FieldPositionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SectionalElementProperty
=
SectionalElementProperty {SectionalElementProperty -> ()
haddock_workaround_ :: (),
SectionalElementProperty -> Maybe (Value Bool)
excluded :: (Prelude.Maybe (Value Prelude.Bool)),
SectionalElementProperty -> Maybe (Value Double)
level :: (Prelude.Maybe (Value Prelude.Double)),
SectionalElementProperty -> Maybe (Value Text)
orientation :: (Prelude.Maybe (Value Prelude.Text)),
SectionalElementProperty -> Maybe FieldPositionProperty
position :: (Prelude.Maybe FieldPositionProperty),
SectionalElementProperty -> Maybe (Value Text)
text :: (Prelude.Maybe (Value Prelude.Text)),
SectionalElementProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (SectionalElementProperty -> SectionalElementProperty -> Bool
(SectionalElementProperty -> SectionalElementProperty -> Bool)
-> (SectionalElementProperty -> SectionalElementProperty -> Bool)
-> Eq SectionalElementProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SectionalElementProperty -> SectionalElementProperty -> Bool
== :: SectionalElementProperty -> SectionalElementProperty -> Bool
$c/= :: SectionalElementProperty -> SectionalElementProperty -> Bool
/= :: SectionalElementProperty -> SectionalElementProperty -> Bool
Prelude.Eq, Int -> SectionalElementProperty -> ShowS
[SectionalElementProperty] -> ShowS
SectionalElementProperty -> String
(Int -> SectionalElementProperty -> ShowS)
-> (SectionalElementProperty -> String)
-> ([SectionalElementProperty] -> ShowS)
-> Show SectionalElementProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SectionalElementProperty -> ShowS
showsPrec :: Int -> SectionalElementProperty -> ShowS
$cshow :: SectionalElementProperty -> String
show :: SectionalElementProperty -> String
$cshowList :: [SectionalElementProperty] -> ShowS
showList :: [SectionalElementProperty] -> ShowS
Prelude.Show)
mkSectionalElementProperty ::
Value Prelude.Text -> SectionalElementProperty
mkSectionalElementProperty :: Value Text -> SectionalElementProperty
mkSectionalElementProperty Value Text
type'
= SectionalElementProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
excluded :: Maybe (Value Bool)
excluded = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, level :: Maybe (Value Double)
level = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
orientation :: Maybe (Value Text)
orientation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, position :: Maybe FieldPositionProperty
position = Maybe FieldPositionProperty
forall a. Maybe a
Prelude.Nothing,
text :: Maybe (Value Text)
text = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SectionalElementProperty where
toResourceProperties :: SectionalElementProperty -> ResourceProperties
toResourceProperties SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AmplifyUIBuilder::Form.SectionalElement",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Type" 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..= Value Text
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Excluded" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
excluded,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Level" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
level,
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
"Orientation" (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)
orientation,
Key -> FieldPositionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Position" (FieldPositionProperty -> (Key, Value))
-> Maybe FieldPositionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FieldPositionProperty
position,
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
"Text" (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)
text]))}
instance JSON.ToJSON SectionalElementProperty where
toJSON :: SectionalElementProperty -> Value
toJSON SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Type" 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..= Value Text
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Excluded" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
excluded,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Level" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
level,
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
"Orientation" (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)
orientation,
Key -> FieldPositionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Position" (FieldPositionProperty -> (Key, Value))
-> Maybe FieldPositionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FieldPositionProperty
position,
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
"Text" (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)
text])))
instance Property "Excluded" SectionalElementProperty where
type PropertyType "Excluded" SectionalElementProperty = Value Prelude.Bool
set :: PropertyType "Excluded" SectionalElementProperty
-> SectionalElementProperty -> SectionalElementProperty
set PropertyType "Excluded" SectionalElementProperty
newValue SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= SectionalElementProperty {excluded :: Maybe (Value Bool)
excluded = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Excluded" SectionalElementProperty
Value Bool
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: ()
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Level" SectionalElementProperty where
type PropertyType "Level" SectionalElementProperty = Value Prelude.Double
set :: PropertyType "Level" SectionalElementProperty
-> SectionalElementProperty -> SectionalElementProperty
set PropertyType "Level" SectionalElementProperty
newValue SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= SectionalElementProperty {level :: Maybe (Value Double)
level = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Level" SectionalElementProperty
Value Double
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Orientation" SectionalElementProperty where
type PropertyType "Orientation" SectionalElementProperty = Value Prelude.Text
set :: PropertyType "Orientation" SectionalElementProperty
-> SectionalElementProperty -> SectionalElementProperty
set PropertyType "Orientation" SectionalElementProperty
newValue SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= SectionalElementProperty
{orientation :: Maybe (Value Text)
orientation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Orientation" SectionalElementProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Position" SectionalElementProperty where
type PropertyType "Position" SectionalElementProperty = FieldPositionProperty
set :: PropertyType "Position" SectionalElementProperty
-> SectionalElementProperty -> SectionalElementProperty
set PropertyType "Position" SectionalElementProperty
newValue SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= SectionalElementProperty {position :: Maybe FieldPositionProperty
position = FieldPositionProperty -> Maybe FieldPositionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Position" SectionalElementProperty
FieldPositionProperty
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
text :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
text :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Text" SectionalElementProperty where
type PropertyType "Text" SectionalElementProperty = Value Prelude.Text
set :: PropertyType "Text" SectionalElementProperty
-> SectionalElementProperty -> SectionalElementProperty
set PropertyType "Text" SectionalElementProperty
newValue SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= SectionalElementProperty {text :: Maybe (Value Text)
text = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Text" SectionalElementProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
type' :: Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
type' :: Value Text
..}
instance Property "Type" SectionalElementProperty where
type PropertyType "Type" SectionalElementProperty = Value Prelude.Text
set :: PropertyType "Type" SectionalElementProperty
-> SectionalElementProperty -> SectionalElementProperty
set PropertyType "Type" SectionalElementProperty
newValue SectionalElementProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
Value Text
haddock_workaround_ :: SectionalElementProperty -> ()
excluded :: SectionalElementProperty -> Maybe (Value Bool)
level :: SectionalElementProperty -> Maybe (Value Double)
orientation :: SectionalElementProperty -> Maybe (Value Text)
position :: SectionalElementProperty -> Maybe FieldPositionProperty
text :: SectionalElementProperty -> Maybe (Value Text)
type' :: SectionalElementProperty -> Value Text
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
type' :: Value Text
..}
= SectionalElementProperty {type' :: Value Text
type' = PropertyType "Type" SectionalElementProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
Maybe FieldPositionProperty
()
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
haddock_workaround_ :: ()
excluded :: Maybe (Value Bool)
level :: Maybe (Value Double)
orientation :: Maybe (Value Text)
position :: Maybe FieldPositionProperty
text :: Maybe (Value Text)
..}