Class PolicyAssignmentPropertiesRoleDefinition
java.lang.Object
com.azure.resourcemanager.authorization.models.PolicyAssignmentPropertiesRoleDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyAssignmentPropertiesRoleDefinition>
public final class PolicyAssignmentPropertiesRoleDefinition
extends Object
implements com.azure.json.JsonSerializable<PolicyAssignmentPropertiesRoleDefinition>
Details of role definition.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyAssignmentPropertiesRoleDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Display name of the role definition.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyAssignmentPropertiesRoleDefinition from the JsonReader.id()Get the id property: Id of the role definition.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the role definition.voidvalidate()Validates the instance.withDisplayName(String displayName) Set the displayName property: Display name of the role definition.Set the id property: Id of the role definition.Set the type property: Type of the role definition.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
-
PolicyAssignmentPropertiesRoleDefinition
public PolicyAssignmentPropertiesRoleDefinition()Creates an instance of PolicyAssignmentPropertiesRoleDefinition class.
-
-
Method Details
-
id
Get the id property: Id of the role definition.- Returns:
- the id value.
-
withId
Set the id property: Id of the role definition.- Parameters:
id- the id value to set.- Returns:
- the PolicyAssignmentPropertiesRoleDefinition object itself.
-
displayName
Get the displayName property: Display name of the role definition.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of the role definition.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicyAssignmentPropertiesRoleDefinition object itself.
-
type
Get the type property: Type of the role definition.- Returns:
- the type value.
-
withType
Set the type property: Type of the role definition.- Parameters:
type- the type value to set.- Returns:
- the PolicyAssignmentPropertiesRoleDefinition 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<PolicyAssignmentPropertiesRoleDefinition>- Throws:
IOException
-
fromJson
public static PolicyAssignmentPropertiesRoleDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicyAssignmentPropertiesRoleDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyAssignmentPropertiesRoleDefinition 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 PolicyAssignmentPropertiesRoleDefinition.
-