Class TrackingInfo

java.lang.Object
com.azure.resourcemanager.databoxedge.models.TrackingInfo

public final class TrackingInfo extends Object
Tracking courier information.
  • Constructor Details

    • TrackingInfo

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

    • serialNumber

      public String serialNumber()
      Get the serialNumber property: Serial number of the device being tracked.
      Returns:
      the serialNumber value.
    • withSerialNumber

      public TrackingInfo withSerialNumber(String serialNumber)
      Set the serialNumber property: Serial number of the device being tracked.
      Parameters:
      serialNumber - the serialNumber value to set.
      Returns:
      the TrackingInfo object itself.
    • carrierName

      public String carrierName()
      Get the carrierName property: Name of the carrier used in the delivery.
      Returns:
      the carrierName value.
    • withCarrierName

      public TrackingInfo withCarrierName(String carrierName)
      Set the carrierName property: Name of the carrier used in the delivery.
      Parameters:
      carrierName - the carrierName value to set.
      Returns:
      the TrackingInfo object itself.
    • trackingId

      public String trackingId()
      Get the trackingId property: Tracking ID of the shipment.
      Returns:
      the trackingId value.
    • withTrackingId

      public TrackingInfo withTrackingId(String trackingId)
      Set the trackingId property: Tracking ID of the shipment.
      Parameters:
      trackingId - the trackingId value to set.
      Returns:
      the TrackingInfo object itself.
    • trackingUrl

      public String trackingUrl()
      Get the trackingUrl property: Tracking URL of the shipment.
      Returns:
      the trackingUrl value.
    • withTrackingUrl

      public TrackingInfo withTrackingUrl(String trackingUrl)
      Set the trackingUrl property: Tracking URL of the shipment.
      Parameters:
      trackingUrl - the trackingUrl value to set.
      Returns:
      the TrackingInfo object itself.
    • validate

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