Class UsageSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • tenantId

        public UsageSummary.Builder tenantId​(String tenantId)
        The tenancy OCID.
        Parameters:
        tenantId - the value to set
        Returns:
        this builder
      • tenantName

        public UsageSummary.Builder tenantName​(String tenantName)
        The tenancy name.
        Parameters:
        tenantName - the value to set
        Returns:
        this builder
      • compartmentId

        public UsageSummary.Builder compartmentId​(String compartmentId)
        The compartment OCID.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • compartmentPath

        public UsageSummary.Builder compartmentPath​(String compartmentPath)
        The compartment path, starting from root.
        Parameters:
        compartmentPath - the value to set
        Returns:
        this builder
      • compartmentName

        public UsageSummary.Builder compartmentName​(String compartmentName)
        The compartment name.
        Parameters:
        compartmentName - the value to set
        Returns:
        this builder
      • service

        public UsageSummary.Builder service​(String service)
        The service name that is incurring the cost.
        Parameters:
        service - the value to set
        Returns:
        this builder
      • resourceName

        public UsageSummary.Builder resourceName​(String resourceName)
        The resource name that is incurring the cost.
        Parameters:
        resourceName - the value to set
        Returns:
        this builder
      • resourceId

        public UsageSummary.Builder resourceId​(String resourceId)
        The resource OCID that is incurring the cost.
        Parameters:
        resourceId - the value to set
        Returns:
        this builder
      • region

        public UsageSummary.Builder region​(String region)
        The region of the usage.
        Parameters:
        region - the value to set
        Returns:
        this builder
      • ad

        public UsageSummary.Builder ad​(String ad)
        The availability domain of the usage.
        Parameters:
        ad - the value to set
        Returns:
        this builder
      • weight

        public UsageSummary.Builder weight​(BigDecimal weight)
        The resource size being metered.
        Parameters:
        weight - the value to set
        Returns:
        this builder
      • shape

        public UsageSummary.Builder shape​(String shape)
        The resource shape.
        Parameters:
        shape - the value to set
        Returns:
        this builder
      • skuPartNumber

        public UsageSummary.Builder skuPartNumber​(String skuPartNumber)
        The SKU part number.
        Parameters:
        skuPartNumber - the value to set
        Returns:
        this builder
      • skuName

        public UsageSummary.Builder skuName​(String skuName)
        The SKU friendly name.
        Parameters:
        skuName - the value to set
        Returns:
        this builder
      • unit

        public UsageSummary.Builder unit​(String unit)
        The usage unit.
        Parameters:
        unit - the value to set
        Returns:
        this builder
      • discount

        public UsageSummary.Builder discount​(BigDecimal discount)
        The discretionary discount applied to the SKU.
        Parameters:
        discount - the value to set
        Returns:
        this builder
      • listRate

        public UsageSummary.Builder listRate​(BigDecimal listRate)
        The SKU list rate (not discount).
        Parameters:
        listRate - the value to set
        Returns:
        this builder
      • platform

        public UsageSummary.Builder platform​(String platform)
        Platform for the cost.
        Parameters:
        platform - the value to set
        Returns:
        this builder
      • timeUsageStarted

        public UsageSummary.Builder timeUsageStarted​(Date timeUsageStarted)
        The usage start time.
        Parameters:
        timeUsageStarted - the value to set
        Returns:
        this builder
      • timeUsageEnded

        public UsageSummary.Builder timeUsageEnded​(Date timeUsageEnded)
        The usage end time.
        Parameters:
        timeUsageEnded - the value to set
        Returns:
        this builder
      • computedAmount

        public UsageSummary.Builder computedAmount​(BigDecimal computedAmount)
        The computed cost.
        Parameters:
        computedAmount - the value to set
        Returns:
        this builder
      • computedQuantity

        public UsageSummary.Builder computedQuantity​(BigDecimal computedQuantity)
        The usage number.
        Parameters:
        computedQuantity - the value to set
        Returns:
        this builder
      • attributedCost

        public UsageSummary.Builder attributedCost​(String attributedCost)
        The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.
        Parameters:
        attributedCost - the value to set
        Returns:
        this builder
      • attributedUsage

        public UsageSummary.Builder attributedUsage​(String attributedUsage)
        The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.
        Parameters:
        attributedUsage - the value to set
        Returns:
        this builder
      • overagesFlag

        public UsageSummary.Builder overagesFlag​(String overagesFlag)
        The SPM OverageFlag.
        Parameters:
        overagesFlag - the value to set
        Returns:
        this builder
      • unitPrice

        public UsageSummary.Builder unitPrice​(BigDecimal unitPrice)
        The price per unit.
        Parameters:
        unitPrice - the value to set
        Returns:
        this builder
      • currency

        public UsageSummary.Builder currency​(String currency)
        The price currency.
        Parameters:
        currency - the value to set
        Returns:
        this builder
      • subscriptionId

        public UsageSummary.Builder subscriptionId​(String subscriptionId)
        The subscription ID.
        Parameters:
        subscriptionId - the value to set
        Returns:
        this builder
      • overage

        public UsageSummary.Builder overage​(String overage)
        The overage usage.
        Parameters:
        overage - the value to set
        Returns:
        this builder
      • isForecast

        public UsageSummary.Builder isForecast​(Boolean isForecast)
        The forecasted data.
        Parameters:
        isForecast - the value to set
        Returns:
        this builder
      • tags

        public UsageSummary.Builder tags​(List<Tag> tags)
        For grouping, a tag definition.

        For filtering, a definition and key.

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