Class InternalOccmDemandSignalDelivery.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public InternalOccmDemandSignalDelivery.Builder compartmentId​(String compartmentId)
        The OCID of the tenancy from which the demand signal delivery resource is created.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • occCustomerGroupId

        public InternalOccmDemandSignalDelivery.Builder occCustomerGroupId​(String occCustomerGroupId)
        The OCID of the corresponding customer group to which this demand signal delivery resource belongs to.
        Parameters:
        occCustomerGroupId - the value to set
        Returns:
        this builder
      • demandSignalId

        public InternalOccmDemandSignalDelivery.Builder demandSignalId​(String demandSignalId)
        The OCID of the demand signal under which this delivery will be grouped.
        Parameters:
        demandSignalId - the value to set
        Returns:
        this builder
      • demandSignalItemId

        public InternalOccmDemandSignalDelivery.Builder demandSignalItemId​(String demandSignalItemId)
        The OCID of the demand signal item corresponding to which this delivery is made.
        Parameters:
        demandSignalItemId - the value to set
        Returns:
        this builder
      • acceptedQuantity

        public InternalOccmDemandSignalDelivery.Builder acceptedQuantity​(Long acceptedQuantity)
        The quantity of the resource that OCI will supply to the customer.
        Parameters:
        acceptedQuantity - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public InternalOccmDemandSignalDelivery.Builder lifecycleDetails​(InternalOccmDemandSignalDelivery.LifecycleDetails lifecycleDetails)
        The enum values corresponding to the various states associated with the delivery resource.

        SUBMITTED -> The state where operators have started working and thinking on the quantity that OCI can delivery for the corresponding demand signal item. IN_REVIEW -> The operators are waiting on approvals from different teams/folks in this state. ACCEPTED -> OCI has accepted your resource request and will deliver the quantity as specified by acceptance quantity of this resource. DECLINED -> OCI has declined you resource request. DELIVERED -> OCI has delivered the accepted quantity to the customers.

        NOTE: The resource becomes visible to customers in ACCEPTED, DECLINED or DELIVERED state.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • justification

        public InternalOccmDemandSignalDelivery.Builder justification​(String justification)
        This field could be used by OCI to communicate the reason for accepting or declining the request.
        Parameters:
        justification - the value to set
        Returns:
        this builder
      • timeDelivered

        public InternalOccmDemandSignalDelivery.Builder timeDelivered​(Date timeDelivered)
        The date on which the OCI delivered the resource to the customers.

        The default value for this will be the corresponding demand signal item resource’s need by date.

        Parameters:
        timeDelivered - the value to set
        Returns:
        this builder
      • freeformTags

        public InternalOccmDemandSignalDelivery.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public InternalOccmDemandSignalDelivery.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public InternalOccmDemandSignalDelivery.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder