PropertyChange Class
- java.
lang. Object - com.
azure. resourcemanager. changeanalysis. models. PropertyChange
- com.
Implements
public final class PropertyChange
implements JsonSerializable<PropertyChange>
Data of a property change.
Constructor Summary
| Constructor | Description |
|---|---|
| PropertyChange() |
Creates an instance of Property |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Change |
changeCategory()
Get the change |
|
Change |
changeType()
Get the change |
| String |
description()
Get the description property: The description of the changed property. |
| String |
displayName()
Get the display |
|
static
Property |
fromJson(JsonReader jsonReader)
Reads an instance of Property |
| Boolean |
isDataMasked()
Get the is |
| String |
jsonPath()
Get the json |
| Level |
level()
Get the level property: The level property. |
| String |
newValue()
Get the new |
| String |
oldValue()
Get the old |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Property |
withChangeCategory(ChangeCategory changeCategory)
Set the change |
|
Property |
withChangeType(ChangeType changeType)
Set the change |
|
Property |
withDescription(String description)
Set the description property: The description of the changed property. |
|
Property |
withDisplayName(String displayName)
Set the display |
|
Property |
withIsDataMasked(Boolean isDataMasked)
Set the is |
|
Property |
withJsonPath(String jsonPath)
Set the json |
|
Property |
withLevel(Level level)
Set the level property: The level property. |
|
Property |
withNewValue(String newValue)
Set the new |
|
Property |
withOldValue(String oldValue)
Set the old |
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:
changeType
public ChangeType changeType()
Get the changeType property: The type of the change.
Returns:
description
public String description()
Get the description property: The description of the changed property.
Returns:
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:
fromJson
public static PropertyChange fromJson(JsonReader jsonReader)
Reads an instance of PropertyChange from the JsonReader.
Parameters:
Returns:
Throws:
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:
jsonPath
public String jsonPath()
Get the jsonPath property: The json path of the changed property.
Returns:
level
public Level level()
Get the level property: The level property.
Returns:
newValue
public String newValue()
Get the newValue property: The value of the property after the change.
Returns:
oldValue
public String oldValue()
Get the oldValue property: The value of the property before the change.
Returns:
toJson
validate
public void validate()
Validates the instance.
withChangeCategory
public PropertyChange withChangeCategory(ChangeCategory changeCategory)
Set the changeCategory property: The change category.
Parameters:
Returns:
withChangeType
public PropertyChange withChangeType(ChangeType changeType)
Set the changeType property: The type of the change.
Parameters:
Returns:
withDescription
public PropertyChange withDescription(String description)
Set the description property: The description of the changed property.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withJsonPath
public PropertyChange withJsonPath(String jsonPath)
Set the jsonPath property: The json path of the changed property.
Parameters:
Returns:
withLevel
public PropertyChange withLevel(Level level)
Set the level property: The level property.
Parameters:
Returns:
withNewValue
public PropertyChange withNewValue(String newValue)
Set the newValue property: The value of the property after the change.
Parameters:
Returns:
withOldValue
public PropertyChange withOldValue(String oldValue)
Set the oldValue property: The value of the property before the change.
Parameters:
Returns: