ManagementGroupAggregatedCostResultInner Class

public final class ManagementGroupAggregatedCostResultInner
extends ProxyResource

A management group aggregated cost resource.

Constructor Summary

Constructor Description
ManagementGroupAggregatedCostResultInner()

Creates an instance of ManagementGroupAggregatedCostResultInner 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.

String etag()

Get the etag property: The etag for the resource.

List<String> excludedSubscriptions()

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

static ManagementGroupAggregatedCostResultInner fromJson(JsonReader jsonReader)

Reads an instance of ManagementGroupAggregatedCostResultInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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.

String name()

Get the name property: The name of the resource.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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.

ManagementGroupAggregatedCostResultInner withChildren(List<ManagementGroupAggregatedCostResultInner> children)

Set the children property: Children of a management group.

ManagementGroupAggregatedCostResultInner withExcludedSubscriptions(List<String> excludedSubscriptions)

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

ManagementGroupAggregatedCostResultInner withIncludedSubscriptions(List<String> includedSubscriptions)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagementGroupAggregatedCostResultInner

public ManagementGroupAggregatedCostResultInner()

Creates an instance of ManagementGroupAggregatedCostResultInner 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.

etag

public String etag()

Get the etag property: The etag for the resource.

Returns:

the etag 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 ManagementGroupAggregatedCostResultInner fromJson(JsonReader jsonReader)

Reads an instance of ManagementGroupAggregatedCostResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagementGroupAggregatedCostResultInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagementGroupAggregatedCostResultInner.name()

Returns:

the name value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagementGroupAggregatedCostResultInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagementGroupAggregatedCostResultInner.type()

Returns:

the type value.

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 ManagementGroupAggregatedCostResultInner withChildren(List<ManagementGroupAggregatedCostResultInner> children)

Set the children property: Children of a management group.

Parameters:

children - the children value to set.

Returns:

the ManagementGroupAggregatedCostResultInner object itself.

withExcludedSubscriptions

public ManagementGroupAggregatedCostResultInner 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 ManagementGroupAggregatedCostResultInner object itself.

withIncludedSubscriptions

public ManagementGroupAggregatedCostResultInner 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 ManagementGroupAggregatedCostResultInner object itself.

Applies to