Class OrderItemResourceInner


  • public final class OrderItemResourceInner
    extends com.azure.core.management.Resource
    Represents order item contract.
    • Constructor Detail

      • OrderItemResourceInner

        public OrderItemResourceInner()
    • 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 class com.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.