Class ViewInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.costmanagement.fluent.models.ViewInner
public final class ViewInner
extends com.azure.core.management.ProxyResource
States and configurations of Cost Analysis.
-
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.dataset()
Get the dataset property: Has definition for data in this report config.Get the displayName property: User input name of the view.etag()
Get the etag property: eTag of the resource.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.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.Set the etag property: eTag of the resource.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.Set the type property: The type of the report.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ViewInner
public ViewInner()Creates an instance of ViewInner class.
-
-
Method Details
-
etag
Get the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.- Returns:
- the etag value.
-
withEtag
Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.- Parameters:
etag
- the etag value to set.- Returns:
- the ViewInner object itself.
-
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 ViewInner 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 ViewInner 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.
-
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 ViewInner 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 ViewInner 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 ViewInner 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 ViewInner 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 ViewInner object itself.
-
typePropertiesType
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.
-
withTypePropertiesType
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 ViewInner 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 ViewInner 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 ViewInner 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 ViewInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-