Class GenerateDetailedCostReportDefinition

java.lang.Object
com.azure.resourcemanager.costmanagement.models.GenerateDetailedCostReportDefinition

public final class GenerateDetailedCostReportDefinition extends Object
The definition of a cost detailed report.
  • Constructor Details

    • GenerateDetailedCostReportDefinition

      public GenerateDetailedCostReportDefinition()
      Creates an instance of GenerateDetailedCostReportDefinition class.
  • Method Details

    • metric

      Get the metric property: The type of the detailed report. By default ActualCost is provided.
      Returns:
      the metric value.
    • withMetric

      Set the metric property: The type of the detailed report. By default ActualCost is provided.
      Parameters:
      metric - the metric value to set.
      Returns:
      the GenerateDetailedCostReportDefinition object itself.
    • timePeriod

      Get the timePeriod property: Has time period for pulling data for the cost detailed report. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.
      Returns:
      the timePeriod value.
    • withTimePeriod

      Set the timePeriod property: Has time period for pulling data for the cost detailed report. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.
      Parameters:
      timePeriod - the timePeriod value to set.
      Returns:
      the GenerateDetailedCostReportDefinition object itself.
    • billingPeriod

      public String billingPeriod()
      Get the billingPeriod property: Billing period in YearMonth(e.g. 202008) format. Only for legacy enterprise customers can use this. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.
      Returns:
      the billingPeriod value.
    • withBillingPeriod

      public GenerateDetailedCostReportDefinition withBillingPeriod(String billingPeriod)
      Set the billingPeriod property: Billing period in YearMonth(e.g. 202008) format. Only for legacy enterprise customers can use this. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.
      Parameters:
      billingPeriod - the billingPeriod value to set.
      Returns:
      the GenerateDetailedCostReportDefinition object itself.
    • invoiceId

      public String invoiceId()
      Get the invoiceId property: Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.
      Returns:
      the invoiceId value.
    • withInvoiceId

      public GenerateDetailedCostReportDefinition withInvoiceId(String invoiceId)
      Set the invoiceId property: Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.
      Parameters:
      invoiceId - the invoiceId value to set.
      Returns:
      the GenerateDetailedCostReportDefinition object itself.
    • customerId

      public String customerId()
      Get the customerId property: Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this).
      Returns:
      the customerId value.
    • withCustomerId

      public GenerateDetailedCostReportDefinition withCustomerId(String customerId)
      Set the customerId property: Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this).
      Parameters:
      customerId - the customerId value to set.
      Returns:
      the GenerateDetailedCostReportDefinition object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.