Class AssetUpdateProperties

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

public final class AssetUpdateProperties extends Object
The updatable properties of the Asset.
  • Constructor Details

    • AssetUpdateProperties

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

    • assetType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public AssetUpdateProperties withSerialNumber(String serialNumber)
      Set the serialNumber property: Asset serial number.
      Parameters:
      serialNumber - the serialNumber value to set.
      Returns:
      the AssetUpdateProperties 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 AssetUpdateProperties 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 AssetUpdateProperties 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 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

      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 AssetUpdateProperties 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 AssetUpdateProperties 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 AssetUpdateProperties 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 AssetUpdateProperties 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 AssetUpdateProperties 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 AssetUpdateProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.