Class ExpandedProperties
java.lang.Object
com.azure.resourcemanager.authorization.models.ExpandedProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpandedProperties>
public final class ExpandedProperties
extends Object
implements com.azure.json.JsonSerializable<ExpandedProperties>
The ExpandedProperties model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpandedPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpandedProperties from the JsonReader.Get the principal property: Details of the principal.Get the roleDefinition property: Details of role definition.scope()Get the scope property: Details of the resource scope.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPrincipal(ExpandedPropertiesPrincipal principal) Set the principal property: Details of the principal.withRoleDefinition(ExpandedPropertiesRoleDefinition roleDefinition) Set the roleDefinition property: Details of role definition.withScope(ExpandedPropertiesScope scope) Set the scope property: Details of the resource scope.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
-
ExpandedProperties
public ExpandedProperties()Creates an instance of ExpandedProperties class.
-
-
Method Details
-
scope
Get the scope property: Details of the resource scope.- Returns:
- the scope value.
-
withScope
Set the scope property: Details of the resource scope.- Parameters:
scope- the scope value to set.- Returns:
- the ExpandedProperties object itself.
-
roleDefinition
Get the roleDefinition property: Details of role definition.- Returns:
- the roleDefinition value.
-
withRoleDefinition
Set the roleDefinition property: Details of role definition.- Parameters:
roleDefinition- the roleDefinition value to set.- Returns:
- the ExpandedProperties object itself.
-
principal
Get the principal property: Details of the principal.- Returns:
- the principal value.
-
withPrincipal
Set the principal property: Details of the principal.- Parameters:
principal- the principal value to set.- Returns:
- the ExpandedProperties 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<ExpandedProperties>- Throws:
IOException
-
fromJson
Reads an instance of ExpandedProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpandedProperties 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 ExpandedProperties.
-