Class ChangeProperties
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.ChangeProperties
-
public final class ChangeProperties extends Object
The properties of a change.
-
-
Constructor Summary
Constructors Constructor Description ChangeProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeAttributeschangeAttributes()Get the changeAttributes property: Details about the change resource.Map<String,ChangeBase>changes()Get the changes property: A dictionary with changed property name as a key and the change details as the value.ResourceChangeTypechangeType()Get the changeType property: The type of change that was captured in the resource.StringtargetResourceId()Get the targetResourceId property: The fully qualified ID of the target resource that was changed.StringtargetResourceType()Get the targetResourceType property: The namespace and type of the resource.voidvalidate()Validates the instance.ChangePropertieswithChangeAttributes(ChangeAttributes changeAttributes)Set the changeAttributes property: Details about the change resource.ChangePropertieswithChanges(Map<String,ChangeBase> changes)Set the changes property: A dictionary with changed property name as a key and the change details as the value.
-
-
-
Method Detail
-
targetResourceId
public String targetResourceId()
Get the targetResourceId property: The fully qualified ID of the target resource that was changed.- Returns:
- the targetResourceId value.
-
targetResourceType
public String targetResourceType()
Get the targetResourceType property: The namespace and type of the resource.- Returns:
- the targetResourceType value.
-
changeType
public ResourceChangeType changeType()
Get the changeType property: The type of change that was captured in the resource.- Returns:
- the changeType value.
-
changeAttributes
public ChangeAttributes changeAttributes()
Get the changeAttributes property: Details about the change resource.- Returns:
- the changeAttributes value.
-
withChangeAttributes
public ChangeProperties withChangeAttributes(ChangeAttributes changeAttributes)
Set the changeAttributes property: Details about the change resource.- Parameters:
changeAttributes- the changeAttributes value to set.- Returns:
- the ChangeProperties object itself.
-
changes
public Map<String,ChangeBase> changes()
Get the changes property: A dictionary with changed property name as a key and the change details as the value.- Returns:
- the changes value.
-
withChanges
public ChangeProperties withChanges(Map<String,ChangeBase> changes)
Set the changes property: A dictionary with changed property name as a key and the change details as the value.- Parameters:
changes- the changes value to set.- Returns:
- the ChangeProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-