次の方法で共有


ShipmentPickUpRequest Class

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

Implements

public final class ShipmentPickUpRequest
implements JsonSerializable<ShipmentPickUpRequest>

Shipment pick up request details.

Constructor Summary

Constructor Description
ShipmentPickUpRequest()

Creates an instance of ShipmentPickUpRequest class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.

static ShipmentPickUpRequest fromJson(JsonReader jsonReader)

Reads an instance of ShipmentPickUpRequest from the JsonReader.

String shipmentLocation()

Get the shipmentLocation property: Shipment Location in the pickup place.

OffsetDateTime startTime()

Get the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ShipmentPickUpRequest withEndTime(OffsetDateTime endTime)

Set the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.

ShipmentPickUpRequest withShipmentLocation(String shipmentLocation)

Set the shipmentLocation property: Shipment Location in the pickup place.

ShipmentPickUpRequest withStartTime(OffsetDateTime startTime)

Set the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.

Methods inherited from java.lang.Object

Constructor Details

ShipmentPickUpRequest

public ShipmentPickUpRequest()

Creates an instance of ShipmentPickUpRequest class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.

Returns:

the endTime value.

fromJson

public static ShipmentPickUpRequest fromJson(JsonReader jsonReader)

Reads an instance of ShipmentPickUpRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

shipmentLocation

public String shipmentLocation()

Get the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.

Returns:

the shipmentLocation value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndTime

public ShipmentPickUpRequest withEndTime(OffsetDateTime endTime)

Set the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.

Parameters:

endTime - the endTime value to set.

Returns:

the ShipmentPickUpRequest object itself.

withShipmentLocation

public ShipmentPickUpRequest withShipmentLocation(String shipmentLocation)

Set the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.

Parameters:

shipmentLocation - the shipmentLocation value to set.

Returns:

the ShipmentPickUpRequest object itself.

withStartTime

public ShipmentPickUpRequest withStartTime(OffsetDateTime startTime)

Set the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.

Parameters:

startTime - the startTime value to set.

Returns:

the ShipmentPickUpRequest object itself.

Applies to