Class AssetProperties

java.lang.Object
com.azure.resourcemanager.deviceregistry.models.AssetProperties

public final class AssetProperties extends Object
Defines the asset properties.
  • Constructor Details

    • AssetProperties

      public AssetProperties()
      Creates an instance of AssetProperties class.
  • Method Details

    • uuid

      public String uuid()
      Get the uuid property: Globally unique, immutable, non-reusable id.
      Returns:
      the uuid value.
    • assetType

      public String assetType()
      Get the assetType property: Resource path to asset type (model) definition.
      Returns:
      the assetType value.
    • withAssetType

      public AssetProperties withAssetType(String assetType)
      Set the assetType property: Resource path to asset type (model) definition.
      Parameters:
      assetType - the assetType value to set.
      Returns:
      the AssetProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: Enabled/Disabled status of the asset.
      Returns:
      the enabled value.
    • withEnabled

      public AssetProperties withEnabled(Boolean enabled)
      Set the enabled property: Enabled/Disabled status of the asset.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the AssetProperties object itself.
    • externalAssetId

      public String externalAssetId()
      Get the externalAssetId property: Asset id provided by the customer.
      Returns:
      the externalAssetId value.
    • withExternalAssetId

      public AssetProperties withExternalAssetId(String externalAssetId)
      Set the externalAssetId property: Asset id provided by the customer.
      Parameters:
      externalAssetId - the externalAssetId value to set.
      Returns:
      the AssetProperties object itself.
    • displayName

      public String displayName()
      Get the displayName property: Human-readable display name.
      Returns:
      the displayName value.
    • withDisplayName

      public AssetProperties withDisplayName(String displayName)
      Set the displayName property: Human-readable display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the AssetProperties object itself.
    • description

      public String description()
      Get the description property: Human-readable description of the asset.
      Returns:
      the description value.
    • withDescription

      public AssetProperties withDescription(String description)
      Set the description property: Human-readable description of the asset.
      Parameters:
      description - the description value to set.
      Returns:
      the AssetProperties object itself.
    • assetEndpointProfileUri

      public String 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

      public AssetProperties 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. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
      Parameters:
      assetEndpointProfileUri - the assetEndpointProfileUri value to set.
      Returns:
      the AssetProperties object itself.
    • version

      public Integer version()
      Get the version property: An integer that is incremented each time the resource is modified.
      Returns:
      the version value.
    • manufacturer

      public String manufacturer()
      Get the manufacturer property: Asset manufacturer name.
      Returns:
      the manufacturer value.
    • withManufacturer

      public AssetProperties withManufacturer(String manufacturer)
      Set the manufacturer property: Asset manufacturer name.
      Parameters:
      manufacturer - the manufacturer value to set.
      Returns:
      the AssetProperties object itself.
    • manufacturerUri

      public String manufacturerUri()
      Get the manufacturerUri property: Asset manufacturer URI.
      Returns:
      the manufacturerUri value.
    • withManufacturerUri

      public AssetProperties withManufacturerUri(String manufacturerUri)
      Set the manufacturerUri property: Asset manufacturer URI.
      Parameters:
      manufacturerUri - the manufacturerUri value to set.
      Returns:
      the AssetProperties object itself.
    • model

      public String model()
      Get the model property: Asset model name.
      Returns:
      the model value.
    • withModel

      public AssetProperties withModel(String model)
      Set the model property: Asset model name.
      Parameters:
      model - the model value to set.
      Returns:
      the AssetProperties object itself.
    • productCode

      public String productCode()
      Get the productCode property: Asset product code.
      Returns:
      the productCode value.
    • withProductCode

      public AssetProperties withProductCode(String productCode)
      Set the productCode property: Asset product code.
      Parameters:
      productCode - the productCode value to set.
      Returns:
      the AssetProperties object itself.
    • hardwareRevision

      public String hardwareRevision()
      Get the hardwareRevision property: Revision number of the hardware.
      Returns:
      the hardwareRevision value.
    • withHardwareRevision

      public AssetProperties withHardwareRevision(String hardwareRevision)
      Set the hardwareRevision property: Revision number of the hardware.
      Parameters:
      hardwareRevision - the hardwareRevision value to set.
      Returns:
      the AssetProperties object itself.
    • softwareRevision

      public String softwareRevision()
      Get the softwareRevision property: Revision number of the software.
      Returns:
      the softwareRevision value.
    • withSoftwareRevision

      public AssetProperties withSoftwareRevision(String softwareRevision)
      Set the softwareRevision property: Revision number of the software.
      Parameters:
      softwareRevision - the softwareRevision value to set.
      Returns:
      the AssetProperties object itself.
    • documentationUri

      public String documentationUri()
      Get the documentationUri property: Reference to the documentation.
      Returns:
      the documentationUri value.
    • withDocumentationUri

      public AssetProperties withDocumentationUri(String documentationUri)
      Set the documentationUri property: Reference to the documentation.
      Parameters:
      documentationUri - the documentationUri value to set.
      Returns:
      the AssetProperties object itself.
    • serialNumber

      public String serialNumber()
      Get the serialNumber property: Asset serial number.
      Returns:
      the serialNumber value.
    • withSerialNumber

      public AssetProperties withSerialNumber(String serialNumber)
      Set the serialNumber property: Asset serial number.
      Parameters:
      serialNumber - the serialNumber value to set.
      Returns:
      the AssetProperties object itself.
    • attributes

      public Map<String,Object> attributes()
      Get the attributes property: A set of key-value pairs that contain custom attributes set by the customer.
      Returns:
      the attributes value.
    • withAttributes

      public AssetProperties withAttributes(Map<String,Object> attributes)
      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

      public String 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 AssetProperties 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 AssetProperties object itself.
    • defaultEventsConfiguration

      public String 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

      public AssetProperties withDefaultEventsConfiguration(String defaultEventsConfiguration)
      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

      public List<DataPoint> 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

      public AssetProperties withDataPoints(List<DataPoint> dataPoints)
      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

      public List<Event> 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

      public AssetProperties withEvents(List<Event> events)
      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

      public AssetStatus 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

      public ProvisioningState 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.