Class TrackingInfo
java.lang.Object
com.azure.resourcemanager.databoxedge.models.TrackingInfo
Tracking courier information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the carrierName property: Name of the carrier used in the delivery.Get the serialNumber property: Serial number of the device being tracked.Get the trackingId property: Tracking ID of the shipment.Get the trackingUrl property: Tracking URL of the shipment.void
validate()
Validates the instance.withCarrierName
(String carrierName) Set the carrierName property: Name of the carrier used in the delivery.withSerialNumber
(String serialNumber) Set the serialNumber property: Serial number of the device being tracked.withTrackingId
(String trackingId) Set the trackingId property: Tracking ID of the shipment.withTrackingUrl
(String trackingUrl) Set the trackingUrl property: Tracking URL of the shipment.
-
Constructor Details
-
TrackingInfo
public TrackingInfo()Creates an instance of TrackingInfo class.
-
-
Method Details
-
serialNumber
Get the serialNumber property: Serial number of the device being tracked.- Returns:
- the serialNumber value.
-
withSerialNumber
Set the serialNumber property: Serial number of the device being tracked.- Parameters:
serialNumber
- the serialNumber value to set.- Returns:
- the TrackingInfo object itself.
-
carrierName
Get the carrierName property: Name of the carrier used in the delivery.- Returns:
- the carrierName value.
-
withCarrierName
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
Get the trackingId property: Tracking ID of the shipment.- Returns:
- the trackingId value.
-
withTrackingId
Set the trackingId property: Tracking ID of the shipment.- Parameters:
trackingId
- the trackingId value to set.- Returns:
- the TrackingInfo object itself.
-
trackingUrl
Get the trackingUrl property: Tracking URL of the shipment.- Returns:
- the trackingUrl value.
-
withTrackingUrl
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.
-