ManagementGroupAggregatedCostProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.fluent.models.ManagementGroupAggregatedCostProperties

Implements

public final class ManagementGroupAggregatedCostProperties
implements JsonSerializable<ManagementGroupAggregatedCostProperties>

The properties of the Management Group Aggregated Cost.

Constructor Summary

Constructor Description
ManagementGroupAggregatedCostProperties()

Creates an instance of ManagementGroupAggregatedCostProperties class.

Method Summary

Modifier and Type Method and Description
BigDecimal azureCharges()

Get the azureCharges property: Azure Charges.

String billingPeriodId()

Get the billingPeriodId property: The id of the billing period resource that the aggregated cost belongs to.

BigDecimal chargesBilledSeparately()

Get the chargesBilledSeparately property: Charges Billed Separately.

List<ManagementGroupAggregatedCostResultInner> children()

Get the children property: Children of a management group.

String currency()

Get the currency property: The ISO currency in which the meter is charged, for example, USD.

List<String> excludedSubscriptions()

Get the excludedSubscriptions property: List of subscription Guids excluded from the calculation of aggregated cost.

static ManagementGroupAggregatedCostProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagementGroupAggregatedCostProperties from the JsonReader.

List<String> includedSubscriptions()

Get the includedSubscriptions property: List of subscription Guids included in the calculation of aggregated cost.

BigDecimal marketplaceCharges()

Get the marketplaceCharges property: Marketplace Charges.

JsonWriter toJson(JsonWriter jsonWriter)
OffsetDateTime usageEnd()

Get the usageEnd property: The end of the date time range covered by the aggregated cost.

OffsetDateTime usageStart()

Get the usageStart property: The start of the date time range covered by aggregated cost.

void validate()

Validates the instance.

ManagementGroupAggregatedCostProperties withChildren(List<ManagementGroupAggregatedCostResultInner> children)

Set the children property: Children of a management group.

ManagementGroupAggregatedCostProperties withExcludedSubscriptions(List<String> excludedSubscriptions)

Set the excludedSubscriptions property: List of subscription Guids excluded from the calculation of aggregated cost.

ManagementGroupAggregatedCostProperties withIncludedSubscriptions(List<String> includedSubscriptions)

Set the includedSubscriptions property: List of subscription Guids included in the calculation of aggregated cost.

Methods inherited from java.lang.Object

Constructor Details

ManagementGroupAggregatedCostProperties

public ManagementGroupAggregatedCostProperties()

Creates an instance of ManagementGroupAggregatedCostProperties class.

Method Details

azureCharges

public BigDecimal azureCharges()

Get the azureCharges property: Azure Charges.

Returns:

the azureCharges value.

billingPeriodId

public String billingPeriodId()

Get the billingPeriodId property: The id of the billing period resource that the aggregated cost belongs to.

Returns:

the billingPeriodId value.

chargesBilledSeparately

public BigDecimal chargesBilledSeparately()

Get the chargesBilledSeparately property: Charges Billed Separately.

Returns:

the chargesBilledSeparately value.

children

public List<ManagementGroupAggregatedCostResultInner> children()

Get the children property: Children of a management group.

Returns:

the children value.

currency

public String currency()

Get the currency property: The ISO currency in which the meter is charged, for example, USD.

Returns:

the currency value.

excludedSubscriptions

public List<String> excludedSubscriptions()

Get the excludedSubscriptions property: List of subscription Guids excluded from the calculation of aggregated cost.

Returns:

the excludedSubscriptions value.

fromJson

public static ManagementGroupAggregatedCostProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagementGroupAggregatedCostProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagementGroupAggregatedCostProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagementGroupAggregatedCostProperties.

includedSubscriptions

public List<String> includedSubscriptions()

Get the includedSubscriptions property: List of subscription Guids included in the calculation of aggregated cost.

Returns:

the includedSubscriptions value.

marketplaceCharges

public BigDecimal marketplaceCharges()

Get the marketplaceCharges property: Marketplace Charges.

Returns:

the marketplaceCharges value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usageEnd

public OffsetDateTime usageEnd()

Get the usageEnd property: The end of the date time range covered by the aggregated cost.

Returns:

the usageEnd value.

usageStart

public OffsetDateTime usageStart()

Get the usageStart property: The start of the date time range covered by aggregated cost.

Returns:

the usageStart value.

validate

public void validate()

Validates the instance.

withChildren

public ManagementGroupAggregatedCostProperties withChildren(List<ManagementGroupAggregatedCostResultInner> children)

Set the children property: Children of a management group.

Parameters:

children - the children value to set.

Returns:

the ManagementGroupAggregatedCostProperties object itself.

withExcludedSubscriptions

public ManagementGroupAggregatedCostProperties withExcludedSubscriptions(List<String> excludedSubscriptions)

Set the excludedSubscriptions property: List of subscription Guids excluded from the calculation of aggregated cost.

Parameters:

excludedSubscriptions - the excludedSubscriptions value to set.

Returns:

the ManagementGroupAggregatedCostProperties object itself.

withIncludedSubscriptions

public ManagementGroupAggregatedCostProperties withIncludedSubscriptions(List<String> includedSubscriptions)

Set the includedSubscriptions property: List of subscription Guids included in the calculation of aggregated cost.

Parameters:

includedSubscriptions - the includedSubscriptions value to set.

Returns:

the ManagementGroupAggregatedCostProperties object itself.

Applies to