Class PolicyAssignmentPropertiesPolicy
java.lang.Object
com.azure.resourcemanager.authorization.models.PolicyAssignmentPropertiesPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyAssignmentPropertiesPolicy>
public final class PolicyAssignmentPropertiesPolicy
extends Object
implements com.azure.json.JsonSerializable<PolicyAssignmentPropertiesPolicy>
Details of the policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyAssignmentPropertiesPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyAssignmentPropertiesPolicy from the JsonReader.id()Get the id property: Id of the policy.Get the lastModifiedBy property: The name of the entity last modified it.Get the lastModifiedDateTime property: The last modified date time.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: Id of the policy.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) Set the lastModifiedDateTime property: The last modified date time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PolicyAssignmentPropertiesPolicy
public PolicyAssignmentPropertiesPolicy()Creates an instance of PolicyAssignmentPropertiesPolicy class.
-
-
Method Details
-
id
Get the id property: Id of the policy.- Returns:
- the id value.
-
withId
Set the id property: Id of the policy.- Parameters:
id- the id value to set.- Returns:
- the PolicyAssignmentPropertiesPolicy object itself.
-
lastModifiedBy
Get the lastModifiedBy property: The name of the entity last modified it.- Returns:
- the lastModifiedBy value.
-
lastModifiedDateTime
Get the lastModifiedDateTime property: The last modified date time.- Returns:
- the lastModifiedDateTime value.
-
withLastModifiedDateTime
public PolicyAssignmentPropertiesPolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) Set the lastModifiedDateTime property: The last modified date time.- Parameters:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the PolicyAssignmentPropertiesPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PolicyAssignmentPropertiesPolicy>- Throws:
IOException
-
fromJson
public static PolicyAssignmentPropertiesPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicyAssignmentPropertiesPolicy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyAssignmentPropertiesPolicy 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 PolicyAssignmentPropertiesPolicy.
-