Class MacOrder.Builder

  • Enclosing class:
    MacOrder

    public static class MacOrder.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public MacOrder.Builder id​(String id)
        The OCID of the resource.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public MacOrder.Builder compartmentId​(String compartmentId)
        OCID of the compartment to which the resource belongs to.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public MacOrder.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Example: My new resource

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • orderDescription

        public MacOrder.Builder orderDescription​(String orderDescription)
        A user-friendly description.

        To provide some insight about the resource. Avoid entering confidential information.

        Parameters:
        orderDescription - the value to set
        Returns:
        this builder
      • orderSize

        public MacOrder.Builder orderSize​(Integer orderSize)
        Number of macs requested in this MacOrder.
        Parameters:
        orderSize - the value to set
        Returns:
        this builder
      • ipRange

        public MacOrder.Builder ipRange​(String ipRange)
        The IP Range specified by the customer for this order.
        Parameters:
        ipRange - the value to set
        Returns:
        this builder
      • isDocusigned

        public MacOrder.Builder isDocusigned​(Boolean isDocusigned)
        Checkbox value that indicates whether the customer completed docusign process.
        Parameters:
        isDocusigned - the value to set
        Returns:
        this builder
      • shape

        public MacOrder.Builder shape​(MacOrder.Shape shape)
        Enum indicating the requested shape for the MacDevices.
        Parameters:
        shape - the value to set
        Returns:
        this builder
      • timeCreated

        public MacOrder.Builder timeCreated​(Date timeCreated)
        The time this resource was created.

        An RFC3339 formatted datetime string.

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public MacOrder.Builder timeUpdated​(Date timeUpdated)
        The time this resource was last updated.

        An RFC3339 formatted datetime string.

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • commitmentTerm

        public MacOrder.Builder commitmentTerm​(MacOrder.CommitmentTerm commitmentTerm)
        Enum indicating the agreed commitment term for the requested MacDevices.
        Parameters:
        commitmentTerm - the value to set
        Returns:
        this builder
      • timeBillingStarted

        public MacOrder.Builder timeBillingStarted​(Date timeBillingStarted)
        An RFC3339-formatted datetime string containing the date and time that billing for this MacOrder begins.
        Parameters:
        timeBillingStarted - the value to set
        Returns:
        this builder
      • timeBillingEnded

        public MacOrder.Builder timeBillingEnded​(Date timeBillingEnded)
        An RFC3339-formatted datetime string containing the date and time that billing for this MacOrder ends.
        Parameters:
        timeBillingEnded - the value to set
        Returns:
        this builder
      • orderStatus

        public MacOrder.Builder orderStatus​(MacOrder.OrderStatus orderStatus)
        The current status of the MacOrder.
        Parameters:
        orderStatus - the value to set
        Returns:
        this builder
      • lifecycleState

        public MacOrder.Builder lifecycleState​(MacOrder.LifecycleState lifecycleState)
        The current state of the MacOrder.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public MacOrder.Builder lifecycleDetails​(String lifecycleDetails)
        A message that describes the current state of the MacOrder in more detail.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • cancelReason

        public MacOrder.Builder cancelReason​(String cancelReason)
        The reason for the MacOrder cancellation.
        Parameters:
        cancelReason - the value to set
        Returns:
        this builder
      • timeCanceled

        public MacOrder.Builder timeCanceled​(Date timeCanceled)
        An RFC3339-formatted datetime string containing the time this MacOrder was cancelled.
        Parameters:
        timeCanceled - the value to set
        Returns:
        this builder