Class ViewProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.ViewProperties
The properties of the view.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accumulated property: Show costs accumulated over time.chart()
Get the chart property: Chart type of the main view in Cost Analysis.Get the createdOn property: Date the user created this view.currency()
Get the currency property: Currency of the current view.dataSet()
Get the dataSet property: Has definition for data in this report config.Get the dateRange property: Date range of the current view.Get the displayName property: User input name of the view.Get the includeMonetaryCommitment property: If true, report includes monetary commitment.kpis()
Get the kpis property: List of KPIs to show in Cost Analysis UI.metric()
Get the metric property: Metric to use when displaying costs.Get the modifiedOn property: Date when the user last modified this view.pivots()
Get the pivots property: Configuration of 3 sub-views in the Cost Analysis UI.scope()
Get the scope property: Cost Management scope to save the view on.Get the timeframe property: The time frame for pulling data for the report.Get the timePeriod property: Has time period for pulling data for the report.type()
Get the type property: The type of the report.void
validate()
Validates the instance.withAccumulated
(AccumulatedType accumulated) Set the accumulated property: Show costs accumulated over time.Set the chart property: Chart type of the main view in Cost Analysis.withDataSet
(ReportConfigDataset dataSet) Set the dataSet property: Has definition for data in this report config.withDisplayName
(String displayName) Set the displayName property: User input name of the view.withIncludeMonetaryCommitment
(Boolean includeMonetaryCommitment) Set the includeMonetaryCommitment property: If true, report includes monetary commitment.withKpis
(List<KpiProperties> kpis) Set the kpis property: List of KPIs to show in Cost Analysis UI.withMetric
(MetricType metric) Set the metric property: Metric to use when displaying costs.withPivots
(List<PivotProperties> pivots) Set the pivots property: Configuration of 3 sub-views in the Cost Analysis UI.Set the scope property: Cost Management scope to save the view on.withTimeframe
(ReportTimeframeType timeframe) Set the timeframe property: The time frame for pulling data for the report.withTimePeriod
(ReportConfigTimePeriod timePeriod) Set the timePeriod property: Has time period for pulling data for the report.withType
(ReportType type) Set the type property: The type of the report.
-
Constructor Details
-
ViewProperties
public ViewProperties()Creates an instance of ViewProperties class.
-
-
Method Details
-
displayName
Get the displayName property: User input name of the view. Required.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: User input name of the view. Required.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ViewProperties object itself.
-
scope
Get the scope property: Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.- Returns:
- the scope value.
-
withScope
Set the scope property: Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.- Parameters:
scope
- the scope value to set.- Returns:
- the ViewProperties object itself.
-
createdOn
Get the createdOn property: Date the user created this view.- Returns:
- the createdOn value.
-
modifiedOn
Get the modifiedOn property: Date when the user last modified this view.- Returns:
- the modifiedOn value.
-
dateRange
Get the dateRange property: Date range of the current view.- Returns:
- the dateRange value.
-
currency
Get the currency property: Currency of the current view.- Returns:
- the currency value.
-
chart
Get the chart property: Chart type of the main view in Cost Analysis. Required.- Returns:
- the chart value.
-
withChart
Set the chart property: Chart type of the main view in Cost Analysis. Required.- Parameters:
chart
- the chart value to set.- Returns:
- the ViewProperties object itself.
-
accumulated
Get the accumulated property: Show costs accumulated over time.- Returns:
- the accumulated value.
-
withAccumulated
Set the accumulated property: Show costs accumulated over time.- Parameters:
accumulated
- the accumulated value to set.- Returns:
- the ViewProperties object itself.
-
metric
Get the metric property: Metric to use when displaying costs.- Returns:
- the metric value.
-
withMetric
Set the metric property: Metric to use when displaying costs.- Parameters:
metric
- the metric value to set.- Returns:
- the ViewProperties object itself.
-
kpis
Get the kpis property: List of KPIs to show in Cost Analysis UI.- Returns:
- the kpis value.
-
withKpis
Set the kpis property: List of KPIs to show in Cost Analysis UI.- Parameters:
kpis
- the kpis value to set.- Returns:
- the ViewProperties object itself.
-
pivots
Get the pivots property: Configuration of 3 sub-views in the Cost Analysis UI.- Returns:
- the pivots value.
-
withPivots
Set the pivots property: Configuration of 3 sub-views in the Cost Analysis UI.- Parameters:
pivots
- the pivots value to set.- Returns:
- the ViewProperties object itself.
-
type
Get the type property: The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.- Returns:
- the type value.
-
withType
Set the type property: The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.- Parameters:
type
- the type value to set.- Returns:
- the ViewProperties object itself.
-
timeframe
Get the timeframe property: The time frame for pulling data for the report. If custom, then a specific time period must be provided.- Returns:
- the timeframe value.
-
withTimeframe
Set the timeframe property: The time frame for pulling data for the report. If custom, then a specific time period must be provided.- Parameters:
timeframe
- the timeframe value to set.- Returns:
- the ViewProperties object itself.
-
timePeriod
Get the timePeriod property: Has time period for pulling data for the report.- Returns:
- the timePeriod value.
-
withTimePeriod
Set the timePeriod property: Has time period for pulling data for the report.- Parameters:
timePeriod
- the timePeriod value to set.- Returns:
- the ViewProperties object itself.
-
dataSet
Get the dataSet property: Has definition for data in this report config.- Returns:
- the dataSet value.
-
withDataSet
Set the dataSet property: Has definition for data in this report config.- Parameters:
dataSet
- the dataSet value to set.- Returns:
- the ViewProperties object itself.
-
includeMonetaryCommitment
Get the includeMonetaryCommitment property: If true, report includes monetary commitment.- Returns:
- the includeMonetaryCommitment value.
-
withIncludeMonetaryCommitment
Set the includeMonetaryCommitment property: If true, report includes monetary commitment.- Parameters:
includeMonetaryCommitment
- the includeMonetaryCommitment value to set.- Returns:
- the ViewProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-