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 Details

    • ViewInner

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

    • etag

      public String 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

      public ViewInner withEtag(String etag)
      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

      public String displayName()
      Get the displayName property: User input name of the view. Required.
      Returns:
      the displayName value.
    • withDisplayName

      public ViewInner withDisplayName(String displayName)
      Set the displayName property: User input name of the view. Required.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the ViewInner object itself.
    • scope

      public String 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

      public ViewInner withScope(String scope)
      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

      public OffsetDateTime createdOn()
      Get the createdOn property: Date the user created this view.
      Returns:
      the createdOn value.
    • modifiedOn

      public OffsetDateTime modifiedOn()
      Get the modifiedOn property: Date when the user last modified this view.
      Returns:
      the modifiedOn value.
    • chart

      public ChartType chart()
      Get the chart property: Chart type of the main view in Cost Analysis. Required.
      Returns:
      the chart value.
    • withChart

      public ViewInner withChart(ChartType chart)
      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

      public AccumulatedType accumulated()
      Get the accumulated property: Show costs accumulated over time.
      Returns:
      the accumulated value.
    • withAccumulated

      public ViewInner withAccumulated(AccumulatedType accumulated)
      Set the accumulated property: Show costs accumulated over time.
      Parameters:
      accumulated - the accumulated value to set.
      Returns:
      the ViewInner object itself.
    • metric

      public MetricType metric()
      Get the metric property: Metric to use when displaying costs.
      Returns:
      the metric value.
    • withMetric

      public ViewInner withMetric(MetricType metric)
      Set the metric property: Metric to use when displaying costs.
      Parameters:
      metric - the metric value to set.
      Returns:
      the ViewInner object itself.
    • kpis

      public List<KpiProperties> kpis()
      Get the kpis property: List of KPIs to show in Cost Analysis UI.
      Returns:
      the kpis value.
    • withKpis

      public ViewInner withKpis(List<KpiProperties> kpis)
      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

      public List<PivotProperties> pivots()
      Get the pivots property: Configuration of 3 sub-views in the Cost Analysis UI.
      Returns:
      the pivots value.
    • withPivots

      public ViewInner withPivots(List<PivotProperties> pivots)
      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

      public ReportType 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

      public ViewInner withTypePropertiesType(ReportType type)
      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

      public ReportTimeframeType 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

      public ViewInner withTimeframe(ReportTimeframeType timeframe)
      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

      public ReportConfigTimePeriod timePeriod()
      Get the timePeriod property: Has time period for pulling data for the report.
      Returns:
      the timePeriod value.
    • withTimePeriod

      public ViewInner withTimePeriod(ReportConfigTimePeriod timePeriod)
      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

      public ReportConfigDataset dataset()
      Get the dataset property: Has definition for data in this report config.
      Returns:
      the dataset value.
    • withDataset

      public ViewInner withDataset(ReportConfigDataset dataset)
      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.