Class AssetUpdateProperties
java.lang.Object
com.azure.resourcemanager.deviceregistry.models.AssetUpdateProperties
The updatable properties of the Asset.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the assetType property: Resource path to asset type (model) definition.Get the attributes property: A set of key-value pairs that contain custom attributes set by the customer.Get the dataPoints property: Array of data points that are part of the asset.Get the defaultDataPointsConfiguration property: Protocol-specific default configuration for all data points.Get the defaultEventsConfiguration property: Protocol-specific default configuration for all events.Get the description property: Human-readable description of the asset.Get the displayName property: Human-readable display name.Get the documentationUri property: Reference to the documentation.enabled()
Get the enabled property: Enabled/Disabled status of the asset.events()
Get the events property: Array of events that are part of the asset.Get the hardwareRevision property: Revision number of the hardware.Get the manufacturer property: Asset manufacturer name.Get the manufacturerUri property: Asset manufacturer URI.model()
Get the model property: Asset model name.Get the productCode property: Asset product code.Get the serialNumber property: Asset serial number.Get the softwareRevision property: Revision number of the software.void
validate()
Validates the instance.withAssetType
(String assetType) Set the assetType property: Resource path to asset type (model) definition.withAttributes
(Map<String, Object> attributes) Set the attributes property: A set of key-value pairs that contain custom attributes set by the customer.withDataPoints
(List<DataPoint> dataPoints) Set the dataPoints property: Array of data points that are part of the asset.withDefaultDataPointsConfiguration
(String defaultDataPointsConfiguration) Set the defaultDataPointsConfiguration property: Protocol-specific default configuration for all data points.withDefaultEventsConfiguration
(String defaultEventsConfiguration) Set the defaultEventsConfiguration property: Protocol-specific default configuration for all events.withDescription
(String description) Set the description property: Human-readable description of the asset.withDisplayName
(String displayName) Set the displayName property: Human-readable display name.withDocumentationUri
(String documentationUri) Set the documentationUri property: Reference to the documentation.withEnabled
(Boolean enabled) Set the enabled property: Enabled/Disabled status of the asset.withEvents
(List<Event> events) Set the events property: Array of events that are part of the asset.withHardwareRevision
(String hardwareRevision) Set the hardwareRevision property: Revision number of the hardware.withManufacturer
(String manufacturer) Set the manufacturer property: Asset manufacturer name.withManufacturerUri
(String manufacturerUri) Set the manufacturerUri property: Asset manufacturer URI.Set the model property: Asset model name.withProductCode
(String productCode) Set the productCode property: Asset product code.withSerialNumber
(String serialNumber) Set the serialNumber property: Asset serial number.withSoftwareRevision
(String softwareRevision) Set the softwareRevision property: Revision number of the software.
-
Constructor Details
-
AssetUpdateProperties
public AssetUpdateProperties()Creates an instance of AssetUpdateProperties class.
-
-
Method Details
-
assetType
Get the assetType property: Resource path to asset type (model) definition.- Returns:
- the assetType value.
-
withAssetType
Set the assetType property: Resource path to asset type (model) definition.- Parameters:
assetType
- the assetType value to set.- Returns:
- the AssetUpdateProperties object itself.
-
enabled
Get the enabled property: Enabled/Disabled status of the asset.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Enabled/Disabled status of the asset.- Parameters:
enabled
- the enabled value to set.- Returns:
- the AssetUpdateProperties object itself.
-
displayName
Get the displayName property: Human-readable display name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Human-readable display name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the AssetUpdateProperties object itself.
-
description
Get the description property: Human-readable description of the asset.- Returns:
- the description value.
-
withDescription
Set the description property: Human-readable description of the asset.- Parameters:
description
- the description value to set.- Returns:
- the AssetUpdateProperties object itself.
-
manufacturer
Get the manufacturer property: Asset manufacturer name.- Returns:
- the manufacturer value.
-
withManufacturer
Set the manufacturer property: Asset manufacturer name.- Parameters:
manufacturer
- the manufacturer value to set.- Returns:
- the AssetUpdateProperties object itself.
-
manufacturerUri
Get the manufacturerUri property: Asset manufacturer URI.- Returns:
- the manufacturerUri value.
-
withManufacturerUri
Set the manufacturerUri property: Asset manufacturer URI.- Parameters:
manufacturerUri
- the manufacturerUri value to set.- Returns:
- the AssetUpdateProperties object itself.
-
model
Get the model property: Asset model name.- Returns:
- the model value.
-
withModel
Set the model property: Asset model name.- Parameters:
model
- the model value to set.- Returns:
- the AssetUpdateProperties object itself.
-
productCode
Get the productCode property: Asset product code.- Returns:
- the productCode value.
-
withProductCode
Set the productCode property: Asset product code.- Parameters:
productCode
- the productCode value to set.- Returns:
- the AssetUpdateProperties object itself.
-
hardwareRevision
Get the hardwareRevision property: Revision number of the hardware.- Returns:
- the hardwareRevision value.
-
withHardwareRevision
Set the hardwareRevision property: Revision number of the hardware.- Parameters:
hardwareRevision
- the hardwareRevision value to set.- Returns:
- the AssetUpdateProperties object itself.
-
softwareRevision
Get the softwareRevision property: Revision number of the software.- Returns:
- the softwareRevision value.
-
withSoftwareRevision
Set the softwareRevision property: Revision number of the software.- Parameters:
softwareRevision
- the softwareRevision value to set.- Returns:
- the AssetUpdateProperties object itself.
-
documentationUri
Get the documentationUri property: Reference to the documentation.- Returns:
- the documentationUri value.
-
withDocumentationUri
Set the documentationUri property: Reference to the documentation.- Parameters:
documentationUri
- the documentationUri value to set.- Returns:
- the AssetUpdateProperties object itself.
-
serialNumber
Get the serialNumber property: Asset serial number.- Returns:
- the serialNumber value.
-
withSerialNumber
Set the serialNumber property: Asset serial number.- Parameters:
serialNumber
- the serialNumber value to set.- Returns:
- the AssetUpdateProperties object itself.
-
attributes
Get the attributes property: A set of key-value pairs that contain custom attributes set by the customer.- Returns:
- the attributes value.
-
withAttributes
Set the attributes property: A set of key-value pairs that contain custom attributes set by the customer.- Parameters:
attributes
- the attributes value to set.- Returns:
- the AssetUpdateProperties object itself.
-
defaultDataPointsConfiguration
Get the defaultDataPointsConfiguration property: Protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here. This assumes that each asset instance has one protocol.- Returns:
- the defaultDataPointsConfiguration value.
-
withDefaultDataPointsConfiguration
public AssetUpdateProperties withDefaultDataPointsConfiguration(String defaultDataPointsConfiguration) Set the defaultDataPointsConfiguration property: Protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here. This assumes that each asset instance has one protocol.- Parameters:
defaultDataPointsConfiguration
- the defaultDataPointsConfiguration value to set.- Returns:
- the AssetUpdateProperties object itself.
-
defaultEventsConfiguration
Get the defaultEventsConfiguration property: Protocol-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here. This assumes that each asset instance has one protocol.- Returns:
- the defaultEventsConfiguration value.
-
withDefaultEventsConfiguration
Set the defaultEventsConfiguration property: Protocol-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here. This assumes that each asset instance has one protocol.- Parameters:
defaultEventsConfiguration
- the defaultEventsConfiguration value to set.- Returns:
- the AssetUpdateProperties object itself.
-
dataPoints
Get the dataPoints property: Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration. See below for more details for the definition of the dataPoints element.- Returns:
- the dataPoints value.
-
withDataPoints
Set the dataPoints property: Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration. See below for more details for the definition of the dataPoints element.- Parameters:
dataPoints
- the dataPoints value to set.- Returns:
- the AssetUpdateProperties object itself.
-
events
Get the events property: Array of events that are part of the asset. Each event can reference an asset type capability and have per-event configuration. See below for more details about the definition of the events element.- Returns:
- the events value.
-
withEvents
Set the events property: Array of events that are part of the asset. Each event can reference an asset type capability and have per-event configuration. See below for more details about the definition of the events element.- Parameters:
events
- the events value to set.- Returns:
- the AssetUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-