Class OrderItemResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.edgeorder.fluent.models.OrderItemResourceInner
-
public final class OrderItemResourceInner extends com.azure.core.management.Resource
Represents order item contract.
-
-
Constructor Summary
Constructors Constructor Description OrderItemResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressDetails
addressDetails()
Get the addressDetails property: Represents shipping and return address for order item.String
orderId()
Get the orderId property: Id of the order to which order item belongs to.OrderItemDetails
orderItemDetails()
Get the orderItemDetails property: Represents order item details.OffsetDateTime
startTime()
Get the startTime property: Start time of order item.com.azure.core.management.SystemData
systemData()
Get the systemData property: Represents resource creation and update time.void
validate()
Validates the instance.OrderItemResourceInner
withAddressDetails(AddressDetails addressDetails)
Set the addressDetails property: Represents shipping and return address for order item.OrderItemResourceInner
withLocation(String location)
OrderItemResourceInner
withOrderId(String orderId)
Set the orderId property: Id of the order to which order item belongs to.OrderItemResourceInner
withOrderItemDetails(OrderItemDetails orderItemDetails)
Set the orderItemDetails property: Represents order item details.OrderItemResourceInner
withTags(Map<String,String> tags)
-
-
-
Method Detail
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Represents resource creation and update time.- Returns:
- the systemData value.
-
withLocation
public OrderItemResourceInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public OrderItemResourceInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
orderItemDetails
public OrderItemDetails orderItemDetails()
Get the orderItemDetails property: Represents order item details.- Returns:
- the orderItemDetails value.
-
withOrderItemDetails
public OrderItemResourceInner withOrderItemDetails(OrderItemDetails orderItemDetails)
Set the orderItemDetails property: Represents order item details.- Parameters:
orderItemDetails
- the orderItemDetails value to set.- Returns:
- the OrderItemResourceInner object itself.
-
addressDetails
public AddressDetails addressDetails()
Get the addressDetails property: Represents shipping and return address for order item.- Returns:
- the addressDetails value.
-
withAddressDetails
public OrderItemResourceInner withAddressDetails(AddressDetails addressDetails)
Set the addressDetails property: Represents shipping and return address for order item.- Parameters:
addressDetails
- the addressDetails value to set.- Returns:
- the OrderItemResourceInner object itself.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of order item.- Returns:
- the startTime value.
-
orderId
public String orderId()
Get the orderId property: Id of the order to which order item belongs to.- Returns:
- the orderId value.
-
withOrderId
public OrderItemResourceInner withOrderId(String orderId)
Set the orderId property: Id of the order to which order item belongs to.- Parameters:
orderId
- the orderId value to set.- Returns:
- the OrderItemResourceInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-