Interface OrderItemResource


  • public interface OrderItemResource
    An immutable client-side representation of OrderItemResource.
    • Method Detail

      • id

        String id()
        Gets the id property: Fully qualified resource Id for the resource.
        Returns:
        the id value.
      • name

        String name()
        Gets the name property: The name of the resource.
        Returns:
        the name value.
      • type

        String type()
        Gets the type property: The type of the resource.
        Returns:
        the type value.
      • location

        String location()
        Gets the location property: The geo-location where the resource lives.
        Returns:
        the location value.
      • tags

        Map<String,​String> tags()
        Gets the tags property: Resource tags.
        Returns:
        the tags value.
      • systemData

        com.azure.core.management.SystemData systemData()
        Gets the systemData property: Represents resource creation and update time.
        Returns:
        the systemData value.
      • orderItemDetails

        OrderItemDetails orderItemDetails()
        Gets the orderItemDetails property: Represents order item details.
        Returns:
        the orderItemDetails value.
      • addressDetails

        AddressDetails addressDetails()
        Gets the addressDetails property: Represents shipping and return address for order item.
        Returns:
        the addressDetails value.
      • startTime

        OffsetDateTime startTime()
        Gets the startTime property: Start time of order item.
        Returns:
        the startTime value.
      • orderId

        String orderId()
        Gets the orderId property: Id of the order to which order item belongs to.
        Returns:
        the orderId value.
      • region

        com.azure.core.management.Region region()
        Gets the region of the resource.
        Returns:
        the region of the resource.
      • regionName

        String regionName()
        Gets the name of the resource region.
        Returns:
        the name of the resource region.
      • innerModel

        OrderItemResourceInner innerModel()
        Gets the inner com.azure.resourcemanager.edgeorder.fluent.models.OrderItemResourceInner object.
        Returns:
        the inner object.
      • update

        OrderItemResource.Update update()
        Begins update for the OrderItemResource resource.
        Returns:
        the stage of resource update.
      • refresh

        OrderItemResource refresh()
        Refreshes the resource to sync with Azure.
        Returns:
        the refreshed resource.
      • refresh

        OrderItemResource refresh​(com.azure.core.util.Context context)
        Refreshes the resource to sync with Azure.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the refreshed resource.
      • cancelOrderItem

        void cancelOrderItem​(CancellationReason cancellationReason)
        Cancel order item.
        Parameters:
        cancellationReason - Reason for cancellation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • cancelOrderItemWithResponse

        com.azure.core.http.rest.Response<Void> cancelOrderItemWithResponse​(CancellationReason cancellationReason,
                                                                            com.azure.core.util.Context context)
        Cancel order item.
        Parameters:
        cancellationReason - Reason for cancellation.
        context - The context to associate with this operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • returnOrderItem

        void returnOrderItem​(ReturnOrderItemDetails returnOrderItemDetails)
        Return order item.
        Parameters:
        returnOrderItemDetails - Return order item CurrentStatus.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • returnOrderItem

        void returnOrderItem​(ReturnOrderItemDetails returnOrderItemDetails,
                             com.azure.core.util.Context context)
        Return order item.
        Parameters:
        returnOrderItemDetails - Return order item CurrentStatus.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.