module Stratosphere.AmplifyUIBuilder.Form.FieldPositionProperty (
        FieldPositionProperty(..), mkFieldPositionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FieldPositionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-fieldposition.html>
    FieldPositionProperty {FieldPositionProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-fieldposition.html#cfn-amplifyuibuilder-form-fieldposition-below>
                           FieldPositionProperty -> Maybe (Value Text)
below :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-fieldposition.html#cfn-amplifyuibuilder-form-fieldposition-fixed>
                           FieldPositionProperty -> Maybe (Value Text)
fixed :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-fieldposition.html#cfn-amplifyuibuilder-form-fieldposition-rightof>
                           FieldPositionProperty -> Maybe (Value Text)
rightOf :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FieldPositionProperty -> FieldPositionProperty -> Bool
(FieldPositionProperty -> FieldPositionProperty -> Bool)
-> (FieldPositionProperty -> FieldPositionProperty -> Bool)
-> Eq FieldPositionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FieldPositionProperty -> FieldPositionProperty -> Bool
== :: FieldPositionProperty -> FieldPositionProperty -> Bool
$c/= :: FieldPositionProperty -> FieldPositionProperty -> Bool
/= :: FieldPositionProperty -> FieldPositionProperty -> Bool
Prelude.Eq, Int -> FieldPositionProperty -> ShowS
[FieldPositionProperty] -> ShowS
FieldPositionProperty -> String
(Int -> FieldPositionProperty -> ShowS)
-> (FieldPositionProperty -> String)
-> ([FieldPositionProperty] -> ShowS)
-> Show FieldPositionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FieldPositionProperty -> ShowS
showsPrec :: Int -> FieldPositionProperty -> ShowS
$cshow :: FieldPositionProperty -> String
show :: FieldPositionProperty -> String
$cshowList :: [FieldPositionProperty] -> ShowS
showList :: [FieldPositionProperty] -> ShowS
Prelude.Show)
mkFieldPositionProperty :: FieldPositionProperty
mkFieldPositionProperty :: FieldPositionProperty
mkFieldPositionProperty
  = FieldPositionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), below :: Maybe (Value Text)
below = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       fixed :: Maybe (Value Text)
fixed = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, rightOf :: Maybe (Value Text)
rightOf = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FieldPositionProperty where
  toResourceProperties :: FieldPositionProperty -> ResourceProperties
toResourceProperties FieldPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FieldPositionProperty -> ()
below :: FieldPositionProperty -> Maybe (Value Text)
fixed :: FieldPositionProperty -> Maybe (Value Text)
rightOf :: FieldPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AmplifyUIBuilder::Form.FieldPosition",
         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
"Below" (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)
below,
                            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
"Fixed" (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)
fixed,
                            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
"RightOf" (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)
rightOf])}
instance JSON.ToJSON FieldPositionProperty where
  toJSON :: FieldPositionProperty -> Value
toJSON FieldPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FieldPositionProperty -> ()
below :: FieldPositionProperty -> Maybe (Value Text)
fixed :: FieldPositionProperty -> Maybe (Value Text)
rightOf :: FieldPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
rightOf :: 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
"Below" (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)
below,
               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
"Fixed" (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)
fixed,
               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
"RightOf" (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)
rightOf]))
instance Property "Below" FieldPositionProperty where
  type PropertyType "Below" FieldPositionProperty = Value Prelude.Text
  set :: PropertyType "Below" FieldPositionProperty
-> FieldPositionProperty -> FieldPositionProperty
set PropertyType "Below" FieldPositionProperty
newValue FieldPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FieldPositionProperty -> ()
below :: FieldPositionProperty -> Maybe (Value Text)
fixed :: FieldPositionProperty -> Maybe (Value Text)
rightOf :: FieldPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
..}
    = FieldPositionProperty {below :: Maybe (Value Text)
below = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Below" FieldPositionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fixed :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
haddock_workaround_ :: ()
fixed :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
..}
instance Property "Fixed" FieldPositionProperty where
  type PropertyType "Fixed" FieldPositionProperty = Value Prelude.Text
  set :: PropertyType "Fixed" FieldPositionProperty
-> FieldPositionProperty -> FieldPositionProperty
set PropertyType "Fixed" FieldPositionProperty
newValue FieldPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FieldPositionProperty -> ()
below :: FieldPositionProperty -> Maybe (Value Text)
fixed :: FieldPositionProperty -> Maybe (Value Text)
rightOf :: FieldPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
..}
    = FieldPositionProperty {fixed :: Maybe (Value Text)
fixed = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Fixed" FieldPositionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
below :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
..}
instance Property "RightOf" FieldPositionProperty where
  type PropertyType "RightOf" FieldPositionProperty = Value Prelude.Text
  set :: PropertyType "RightOf" FieldPositionProperty
-> FieldPositionProperty -> FieldPositionProperty
set PropertyType "RightOf" FieldPositionProperty
newValue FieldPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FieldPositionProperty -> ()
below :: FieldPositionProperty -> Maybe (Value Text)
fixed :: FieldPositionProperty -> Maybe (Value Text)
rightOf :: FieldPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
rightOf :: Maybe (Value Text)
..}
    = FieldPositionProperty {rightOf :: Maybe (Value Text)
rightOf = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RightOf" FieldPositionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
haddock_workaround_ :: ()
below :: Maybe (Value Text)
fixed :: Maybe (Value Text)
..}