PropertyChange Class

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

Implements

public final class PropertyChange
implements JsonSerializable<PropertyChange>

Data of a property change.

Constructor Summary

Constructor Description
PropertyChange()

Creates an instance of PropertyChange class.

Method Summary

Modifier and Type Method and Description
ChangeCategory changeCategory()

Get the changeCategory property: The change category.

ChangeType changeType()

Get the changeType property: The type of the change.

String description()

Get the description property: The description of the changed property.

String displayName()

Get the displayName property: The enhanced display name of the json path.

static PropertyChange fromJson(JsonReader jsonReader)

Reads an instance of PropertyChange from the JsonReader.

Boolean isDataMasked()

Get the isDataMasked property: The boolean indicating whether the oldValue and newValue are masked.

String jsonPath()

Get the jsonPath property: The json path of the changed property.

Level level()

Get the level property: The level property.

String newValue()

Get the newValue property: The value of the property after the change.

String oldValue()

Get the oldValue property: The value of the property before the change.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PropertyChange withChangeCategory(ChangeCategory changeCategory)

Set the changeCategory property: The change category.

PropertyChange withChangeType(ChangeType changeType)

Set the changeType property: The type of the change.

PropertyChange withDescription(String description)

Set the description property: The description of the changed property.

PropertyChange withDisplayName(String displayName)

Set the displayName property: The enhanced display name of the json path.

PropertyChange withIsDataMasked(Boolean isDataMasked)

Set the isDataMasked property: The boolean indicating whether the oldValue and newValue are masked.

PropertyChange withJsonPath(String jsonPath)

Set the jsonPath property: The json path of the changed property.

PropertyChange withLevel(Level level)

Set the level property: The level property.

PropertyChange withNewValue(String newValue)

Set the newValue property: The value of the property after the change.

PropertyChange withOldValue(String oldValue)

Set the oldValue property: The value of the property before the change.

Methods inherited from java.lang.Object

Constructor Details

PropertyChange

public PropertyChange()

Creates an instance of PropertyChange class.

Method Details

changeCategory

public ChangeCategory changeCategory()

Get the changeCategory property: The change category.

Returns:

the changeCategory value.

changeType

public ChangeType changeType()

Get the changeType property: The type of the change.

Returns:

the changeType value.

description

public String description()

Get the description property: The description of the changed property.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The enhanced display name of the json path. E.g., the json path value[0].properties will be translated to something meaningful like slots["Staging"].properties.

Returns:

the displayName value.

fromJson

public static PropertyChange fromJson(JsonReader jsonReader)

Reads an instance of PropertyChange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDataMasked

public Boolean isDataMasked()

Get the isDataMasked property: The boolean indicating whether the oldValue and newValue are masked. The values are masked if it contains sensitive information that the user doesn't have access to.

Returns:

the isDataMasked value.

jsonPath

public String jsonPath()

Get the jsonPath property: The json path of the changed property.

Returns:

the jsonPath value.

level

public Level level()

Get the level property: The level property.

Returns:

the level value.

newValue

public String newValue()

Get the newValue property: The value of the property after the change.

Returns:

the newValue value.

oldValue

public String oldValue()

Get the oldValue property: The value of the property before the change.

Returns:

the oldValue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChangeCategory

public PropertyChange withChangeCategory(ChangeCategory changeCategory)

Set the changeCategory property: The change category.

Parameters:

changeCategory - the changeCategory value to set.

Returns:

the PropertyChange object itself.

withChangeType

public PropertyChange withChangeType(ChangeType changeType)

Set the changeType property: The type of the change.

Parameters:

changeType - the changeType value to set.

Returns:

the PropertyChange object itself.

withDescription

public PropertyChange withDescription(String description)

Set the description property: The description of the changed property.

Parameters:

description - the description value to set.

Returns:

the PropertyChange object itself.

withDisplayName

public PropertyChange withDisplayName(String displayName)

Set the displayName property: The enhanced display name of the json path. E.g., the json path value[0].properties will be translated to something meaningful like slots["Staging"].properties.

Parameters:

displayName - the displayName value to set.

Returns:

the PropertyChange object itself.

withIsDataMasked

public PropertyChange withIsDataMasked(Boolean isDataMasked)

Set the isDataMasked property: The boolean indicating whether the oldValue and newValue are masked. The values are masked if it contains sensitive information that the user doesn't have access to.

Parameters:

isDataMasked - the isDataMasked value to set.

Returns:

the PropertyChange object itself.

withJsonPath

public PropertyChange withJsonPath(String jsonPath)

Set the jsonPath property: The json path of the changed property.

Parameters:

jsonPath - the jsonPath value to set.

Returns:

the PropertyChange object itself.

withLevel

public PropertyChange withLevel(Level level)

Set the level property: The level property.

Parameters:

level - the level value to set.

Returns:

the PropertyChange object itself.

withNewValue

public PropertyChange withNewValue(String newValue)

Set the newValue property: The value of the property after the change.

Parameters:

newValue - the newValue value to set.

Returns:

the PropertyChange object itself.

withOldValue

public PropertyChange withOldValue(String oldValue)

Set the oldValue property: The value of the property before the change.

Parameters:

oldValue - the oldValue value to set.

Returns:

the PropertyChange object itself.

Applies to