EnrollmentAccountProperties Class

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

Implements

public final class EnrollmentAccountProperties
implements JsonSerializable<EnrollmentAccountProperties>

It is an organizational hierarchy within a billing account to administer and manage azure costs.

Constructor Summary

Constructor Description
EnrollmentAccountProperties()

Creates an instance of EnrollmentAccountProperties class.

Method Summary

Modifier and Type Method and Description
String accountOwner()

Get the accountOwner property: The owner of the enrollment account.

String authType()

Get the authType property: The authorization type of the enrollment account.

String costCenter()

Get the costCenter property: The cost center associated with the enrollment account.

String departmentDisplayName()

Get the departmentDisplayName property: The name of the department under which the enrollment account exists.

String departmentId()

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

String displayName()

Get the displayName property: The name of the enrollment account.

OffsetDateTime endDate()

Get the endDate property: The date of expiration of the enrollment account.

static EnrollmentAccountProperties fromJson(JsonReader jsonReader)

Reads an instance of EnrollmentAccountProperties from the JsonReader.

Boolean isDevTestEnabled()

Get the isDevTestEnabled property: Boolean flag which enables subscribers to run development and testing workloads on Azure at special Dev/Test rates.

OffsetDateTime startDate()

Get the startDate property: The date from which the enrollment account became valid and functional.

String status()

Get the status property: The status of the enrollment account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EnrollmentAccountProperties withCostCenter(String costCenter)

Set the costCenter property: The cost center associated with the enrollment account.

EnrollmentAccountProperties withDisplayName(String displayName)

Set the displayName property: The name of the enrollment account.

EnrollmentAccountProperties withIsDevTestEnabled(Boolean isDevTestEnabled)

Set the isDevTestEnabled property: Boolean flag which enables subscribers to run development and testing workloads on Azure at special Dev/Test rates.

Methods inherited from java.lang.Object

Constructor Details

EnrollmentAccountProperties

public EnrollmentAccountProperties()

Creates an instance of EnrollmentAccountProperties class.

Method Details

accountOwner

public String accountOwner()

Get the accountOwner property: The owner of the enrollment account.

Returns:

the accountOwner value.

authType

public String authType()

Get the authType property: The authorization type of the enrollment account.

Returns:

the authType value.

costCenter

public String costCenter()

Get the costCenter property: The cost center associated with the enrollment account.

Returns:

the costCenter value.

departmentDisplayName

public String departmentDisplayName()

Get the departmentDisplayName property: The name of the department under which the enrollment account exists.

Returns:

the departmentDisplayName value.

departmentId

public String departmentId()

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

Returns:

the departmentId value.

displayName

public String displayName()

Get the displayName property: The name of the enrollment account.

Returns:

the displayName value.

endDate

public OffsetDateTime endDate()

Get the endDate property: The date of expiration of the enrollment account.

Returns:

the endDate value.

fromJson

public static EnrollmentAccountProperties fromJson(JsonReader jsonReader)

Reads an instance of EnrollmentAccountProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDevTestEnabled

public Boolean isDevTestEnabled()

Get the isDevTestEnabled property: Boolean flag which enables subscribers to run development and testing workloads on Azure at special Dev/Test rates.

Returns:

the isDevTestEnabled value.

startDate

public OffsetDateTime startDate()

Get the startDate property: The date from which the enrollment account became valid and functional.

Returns:

the startDate value.

status

public String status()

Get the status property: The status of the enrollment account.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCostCenter

public EnrollmentAccountProperties withCostCenter(String costCenter)

Set the costCenter property: The cost center associated with the enrollment account.

Parameters:

costCenter - the costCenter value to set.

Returns:

the EnrollmentAccountProperties object itself.

withDisplayName

public EnrollmentAccountProperties withDisplayName(String displayName)

Set the displayName property: The name of the enrollment account.

Parameters:

displayName - the displayName value to set.

Returns:

the EnrollmentAccountProperties object itself.

withIsDevTestEnabled

public EnrollmentAccountProperties withIsDevTestEnabled(Boolean isDevTestEnabled)

Set the isDevTestEnabled property: Boolean flag which enables subscribers to run development and testing workloads on Azure at special Dev/Test rates.

Parameters:

isDevTestEnabled - the isDevTestEnabled value to set.

Returns:

the EnrollmentAccountProperties object itself.

Applies to