Compartilhar via


MicrosoftGraphUsageDetails Class

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

Implements

public final class MicrosoftGraphUsageDetails
implements JsonSerializable<MicrosoftGraphUsageDetails>

usageDetails.

Constructor Summary

Constructor Description
MicrosoftGraphUsageDetails()

Creates an instance of MicrosoftGraphUsageDetails class.

Method Summary

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

Get the additionalProperties property: usageDetails.

static MicrosoftGraphUsageDetails fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUsageDetails from the JsonReader.

OffsetDateTime lastAccessedDateTime()

Get the lastAccessedDateTime property: The date and time the resource was last accessed by the user.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date and time the resource was last modified by the user.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphUsageDetails withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: usageDetails.

MicrosoftGraphUsageDetails withLastAccessedDateTime(OffsetDateTime lastAccessedDateTime)

Set the lastAccessedDateTime property: The date and time the resource was last accessed by the user.

MicrosoftGraphUsageDetails withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The date and time the resource was last modified by the user.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphUsageDetails

public MicrosoftGraphUsageDetails()

Creates an instance of MicrosoftGraphUsageDetails class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: usageDetails.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphUsageDetails fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUsageDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastAccessedDateTime

public OffsetDateTime lastAccessedDateTime()

Get the lastAccessedDateTime property: The date and time the resource was last accessed by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.

Returns:

the lastAccessedDateTime value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date and time the resource was last modified by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.

Returns:

the lastModifiedDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphUsageDetails withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: usageDetails.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphUsageDetails object itself.

withLastAccessedDateTime

public MicrosoftGraphUsageDetails withLastAccessedDateTime(OffsetDateTime lastAccessedDateTime)

Set the lastAccessedDateTime property: The date and time the resource was last accessed by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.

Parameters:

lastAccessedDateTime - the lastAccessedDateTime value to set.

Returns:

the MicrosoftGraphUsageDetails object itself.

withLastModifiedDateTime

public MicrosoftGraphUsageDetails withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The date and time the resource was last modified by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.

Parameters:

lastModifiedDateTime - the lastModifiedDateTime value to set.

Returns:

the MicrosoftGraphUsageDetails object itself.

Applies to