Department Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. models. Department
- com.
- com.
public final class Department
extends ProxyResource
A department.
Constructor Summary
Constructor | Description |
---|---|
Department() |
Creates an instance of Department class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
costCenter()
Get the cost |
String |
departmentName()
Get the department |
List<Enrollment |
enrollmentAccounts()
Get the enrollment |
String |
status()
Get the status property: The status of the department. |
void |
validate()
Validates the instance. |
Department |
withCostCenter(String costCenter)
Set the cost |
Department |
withDepartmentName(String departmentName)
Set the department |
Department |
withEnrollmentAccounts(List<EnrollmentAccount> enrollmentAccounts)
Set the enrollment |
Department |
withStatus(String status)
Set the status property: The status of the department. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
Department
public Department()
Creates an instance of Department class.
Method Details
costCenter
public String costCenter()
Get the costCenter property: The cost center associated with the department.
Returns:
departmentName
public String departmentName()
Get the departmentName property: The name of the department.
Returns:
enrollmentAccounts
public List
Get the enrollmentAccounts property: Associated enrollment accounts. By default this is not populated, unless it's specified in $expand.
Returns:
status
public String status()
Get the status property: The status of the department.
Returns:
validate
public void validate()
Validates the instance.
withCostCenter
public Department withCostCenter(String costCenter)
Set the costCenter property: The cost center associated with the department.
Parameters:
Returns:
withDepartmentName
public Department withDepartmentName(String departmentName)
Set the departmentName property: The name of the department.
Parameters:
Returns:
withEnrollmentAccounts
public Department withEnrollmentAccounts(List
Set the enrollmentAccounts property: Associated enrollment accounts. By default this is not populated, unless it's specified in $expand.
Parameters:
Returns:
withStatus
public Department withStatus(String status)
Set the status property: The status of the department.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for