Class AssetProperties
java.lang.Object
com.azure.resourcemanager.deviceregistry.models.AssetProperties
Defines the asset properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the assetEndpointProfileUri property: A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset.Get 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 externalAssetId property: Asset id provided by the customer.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 provisioningState property: Provisioning state of the resource.Get the serialNumber property: Asset serial number.Get the softwareRevision property: Revision number of the software.status()
Get the status property: Read only object to reflect changes that have occurred on the Edge.uuid()
Get the uuid property: Globally unique, immutable, non-reusable id.void
validate()
Validates the instance.version()
Get the version property: An integer that is incremented each time the resource is modified.withAssetEndpointProfileUri
(String assetEndpointProfileUri) Set the assetEndpointProfileUri property: A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset.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.withExternalAssetId
(String externalAssetId) Set the externalAssetId property: Asset id provided by the customer.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
-
AssetProperties
public AssetProperties()Creates an instance of AssetProperties class.
-
-
Method Details
-
uuid
Get the uuid property: Globally unique, immutable, non-reusable id.- Returns:
- the uuid value.
-
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 AssetProperties 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 AssetProperties object itself.
-
externalAssetId
Get the externalAssetId property: Asset id provided by the customer.- Returns:
- the externalAssetId value.
-
withExternalAssetId
Set the externalAssetId property: Asset id provided by the customer.- Parameters:
externalAssetId
- the externalAssetId value to set.- Returns:
- the AssetProperties 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 AssetProperties 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 AssetProperties object itself.
-
assetEndpointProfileUri
Get the assetEndpointProfileUri property: A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.- Returns:
- the assetEndpointProfileUri value.
-
withAssetEndpointProfileUri
Set the assetEndpointProfileUri property: A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.- Parameters:
assetEndpointProfileUri
- the assetEndpointProfileUri value to set.- Returns:
- the AssetProperties object itself.
-
version
Get the version property: An integer that is incremented each time the resource is modified.- Returns:
- the version value.
-
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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties 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
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 AssetProperties 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 AssetProperties 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 AssetProperties 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 AssetProperties object itself.
-
status
Get the status property: Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.- Returns:
- the status value.
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-