次の方法で共有


PackageCarrierDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.PackageCarrierDetails

Implements

public final class PackageCarrierDetails
implements JsonSerializable<PackageCarrierDetails>

Package carrier details.

Constructor Summary

Constructor Description
PackageCarrierDetails()

Creates an instance of PackageCarrierDetails class.

Method Summary

Modifier and Type Method and Description
String carrierAccountNumber()

Get the carrierAccountNumber property: Carrier Account Number of customer for customer disk.

String carrierName()

Get the carrierName property: Name of the carrier.

static PackageCarrierDetails fromJson(JsonReader jsonReader)

Reads an instance of PackageCarrierDetails from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String trackingId()

Get the trackingId property: Tracking Id of shipment.

void validate()

Validates the instance.

PackageCarrierDetails withCarrierAccountNumber(String carrierAccountNumber)

Set the carrierAccountNumber property: Carrier Account Number of customer for customer disk.

PackageCarrierDetails withCarrierName(String carrierName)

Set the carrierName property: Name of the carrier.

PackageCarrierDetails withTrackingId(String trackingId)

Set the trackingId property: Tracking Id of shipment.

Methods inherited from java.lang.Object

Constructor Details

PackageCarrierDetails

public PackageCarrierDetails()

Creates an instance of PackageCarrierDetails class.

Method Details

carrierAccountNumber

public String carrierAccountNumber()

Get the carrierAccountNumber property: Carrier Account Number of customer for customer disk.

Returns:

the carrierAccountNumber value.

carrierName

public String carrierName()

Get the carrierName property: Name of the carrier.

Returns:

the carrierName value.

fromJson

public static PackageCarrierDetails fromJson(JsonReader jsonReader)

Reads an instance of PackageCarrierDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PackageCarrierDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PackageCarrierDetails.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trackingId

public String trackingId()

Get the trackingId property: Tracking Id of shipment.

Returns:

the trackingId value.

validate

public void validate()

Validates the instance.

withCarrierAccountNumber

public PackageCarrierDetails withCarrierAccountNumber(String carrierAccountNumber)

Set the carrierAccountNumber property: Carrier Account Number of customer for customer disk.

Parameters:

carrierAccountNumber - the carrierAccountNumber value to set.

Returns:

the PackageCarrierDetails object itself.

withCarrierName

public PackageCarrierDetails withCarrierName(String carrierName)

Set the carrierName property: Name of the carrier.

Parameters:

carrierName - the carrierName value to set.

Returns:

the PackageCarrierDetails object itself.

withTrackingId

public PackageCarrierDetails withTrackingId(String trackingId)

Set the trackingId property: Tracking Id of shipment.

Parameters:

trackingId - the trackingId value to set.

Returns:

the PackageCarrierDetails object itself.

Applies to