AccountResourceSystemData Class

  • java.lang.Object
    • com.azure.resourcemanager.graphservices.models.AccountResourceSystemData

Implements

public final class AccountResourceSystemData
implements JsonSerializable<AccountResourceSystemData>

Metadata pertaining to creation and last modification of the resource.

Constructor Summary

Constructor Description
AccountResourceSystemData()

Creates an instance of AccountResourceSystemData class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdAt()

Get the createdAt property: The timestamp of resource creation (UTC).

CreatedByType createdByType()

Get the createdByType property: The type of identity that created the resource.

static AccountResourceSystemData fromJson(JsonReader jsonReader)

Reads an instance of AccountResourceSystemData from the JsonReader.

OffsetDateTime lastModifiedAt()

Get the lastModifiedAt property: The timestamp of resource last modification (UTC).

CreatedByType lastModifiedByType()

Get the lastModifiedByType property: The type of identity that last modified the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccountResourceSystemData withCreatedAt(OffsetDateTime createdAt)

Set the createdAt property: The timestamp of resource creation (UTC).

AccountResourceSystemData withCreatedByType(CreatedByType createdByType)

Set the createdByType property: The type of identity that created the resource.

AccountResourceSystemData withLastModifiedAt(OffsetDateTime lastModifiedAt)

Set the lastModifiedAt property: The timestamp of resource last modification (UTC).

AccountResourceSystemData withLastModifiedByType(CreatedByType lastModifiedByType)

Set the lastModifiedByType property: The type of identity that last modified the resource.

Methods inherited from java.lang.Object

Constructor Details

AccountResourceSystemData

public AccountResourceSystemData()

Creates an instance of AccountResourceSystemData class.

Method Details

createdAt

public OffsetDateTime createdAt()

Get the createdAt property: The timestamp of resource creation (UTC).

Returns:

the createdAt value.

createdByType

public CreatedByType createdByType()

Get the createdByType property: The type of identity that created the resource.

Returns:

the createdByType value.

fromJson

public static AccountResourceSystemData fromJson(JsonReader jsonReader)

Reads an instance of AccountResourceSystemData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastModifiedAt

public OffsetDateTime lastModifiedAt()

Get the lastModifiedAt property: The timestamp of resource last modification (UTC).

Returns:

the lastModifiedAt value.

lastModifiedByType

public CreatedByType lastModifiedByType()

Get the lastModifiedByType property: The type of identity that last modified the resource.

Returns:

the lastModifiedByType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCreatedAt

public AccountResourceSystemData withCreatedAt(OffsetDateTime createdAt)

Set the createdAt property: The timestamp of resource creation (UTC).

Parameters:

createdAt - the createdAt value to set.

Returns:

the AccountResourceSystemData object itself.

withCreatedByType

public AccountResourceSystemData withCreatedByType(CreatedByType createdByType)

Set the createdByType property: The type of identity that created the resource.

Parameters:

createdByType - the createdByType value to set.

Returns:

the AccountResourceSystemData object itself.

withLastModifiedAt

public AccountResourceSystemData withLastModifiedAt(OffsetDateTime lastModifiedAt)

Set the lastModifiedAt property: The timestamp of resource last modification (UTC).

Parameters:

lastModifiedAt - the lastModifiedAt value to set.

Returns:

the AccountResourceSystemData object itself.

withLastModifiedByType

public AccountResourceSystemData withLastModifiedByType(CreatedByType lastModifiedByType)

Set the lastModifiedByType property: The type of identity that last modified the resource.

Parameters:

lastModifiedByType - the lastModifiedByType value to set.

Returns:

the AccountResourceSystemData object itself.

Applies to