DepartmentProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. DepartmentProperties
- com.
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 Department |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
costCenter()
Get the cost |
| String |
displayName()
Get the display |
|
static
Department |
fromJson(JsonReader jsonReader)
Reads an instance of Department |
| String |
id()
Get the id property: The ID that uniquely identifies the department. |
| String |
status()
Get the status property: The status of the department. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Department |
withCostCenter(String costCenter)
Set the cost |
|
Department |
withDisplayName(String displayName)
Set the display |
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:
displayName
public String displayName()
Get the displayName property: The name of the department.
Returns:
fromJson
public static DepartmentProperties fromJson(JsonReader jsonReader)
Reads an instance of DepartmentProperties from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The ID that uniquely identifies the department.
Returns:
status
public String status()
Get the status property: The status of the department.
Returns:
toJson
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:
Returns:
withDisplayName
public DepartmentProperties withDisplayName(String displayName)
Set the displayName property: The name of the department.
Parameters:
Returns: