次の方法で共有


ReverseShippingDetails Class

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

Implements

public final class ReverseShippingDetails
implements JsonSerializable<ReverseShippingDetails>

Reverse Shipping Address and contact details for a job.

Constructor Summary

Constructor Description
ReverseShippingDetails()

Creates an instance of ReverseShippingDetails class.

Method Summary

Modifier and Type Method and Description
ContactInfo contactDetails()

Get the contactDetails property: Contact Info.

static ReverseShippingDetails fromJson(JsonReader jsonReader)

Reads an instance of ReverseShippingDetails from the JsonReader.

Boolean isUpdated()

Get the isUpdated property: A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared.

ShippingAddress shippingAddress()

Get the shippingAddress property: Shipping address where customer wishes to receive the device.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReverseShippingDetails withContactDetails(ContactInfo contactDetails)

Set the contactDetails property: Contact Info.

ReverseShippingDetails withShippingAddress(ShippingAddress shippingAddress)

Set the shippingAddress property: Shipping address where customer wishes to receive the device.

Methods inherited from java.lang.Object

Constructor Details

ReverseShippingDetails

public ReverseShippingDetails()

Creates an instance of ReverseShippingDetails class.

Method Details

contactDetails

public ContactInfo contactDetails()

Get the contactDetails property: Contact Info.

Returns:

the contactDetails value.

fromJson

public static ReverseShippingDetails fromJson(JsonReader jsonReader)

Reads an instance of ReverseShippingDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ReverseShippingDetails 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 ReverseShippingDetails.

isUpdated

public Boolean isUpdated()

Get the isUpdated property: A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. Read only field.

Returns:

the isUpdated value.

shippingAddress

public ShippingAddress shippingAddress()

Get the shippingAddress property: Shipping address where customer wishes to receive the device.

Returns:

the shippingAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContactDetails

public ReverseShippingDetails withContactDetails(ContactInfo contactDetails)

Set the contactDetails property: Contact Info.

Parameters:

contactDetails - the contactDetails value to set.

Returns:

the ReverseShippingDetails object itself.

withShippingAddress

public ReverseShippingDetails withShippingAddress(ShippingAddress shippingAddress)

Set the shippingAddress property: Shipping address where customer wishes to receive the device.

Parameters:

shippingAddress - the shippingAddress value to set.

Returns:

the ReverseShippingDetails object itself.

Applies to