module Stratosphere.IoTTwinMaker.Entity (
module Exports, Entity(..), mkEntity
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTTwinMaker.Entity.ComponentProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTTwinMaker.Entity.CompositeComponentProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Entity
=
Entity {Entity -> ()
haddock_workaround_ :: (),
Entity -> Maybe (Map Text ComponentProperty)
components :: (Prelude.Maybe (Prelude.Map Prelude.Text ComponentProperty)),
Entity -> Maybe (Map Text CompositeComponentProperty)
compositeComponents :: (Prelude.Maybe (Prelude.Map Prelude.Text CompositeComponentProperty)),
Entity -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Entity -> Maybe (Value Text)
entityId :: (Prelude.Maybe (Value Prelude.Text)),
Entity -> Value Text
entityName :: (Value Prelude.Text),
Entity -> Maybe (Value Text)
parentEntityId :: (Prelude.Maybe (Value Prelude.Text)),
Entity -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
Entity -> Value Text
workspaceId :: (Value Prelude.Text)}
deriving stock (Entity -> Entity -> Bool
(Entity -> Entity -> Bool)
-> (Entity -> Entity -> Bool) -> Eq Entity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Entity -> Entity -> Bool
== :: Entity -> Entity -> Bool
$c/= :: Entity -> Entity -> Bool
/= :: Entity -> Entity -> Bool
Prelude.Eq, Int -> Entity -> ShowS
[Entity] -> ShowS
Entity -> String
(Int -> Entity -> ShowS)
-> (Entity -> String) -> ([Entity] -> ShowS) -> Show Entity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Entity -> ShowS
showsPrec :: Int -> Entity -> ShowS
$cshow :: Entity -> String
show :: Entity -> String
$cshowList :: [Entity] -> ShowS
showList :: [Entity] -> ShowS
Prelude.Show)
mkEntity :: Value Prelude.Text -> Value Prelude.Text -> Entity
mkEntity :: Value Text -> Value Text -> Entity
mkEntity Value Text
entityName Value Text
workspaceId
= Entity
{haddock_workaround_ :: ()
haddock_workaround_ = (), entityName :: Value Text
entityName = Value Text
entityName,
workspaceId :: Value Text
workspaceId = Value Text
workspaceId, components :: Maybe (Map Text ComponentProperty)
components = Maybe (Map Text ComponentProperty)
forall a. Maybe a
Prelude.Nothing,
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
compositeComponents = Maybe (Map Text CompositeComponentProperty)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, entityId :: Maybe (Value Text)
entityId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
parentEntityId :: Maybe (Value Text)
parentEntityId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Entity where
toResourceProperties :: Entity -> ResourceProperties
toResourceProperties Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTTwinMaker::Entity",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"EntityName" 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
entityName,
Key
"WorkspaceId" 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
workspaceId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Map Text ComponentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Components" (Map Text ComponentProperty -> (Key, Value))
-> Maybe (Map Text ComponentProperty) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ComponentProperty)
components,
Key -> Map Text CompositeComponentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CompositeComponents" (Map Text CompositeComponentProperty -> (Key, Value))
-> Maybe (Map Text CompositeComponentProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text CompositeComponentProperty)
compositeComponents,
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
"Description" (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)
description,
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
"EntityId" (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)
entityId,
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
"ParentEntityId" (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)
parentEntityId,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON Entity where
toJSON :: Entity -> Value
toJSON Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: 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
"EntityName" 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
entityName,
Key
"WorkspaceId" 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
workspaceId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Map Text ComponentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Components" (Map Text ComponentProperty -> (Key, Value))
-> Maybe (Map Text ComponentProperty) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ComponentProperty)
components,
Key -> Map Text CompositeComponentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CompositeComponents" (Map Text CompositeComponentProperty -> (Key, Value))
-> Maybe (Map Text CompositeComponentProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text CompositeComponentProperty)
compositeComponents,
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
"Description" (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)
description,
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
"EntityId" (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)
entityId,
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
"ParentEntityId" (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)
parentEntityId,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Components" Entity where
type PropertyType "Components" Entity = Prelude.Map Prelude.Text ComponentProperty
set :: PropertyType "Components" Entity -> Entity -> Entity
set PropertyType "Components" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= Entity {components :: Maybe (Map Text ComponentProperty)
components = Map Text ComponentProperty -> Maybe (Map Text ComponentProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text ComponentProperty
PropertyType "Components" Entity
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
haddock_workaround_ :: ()
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
instance Property "CompositeComponents" Entity where
type PropertyType "CompositeComponents" Entity = Prelude.Map Prelude.Text CompositeComponentProperty
set :: PropertyType "CompositeComponents" Entity -> Entity -> Entity
set PropertyType "CompositeComponents" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= Entity {compositeComponents :: Maybe (Map Text CompositeComponentProperty)
compositeComponents = Map Text CompositeComponentProperty
-> Maybe (Map Text CompositeComponentProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text CompositeComponentProperty
PropertyType "CompositeComponents" Entity
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
instance Property "Description" Entity where
type PropertyType "Description" Entity = Value Prelude.Text
set :: PropertyType "Description" Entity -> Entity -> Entity
set PropertyType "Description" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= Entity {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Entity
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
instance Property "EntityId" Entity where
type PropertyType "EntityId" Entity = Value Prelude.Text
set :: PropertyType "EntityId" Entity -> Entity -> Entity
set PropertyType "EntityId" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= Entity {entityId :: Maybe (Value Text)
entityId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EntityId" Entity
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
instance Property "EntityName" Entity where
type PropertyType "EntityName" Entity = Value Prelude.Text
set :: PropertyType "EntityName" Entity -> Entity -> Entity
set PropertyType "EntityName" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..} = Entity {entityName :: Value Text
entityName = PropertyType "EntityName" Entity
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
instance Property "ParentEntityId" Entity where
type PropertyType "ParentEntityId" Entity = Value Prelude.Text
set :: PropertyType "ParentEntityId" Entity -> Entity -> Entity
set PropertyType "ParentEntityId" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= Entity {parentEntityId :: Maybe (Value Text)
parentEntityId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ParentEntityId" Entity
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
instance Property "Tags" Entity where
type PropertyType "Tags" Entity = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" Entity -> Entity -> Entity
set PropertyType "Tags" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..}
= Entity {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" Entity
newValue, Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
workspaceId :: Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
workspaceId :: Value Text
..}
instance Property "WorkspaceId" Entity where
type PropertyType "WorkspaceId" Entity = Value Prelude.Text
set :: PropertyType "WorkspaceId" Entity -> Entity -> Entity
set PropertyType "WorkspaceId" Entity
newValue Entity {Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Entity -> ()
components :: Entity -> Maybe (Map Text ComponentProperty)
compositeComponents :: Entity -> Maybe (Map Text CompositeComponentProperty)
description :: Entity -> Maybe (Value Text)
entityId :: Entity -> Maybe (Value Text)
entityName :: Entity -> Value Text
parentEntityId :: Entity -> Maybe (Value Text)
tags :: Entity -> Maybe (Map Text (Value Text))
workspaceId :: Entity -> Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
workspaceId :: Value Text
..} = Entity {workspaceId :: Value Text
workspaceId = PropertyType "WorkspaceId" Entity
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Map Text CompositeComponentProperty)
Maybe (Map Text ComponentProperty)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
components :: Maybe (Map Text ComponentProperty)
compositeComponents :: Maybe (Map Text CompositeComponentProperty)
description :: Maybe (Value Text)
entityId :: Maybe (Value Text)
entityName :: Value Text
parentEntityId :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}