Class GenerateDetailedCostReportDefinition
java.lang.Object
com.azure.resourcemanager.costmanagement.models.GenerateDetailedCostReportDefinition
The definition of a cost detailed report.
-
Constructor Summary
ConstructorDescriptionCreates an instance of GenerateDetailedCostReportDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the billingPeriod property: Billing period in YearMonth(e.g.Get the customerId property: Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this).Get the invoiceId property: Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes.metric()
Get the metric property: The type of the detailed report.Get the timePeriod property: Has time period for pulling data for the cost detailed report.void
validate()
Validates the instance.withBillingPeriod
(String billingPeriod) Set the billingPeriod property: Billing period in YearMonth(e.g.withCustomerId
(String customerId) Set the customerId property: Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this).withInvoiceId
(String invoiceId) Set the invoiceId property: Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes.Set the metric property: The type of the detailed report.withTimePeriod
(GenerateDetailedCostReportTimePeriod timePeriod) Set the timePeriod property: Has time period for pulling data for the 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
public GenerateDetailedCostReportDefinition withTimePeriod(GenerateDetailedCostReportTimePeriod timePeriod) 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
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
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
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
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
Get the customerId property: Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this).- Returns:
- the customerId value.
-
withCustomerId
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.
-