ChangeProperties Class
- java.
lang. Object - com.
azure. resourcemanager. changeanalysis. models. ChangeProperties
- com.
Implements
public final class ChangeProperties
implements JsonSerializable<ChangeProperties>
The properties of a change.
Constructor Summary
| Constructor | Description |
|---|---|
| ChangeProperties() |
Creates an instance of Change |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Change |
changeType()
Get the change |
|
static
Change |
fromJson(JsonReader jsonReader)
Reads an instance of Change |
| List<String> |
initiatedByList()
Get the initiated |
|
List<Property |
propertyChanges()
Get the property |
| String |
resourceId()
Get the resource |
|
Offset |
timestamp()
Get the timestamp property: The time when the change is detected. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Change |
withChangeType(ChangeType changeType)
Set the change |
|
Change |
withInitiatedByList(List<String> initiatedByList)
Set the initiated |
|
Change |
withPropertyChanges(List<PropertyChange> propertyChanges)
Set the property |
|
Change |
withResourceId(String resourceId)
Set the resource |
|
Change |
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:
fromJson
public static ChangeProperties fromJson(JsonReader jsonReader)
Reads an instance of ChangeProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
propertyChanges
public List<PropertyChange> propertyChanges()
Get the propertyChanges property: The list of detailed changes at json property level.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource id that the change is attached to.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: The time when the change is detected.
Returns:
toJson
validate
public void validate()
Validates the instance.
withChangeType
public ChangeProperties withChangeType(ChangeType changeType)
Set the changeType property: The type of the change.
Parameters:
Returns:
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:
Returns:
withPropertyChanges
public ChangeProperties withPropertyChanges(List<PropertyChange> propertyChanges)
Set the propertyChanges property: The list of detailed changes at json property level.
Parameters:
Returns:
withResourceId
public ChangeProperties withResourceId(String resourceId)
Set the resourceId property: The resource id that the change is attached to.
Parameters:
Returns:
withTimestamp
public ChangeProperties withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: The time when the change is detected.
Parameters:
Returns: