### YamlMime:JavaType uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent" name: "BasicDigitalTwinComponent" nameWithType: "BasicDigitalTwinComponent" summary: "Properties on a component that adhere to a specific model." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **BasicDigitalTwinComponent**" constructors: - uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.BasicDigitalTwinComponent()" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.BasicDigitalTwinComponent()" name: "BasicDigitalTwinComponent()" nameWithType: "BasicDigitalTwinComponent.BasicDigitalTwinComponent()" syntax: "public BasicDigitalTwinComponent()" methods: - uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.addMetadata(java.lang.String,com.azure.digitaltwins.core.DigitalTwinPropertyMetadata)" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.addMetadata(String key, DigitalTwinPropertyMetadata metadata)" name: "addMetadata(String key, DigitalTwinPropertyMetadata metadata)" nameWithType: "BasicDigitalTwinComponent.addMetadata(String key, DigitalTwinPropertyMetadata metadata)" summary: "Adds property metadata." parameters: - description: "The key that maps to the property metadata" name: "key" type: "String" - description: "Property metadata." name: "metadata" type: "" syntax: "public BasicDigitalTwinComponent addMetadata(String key, DigitalTwinPropertyMetadata metadata)" desc: "Adds property metadata." returns: description: "The BasicDigitalTwinComponent object itself." type: "" - uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.addToContents(java.lang.String,java.lang.Object)" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.addToContents(String key, Object value)" name: "addToContents(String key, Object value)" nameWithType: "BasicDigitalTwinComponent.addToContents(String key, Object value)" summary: "Adds additional custom property to the component's contents." parameters: - description: "The key of the additional property to be added to the component's contents." name: "key" type: "String" - description: "The value of the additional property to be added to the component's contents." name: "value" type: "Object" syntax: "public BasicDigitalTwinComponent addToContents(String key, Object value)" desc: "Adds additional custom property to the component's contents." returns: description: "The BasicDigitalTwinComponent object itself." type: "" - uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.getContents()" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.getContents()" name: "getContents()" nameWithType: "BasicDigitalTwinComponent.getContents()" summary: "Gets the custom contents" syntax: "public Map getContents()" desc: "Gets the custom contents" returns: description: "The custom contents" type: "Map<String,Object>" - uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.getLastUpdatedOn()" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.getLastUpdatedOn()" name: "getLastUpdatedOn()" nameWithType: "BasicDigitalTwinComponent.getLastUpdatedOn()" summary: "Gets the date and time when the twin was last updated." syntax: "public OffsetDateTime getLastUpdatedOn()" desc: "Gets the date and time when the twin was last updated." returns: description: "The date and time the twin was last updated." type: "OffsetDateTime" - uid: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.getMetadata()" fullName: "com.azure.digitaltwins.core.BasicDigitalTwinComponent.getMetadata()" name: "getMetadata()" nameWithType: "BasicDigitalTwinComponent.getMetadata()" summary: "Gets the metadata about the model." syntax: "public Map getMetadata()" desc: "Gets the metadata about the model." returns: description: "The component metadata." type: "Map<String,>" type: "class" desc: "Properties on a component that adhere to a specific model." metadata: {} package: "com.azure.digitaltwins.core" artifact: com.azure:azure-digitaltwins-core:1.3.23