ChangeProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.changeanalysis.models.ChangeProperties

Implements

public final class ChangeProperties
implements JsonSerializable<ChangeProperties>

The properties of a change.

Constructor Summary

Constructor Description
ChangeProperties()

Creates an instance of ChangeProperties class.

Method Summary

Modifier and Type Method and Description
ChangeType changeType()

Get the changeType property: The type of the change.

static ChangeProperties fromJson(JsonReader jsonReader)

Reads an instance of ChangeProperties from the JsonReader.

List<String> initiatedByList()

Get the initiatedByList property: The list of identities who might initiated the change.

List<PropertyChange> propertyChanges()

Get the propertyChanges property: The list of detailed changes at json property level.

String resourceId()

Get the resourceId property: The resource id that the change is attached to.

OffsetDateTime timestamp()

Get the timestamp property: The time when the change is detected.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ChangeProperties withChangeType(ChangeType changeType)

Set the changeType property: The type of the change.

ChangeProperties withInitiatedByList(List<String> initiatedByList)

Set the initiatedByList property: The list of identities who might initiated the change.

ChangeProperties withPropertyChanges(List<PropertyChange> propertyChanges)

Set the propertyChanges property: The list of detailed changes at json property level.

ChangeProperties withResourceId(String resourceId)

Set the resourceId property: The resource id that the change is attached to.

ChangeProperties withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time when the change is detected.

Methods inherited from java.lang.Object

Constructor Details

ChangeProperties

public ChangeProperties()

Creates an instance of ChangeProperties class.

Method Details

changeType

public ChangeType changeType()

Get the changeType property: The type of the change.

Returns:

the changeType value.

fromJson

public static ChangeProperties fromJson(JsonReader jsonReader)

Reads an instance of ChangeProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

initiatedByList

public List<String> initiatedByList()

Get the initiatedByList property: The list of identities who might initiated the change. The identity could be user name (email address) or the object ID of the Service Principal.

Returns:

the initiatedByList value.

propertyChanges

public List<PropertyChange> propertyChanges()

Get the propertyChanges property: The list of detailed changes at json property level.

Returns:

the propertyChanges value.

resourceId

public String resourceId()

Get the resourceId property: The resource id that the change is attached to.

Returns:

the resourceId value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: The time when the change is detected.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChangeType

public ChangeProperties withChangeType(ChangeType changeType)

Set the changeType property: The type of the change.

Parameters:

changeType - the changeType value to set.

Returns:

the ChangeProperties object itself.

withInitiatedByList

public ChangeProperties withInitiatedByList(List<String> initiatedByList)

Set the initiatedByList property: The list of identities who might initiated the change. The identity could be user name (email address) or the object ID of the Service Principal.

Parameters:

initiatedByList - the initiatedByList value to set.

Returns:

the ChangeProperties object itself.

withPropertyChanges

public ChangeProperties withPropertyChanges(List<PropertyChange> propertyChanges)

Set the propertyChanges property: The list of detailed changes at json property level.

Parameters:

propertyChanges - the propertyChanges value to set.

Returns:

the ChangeProperties object itself.

withResourceId

public ChangeProperties withResourceId(String resourceId)

Set the resourceId property: The resource id that the change is attached to.

Parameters:

resourceId - the resourceId value to set.

Returns:

the ChangeProperties object itself.

withTimestamp

public ChangeProperties withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time when the change is detected.

Parameters:

timestamp - the timestamp value to set.

Returns:

the ChangeProperties object itself.

Applies to