共用方式為


MicrosoftGraphLicenseUnitsDetail Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphLicenseUnitsDetail

Implements

public final class MicrosoftGraphLicenseUnitsDetail
implements JsonSerializable<MicrosoftGraphLicenseUnitsDetail>

licenseUnitsDetail.

Constructor Summary

Constructor Description
MicrosoftGraphLicenseUnitsDetail()

Creates an instance of MicrosoftGraphLicenseUnitsDetail class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: licenseUnitsDetail.

Integer enabled()

Get the enabled property: The number of units that are enabled.

static MicrosoftGraphLicenseUnitsDetail fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLicenseUnitsDetail from the JsonReader.

Integer suspended()

Get the suspended property: The number of units that are suspended.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer warning()

Get the warning property: The number of units that are in warning status.

MicrosoftGraphLicenseUnitsDetail withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: licenseUnitsDetail.

MicrosoftGraphLicenseUnitsDetail withEnabled(Integer enabled)

Set the enabled property: The number of units that are enabled.

MicrosoftGraphLicenseUnitsDetail withSuspended(Integer suspended)

Set the suspended property: The number of units that are suspended.

MicrosoftGraphLicenseUnitsDetail withWarning(Integer warning)

Set the warning property: The number of units that are in warning status.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphLicenseUnitsDetail

public MicrosoftGraphLicenseUnitsDetail()

Creates an instance of MicrosoftGraphLicenseUnitsDetail class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: licenseUnitsDetail.

Returns:

the additionalProperties value.

enabled

public Integer enabled()

Get the enabled property: The number of units that are enabled.

Returns:

the enabled value.

fromJson

public static MicrosoftGraphLicenseUnitsDetail fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLicenseUnitsDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

suspended

public Integer suspended()

Get the suspended property: The number of units that are suspended.

Returns:

the suspended value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

warning

public Integer warning()

Get the warning property: The number of units that are in warning status.

Returns:

the warning value.

withAdditionalProperties

public MicrosoftGraphLicenseUnitsDetail withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: licenseUnitsDetail.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphLicenseUnitsDetail object itself.

withEnabled

public MicrosoftGraphLicenseUnitsDetail withEnabled(Integer enabled)

Set the enabled property: The number of units that are enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the MicrosoftGraphLicenseUnitsDetail object itself.

withSuspended

public MicrosoftGraphLicenseUnitsDetail withSuspended(Integer suspended)

Set the suspended property: The number of units that are suspended.

Parameters:

suspended - the suspended value to set.

Returns:

the MicrosoftGraphLicenseUnitsDetail object itself.

withWarning

public MicrosoftGraphLicenseUnitsDetail withWarning(Integer warning)

Set the warning property: The number of units that are in warning status.

Parameters:

warning - the warning value to set.

Returns:

the MicrosoftGraphLicenseUnitsDetail object itself.

Applies to