DepartmentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.DepartmentProperties

Implements

public final class DepartmentProperties
implements JsonSerializable<DepartmentProperties>

Optional grouping of enrollment accounts to segment costs into logical groupings and set budgets.

Constructor Summary

Constructor Description
DepartmentProperties()

Creates an instance of DepartmentProperties class.

Method Summary

Modifier and Type Method and Description
String costCenter()

Get the costCenter property: The cost center associated with the department.

String displayName()

Get the displayName property: The name of the department.

static DepartmentProperties fromJson(JsonReader jsonReader)

Reads an instance of DepartmentProperties from the JsonReader.

String id()

Get the id property: The ID that uniquely identifies the department.

String status()

Get the status property: The status of the department.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DepartmentProperties withCostCenter(String costCenter)

Set the costCenter property: The cost center associated with the department.

DepartmentProperties withDisplayName(String displayName)

Set the displayName property: The name of the department.

Methods inherited from java.lang.Object

Constructor Details

DepartmentProperties

public DepartmentProperties()

Creates an instance of DepartmentProperties class.

Method Details

costCenter

public String costCenter()

Get the costCenter property: The cost center associated with the department.

Returns:

the costCenter value.

displayName

public String displayName()

Get the displayName property: The name of the department.

Returns:

the displayName value.

fromJson

public static DepartmentProperties fromJson(JsonReader jsonReader)

Reads an instance of DepartmentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DepartmentProperties 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 DepartmentProperties.

id

public String id()

Get the id property: The ID that uniquely identifies the department.

Returns:

the id value.

status

public String status()

Get the status property: The status of the department.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCostCenter

public DepartmentProperties withCostCenter(String costCenter)

Set the costCenter property: The cost center associated with the department.

Parameters:

costCenter - the costCenter value to set.

Returns:

the DepartmentProperties object itself.

withDisplayName

public DepartmentProperties withDisplayName(String displayName)

Set the displayName property: The name of the department.

Parameters:

displayName - the displayName value to set.

Returns:

the DepartmentProperties object itself.

Applies to